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

Function applyControlledPauliX

quest/src/api/operations.cpp:809–815  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

807}
808
809void applyControlledPauliX(Qureg qureg, int control, int target) {
810 validate_quregFields(qureg, __func__);
811 validate_controlAndTarget(qureg, control, target, __func__);
812
813 // harmlessly re-validates
814 applyMultiStateControlledPauliX(qureg, &control, nullptr, 1, target);
815}
816
817void applyControlledPauliY(Qureg qureg, int control, int target) {
818 validate_quregFields(qureg, __func__);

Callers

nothing calls this directly

Calls 3

validate_quregFieldsFunction · 0.85

Tested by

no test coverage detected