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

Function applyControlledPhaseGadget

quest/src/api/operations.cpp:1337–1343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1335}
1336
1337void applyControlledPhaseGadget(Qureg qureg, int control, int* targets, int numTargets, qreal angle) {
1338 validate_quregFields(qureg, __func__);
1339 validate_controlAndTargets(qureg, control, targets, numTargets, __func__);
1340
1341 // harmlessly re-validates
1342 applyMultiStateControlledPhaseGadget(qureg, &control, nullptr, 1, targets, numTargets, angle);
1343}
1344
1345void applyMultiControlledPhaseGadget(Qureg qureg, int* controls, int numControls, int* targets, int numTargets, qreal angle) {
1346 validate_quregFields(qureg, __func__);

Callers

nothing calls this directly

Calls 3

validate_quregFieldsFunction · 0.85

Tested by

no test coverage detected