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

Function applyTwoQubitPhaseFlip

quest/src/api/operations.cpp:1455–1462  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1453}
1454
1455void applyTwoQubitPhaseFlip(Qureg qureg, int target1, int target2) {
1456 validate_quregFields(qureg, __func__);
1457 validate_twoTargets(qureg, target1, target2, __func__);
1458
1459 // harmlessly re-validates
1460 int targets[] = {target1, target2};
1461 applyMultiQubitPhaseFlip(qureg, targets, 2);
1462}
1463
1464void applyMultiQubitPhaseFlip(Qureg qureg, int* targets, int numTargets) {
1465 validate_quregFields(qureg, __func__);

Callers

nothing calls this directly

Calls 3

validate_quregFieldsFunction · 0.85
validate_twoTargetsFunction · 0.85
applyMultiQubitPhaseFlipFunction · 0.85

Tested by

no test coverage detected