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

Function applySwap

quest/src/api/operations.cpp:652–658  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

650extern "C" {
651
652void applySwap(Qureg qureg, int qubit1, int qubit2) {
653 validate_quregFields(qureg, __func__);
654 validate_twoTargets(qureg, qubit1, qubit2, __func__);
655
656 // harmlessly re-valdiates
657 applyMultiStateControlledSwap(qureg, nullptr, nullptr, 0, qubit1, qubit2);
658}
659
660void applyControlledSwap(Qureg qureg, int control, int qubit1, int qubit2) {
661 validate_quregFields(qureg, __func__);

Callers 1

Calls 3

validate_quregFieldsFunction · 0.85
validate_twoTargetsFunction · 0.85

Tested by

no test coverage detected