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

Function applyControlledPauliStr

quest/src/api/operations.cpp:947–953  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

945}
946
947void applyControlledPauliStr(Qureg qureg, int control, PauliStr str) {
948 validate_quregFields(qureg, __func__);
949 validate_controlAndPauliStrTargets(qureg, control, str, __func__);
950
951 // harmlessly re-validates
952 applyMultiStateControlledPauliStr(qureg, &control, nullptr, 1, str);
953}
954
955void applyMultiControlledPauliStr(Qureg qureg, int* controls, int numControls, PauliStr str) {
956 validate_quregFields(qureg, __func__);

Callers

nothing calls this directly

Tested by

no test coverage detected