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

Function applyMultiControlledPhaseGadget

quest/src/api/operations.cpp:1345–1351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1343}
1344
1345void applyMultiControlledPhaseGadget(Qureg qureg, int* controls, int numControls, int* targets, int numTargets, qreal angle) {
1346 validate_quregFields(qureg, __func__);
1347 validate_controlsAndTargets(qureg, controls, numControls, targets, numTargets, __func__);
1348
1349 // harmlessly re-validates
1350 applyMultiStateControlledPhaseGadget(qureg, controls, nullptr, numControls, targets, numTargets, angle);
1351}
1352
1353void applyMultiStateControlledPhaseGadget(Qureg qureg, int* controls, int* states, int numControls, int* targets, int numTargets, qreal angle) {
1354 validate_quregFields(qureg, __func__);

Callers

nothing calls this directly

Tested by

no test coverage detected