| 3622 | } |
| 3623 | |
| 3624 | void validate_controls(Qureg qureg, int* ctrls, int numCtrls, const char* caller) { |
| 3625 | |
| 3626 | // it is fine to have zero controls |
| 3627 | bool numCanBeZero = true; |
| 3628 | |
| 3629 | assertValidQubits( |
| 3630 | qureg, ctrls, numCtrls, numCanBeZero, caller, |
| 3631 | report::NEGATIVE_NUM_CONTROLS, report::NUM_CONTROLS_EXCEEDS_QUREG_SIZE, report::NON_EMPTY_CONTROL_LIST_WAS_NULL_PTR, |
| 3632 | report::INVALID_CONTROL_QUBIT, report::DUPLICATE_CONTROL_QUBITS); |
| 3633 | } |
| 3634 | |
| 3635 | void validate_controlsAndTargets(Qureg qureg, int* ctrls, int numCtrls, int* targs, int numTargs, const char* caller) { |
| 3636 |
no test coverage detected