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

Function applySqrtSwap

quest/src/api/operations.cpp:715–721  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

713extern "C" {
714
715void applySqrtSwap(Qureg qureg, int target1, int target2) {
716 validate_quregFields(qureg, __func__);
717 validate_twoTargets(qureg,target1, target2, __func__);
718
719 // harmlessly re-validates
720 applyMultiStateControlledSqrtSwap(qureg, nullptr, nullptr, 0, target1, target2);
721}
722
723void applyControlledSqrtSwap(Qureg qureg, int control, int target1, int target2) {
724 validate_quregFields(qureg, __func__);

Callers

nothing calls this directly

Calls 3

validate_quregFieldsFunction · 0.85
validate_twoTargetsFunction · 0.85

Tested by

no test coverage detected