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

Function applyMultiControlledSqrtSwap

quest/src/api/operations.cpp:731–737  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

729}
730
731void applyMultiControlledSqrtSwap(Qureg qureg, int* controls, int numControls, int target1, int target2) {
732 validate_quregFields(qureg, __func__);
733 validate_controlsAndTwoTargets(qureg, controls, numControls, target1, target2, __func__);
734
735 // harmlessly re-validates
736 applyMultiStateControlledSqrtSwap(qureg, controls, nullptr, numControls, target1, target2);
737}
738
739void applyMultiStateControlledSqrtSwap(Qureg qureg, int* controls, int* states, int numControls, int target1, int target2) {
740 validate_quregFields(qureg, __func__);

Callers

nothing calls this directly

Tested by

no test coverage detected