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

Function validate_controlAndTarget

quest/src/core/validation.cpp:3644–3647  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3642 assertThat(areQubitsDisjoint(ctrls, numCtrls, targs, numTargs), report::CONTROLS_OVERLAP_TARGETS, caller);
3643}
3644void validate_controlAndTarget(Qureg qureg, int ctrl, int targ, const char* caller) {
3645
3646 validate_controlsAndTargets(qureg, &ctrl, 1, &targ, 1, caller);
3647}
3648void validate_controlAndTargets(Qureg qureg, int ctrl, int* targs, int numTargs, const char* caller) {
3649
3650 validate_controlsAndTargets(qureg, &ctrl, 1, targs, numTargs, caller);

Callers 10

applyControlledSFunction · 0.85
applyControlledTFunction · 0.85
applyControlledHadamardFunction · 0.85
applyControlledPauliXFunction · 0.85
applyControlledPauliYFunction · 0.85
applyControlledPauliZFunction · 0.85
applyControlledRotateXFunction · 0.85
applyControlledRotateYFunction · 0.85
applyControlledRotateZFunction · 0.85

Calls 1

Tested by

no test coverage detected