| 713 | extern "C" { |
| 714 | |
| 715 | void applySqrtSwap(Qureg qureg, int target1, int target2) { |
| 716 | validate_quregFields(qureg, __func__); |
| 717 | validate_twoTargets(qureg,target1, target2, __func__); |
| 718 | |
| 719 | // harmlessly re-validates |
| 720 | applyMultiStateControlledSqrtSwap(qureg, nullptr, nullptr, 0, target1, target2); |
| 721 | } |
| 722 | |
| 723 | void applyControlledSqrtSwap(Qureg qureg, int control, int target1, int target2) { |
| 724 | validate_quregFields(qureg, __func__); |
nothing calls this directly
no test coverage detected