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

Function applyMultiStateControlledMultiQubitNot

quest/src/api/operations.cpp:1514–1524  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1512}
1513
1514void applyMultiStateControlledMultiQubitNot(Qureg qureg, int* controls, int* states, int numControls, int* targets, int numTargets) {
1515 validate_quregFields(qureg, __func__);
1516 validate_controlsAndTargets(qureg, controls, numControls, targets, numTargets, __func__);
1517 validate_controlStates(states, numControls, __func__);
1518
1519 // treat as an all-X PauliStr
1520 PauliStr str = getPauliStr(std::string(numTargets, 'X'), targets, numTargets);
1521
1522 // harmlessly re-validates
1523 applyMultiStateControlledPauliStr(qureg, controls, states, numControls, str);
1524}
1525
1526} // end de-mangler
1527

Callers 3

applyMultiQubitNotFunction · 0.85

Calls 6

validate_quregFieldsFunction · 0.85
validate_controlStatesFunction · 0.85
getPauliStrFunction · 0.85

Tested by

no test coverage detected