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

Function applyPauliStr

quest/src/api/operations.cpp:939–945  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

937extern "C" {
938
939void applyPauliStr(Qureg qureg, PauliStr str) {
940 validate_quregFields(qureg, __func__);
941 validate_pauliStrTargets(qureg, str, __func__);
942
943 // harmlessly re-validates
944 applyMultiStateControlledPauliStr(qureg, nullptr, nullptr, 0, str);
945}
946
947void applyControlledPauliStr(Qureg qureg, int control, PauliStr str) {
948 validate_quregFields(qureg, __func__);

Callers

nothing calls this directly

Calls 3

validate_quregFieldsFunction · 0.85
validate_pauliStrTargetsFunction · 0.85

Tested by

no test coverage detected