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

Function applyMultiControlledSwap

quest/src/api/operations.cpp:668–674  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

666}
667
668void applyMultiControlledSwap(Qureg qureg, int* controls, int numControls, int qubit1, int qubit2) {
669 validate_quregFields(qureg, __func__);
670 validate_controlsAndTwoTargets(qureg, controls, numControls, qubit1, qubit2, __func__);
671
672 // harmlessly re-valdiates
673 applyMultiStateControlledSwap(qureg, controls, nullptr, numControls, qubit1, qubit2);
674}
675
676void applyMultiStateControlledSwap(Qureg qureg, int* controls, int* states, int numControls, int qubit1, int qubit2) {
677 validate_quregFields(qureg, __func__);

Callers

nothing calls this directly

Calls 3

validate_quregFieldsFunction · 0.85

Tested by

no test coverage detected