| 69 | |
| 70 | |
| 71 | bool 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 | |
| 81 | bool doesGateRequireComm(Qureg qureg, int targ) { |
| 82 |
no test coverage detected