MCPcopy Create free account
hub / github.com/QuEST-Kit/QuEST / validate_controlAndTwoTargets

Function validate_controlAndTwoTargets

quest/src/core/validation.cpp:3656–3660  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3654 validate_controlsAndTargets(qureg, ctrls, numCtrls, &targ, 1, caller);
3655}
3656void validate_controlAndTwoTargets(Qureg qureg, int ctrl, int targ1, int targ2, const char* caller) {
3657
3658 int targs[] = {targ1, targ2};
3659 validate_controlsAndTargets(qureg, &ctrl, 1, targs, 2, caller);
3660}
3661void validate_controlsAndTwoTargets(Qureg qureg, int* ctrls, int numCtrls, int targ1, int targ2, const char* caller) {
3662
3663 int targs[] = {targ1, targ2};

Callers 2

applyControlledSwapFunction · 0.85
applyControlledSqrtSwapFunction · 0.85

Calls 1

Tested by

no test coverage detected