| 658 | } |
| 659 | |
| 660 | void applyControlledSwap(Qureg qureg, int control, int qubit1, int qubit2) { |
| 661 | validate_quregFields(qureg, __func__); |
| 662 | validate_controlAndTwoTargets(qureg, control, qubit1, qubit2, __func__); |
| 663 | |
| 664 | // harmlessly re-valdiates |
| 665 | applyMultiStateControlledSwap(qureg, &control, nullptr, 1, qubit1, qubit2); |
| 666 | } |
| 667 | |
| 668 | void applyMultiControlledSwap(Qureg qureg, int* controls, int numControls, int qubit1, int qubit2) { |
| 669 | validate_quregFields(qureg, __func__); |
nothing calls this directly
no test coverage detected