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

Function applyControlledSqrtSwap

quest/src/api/operations.cpp:723–729  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

721}
722
723void 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
731void applyMultiControlledSqrtSwap(Qureg qureg, int* controls, int numControls, int target1, int target2) {
732 validate_quregFields(qureg, __func__);

Callers

nothing calls this directly

Calls 3

validate_quregFieldsFunction · 0.85

Tested by

no test coverage detected