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

Function applyPhaseGadget

quest/src/api/operations.cpp:1329–1335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1327extern "C" {
1328
1329void applyPhaseGadget(Qureg qureg, int* targets, int numTargets, qreal angle) {
1330 validate_quregFields(qureg, __func__);
1331 validate_targets(qureg, targets, numTargets, __func__);
1332
1333 // harmlessly re-validates
1334 applyMultiStateControlledPhaseGadget(qureg, nullptr, nullptr, 0, targets, numTargets, angle);
1335}
1336
1337void applyControlledPhaseGadget(Qureg qureg, int control, int* targets, int numTargets, qreal angle) {
1338 validate_quregFields(qureg, __func__);

Callers

nothing calls this directly

Calls 3

validate_quregFieldsFunction · 0.85
validate_targetsFunction · 0.85

Tested by

no test coverage detected