| 721 | } |
| 722 | |
| 723 | void applyControlledSqrtSwap(Qureg qureg, int control, int target1, int target2) { |
| 724 | validate_quregFields(qureg, __func__); |
| 725 | validate_controlAndTwoTargets(qureg, control, target1, target2, __func__); |
| 726 | |
| 727 | // harmlessly re-validates |
| 728 | applyMultiStateControlledSqrtSwap(qureg, &control, nullptr, 1, target1, target2); |
| 729 | } |
| 730 | |
| 731 | void applyMultiControlledSqrtSwap(Qureg qureg, int* controls, int numControls, int target1, int target2) { |
| 732 | validate_quregFields(qureg, __func__); |
nothing calls this directly
no test coverage detected