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

Function applyTwoQubitPhaseShift

quest/src/api/operations.cpp:1412–1419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1410}
1411
1412void applyTwoQubitPhaseShift(Qureg qureg, int target1, int target2, qreal angle) {
1413 validate_quregFields(qureg, __func__);
1414 validate_twoTargets(qureg, target1, target2, __func__);
1415
1416 // harmlessly re-validates
1417 int targets[] = {target1, target2};
1418 applyMultiQubitPhaseShift(qureg, targets, 2, angle);
1419}
1420
1421void applyMultiQubitPhaseShift(Qureg qureg, int* targets, int numTargets, qreal angle) {
1422 validate_quregFields(qureg, __func__);

Callers 1

Calls 3

validate_quregFieldsFunction · 0.85
validate_twoTargetsFunction · 0.85

Tested by

no test coverage detected