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

Function applyControlledSwap

quest/src/api/operations.cpp:660–666  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

658}
659
660void applyControlledSwap(Qureg qureg, int control, int qubit1, int qubit2) {
661 validate_quregFields(qureg, __func__);
662 validate_controlAndTwoTargets(qureg, control, qubit1, qubit2, __func__);
663
664 // harmlessly re-valdiates
665 applyMultiStateControlledSwap(qureg, &control, nullptr, 1, qubit1, qubit2);
666}
667
668void applyMultiControlledSwap(Qureg qureg, int* controls, int numControls, int qubit1, int qubit2) {
669 validate_quregFields(qureg, __func__);

Callers

nothing calls this directly

Calls 3

validate_quregFieldsFunction · 0.85

Tested by

no test coverage detected