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

Function doesGateRequireComm

quest/src/core/localiser.cpp:71–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69
70
71bool doesGateRequireComm(Qureg qureg, vector<int> targs) {
72
73 // non-distributed quregs never communicate (duh)
74 if (!qureg.isDistributed)
75 return false;
76
77 // communication necessary when any prefix qubit is targeted
78 return ! util_areAllQubitsInSuffix(targs, qureg);
79}
80
81bool doesGateRequireComm(Qureg qureg, int targ) {
82

Calls 1

Tested by

no test coverage detected