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

Function applyPhaseShift

quest/src/api/operations.cpp:1404–1410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1402extern "C" {
1403
1404void applyPhaseShift(Qureg qureg, int target, qreal angle) {
1405 validate_quregFields(qureg, __func__);
1406 validate_target(qureg, target, __func__);
1407
1408 // harmlessly re-validates
1409 applyMultiQubitPhaseShift(qureg, &target, 1, angle);
1410}
1411
1412void applyTwoQubitPhaseShift(Qureg qureg, int target1, int target2, qreal angle) {
1413 validate_quregFields(qureg, __func__);

Callers

nothing calls this directly

Calls 3

validate_quregFieldsFunction · 0.85
validate_targetFunction · 0.85

Tested by

no test coverage detected