| 44 | |
| 45 | |
| 46 | void mixTwoQubitDephasing(Qureg qureg, int qubit1, int qubit2, qreal prob) { |
| 47 | validate_quregFields(qureg, __func__); |
| 48 | validate_twoTargets(qureg, qubit1, qubit2, __func__); |
| 49 | validate_twoQubitDepashingProb(prob, __func__); |
| 50 | |
| 51 | // permit but do not change non-decohering statevecs |
| 52 | if (prob == 0) |
| 53 | return; |
| 54 | |
| 55 | validate_quregIsDensityMatrix(qureg, __func__); |
| 56 | |
| 57 | localiser_densmatr_twoQubitDephasing(qureg, qubit1, qubit2, prob); |
| 58 | } |
| 59 | |
| 60 | |
| 61 | void mixDepolarising(Qureg qureg, int qubit, qreal prob) { |
no test coverage detected