| 29 | |
| 30 | |
| 31 | void mixDephasing(Qureg qureg, int qubit, qreal prob) { |
| 32 | validate_quregFields(qureg, __func__); |
| 33 | validate_target(qureg, qubit, __func__); |
| 34 | validate_oneQubitDepashingProb(prob, __func__); |
| 35 | |
| 36 | // permit but do not change non-decohering statevecs |
| 37 | if (prob == 0) |
| 38 | return; |
| 39 | |
| 40 | validate_quregIsDensityMatrix(qureg, __func__); |
| 41 | |
| 42 | localiser_densmatr_oneQubitDephasing(qureg, qubit, prob); |
| 43 | } |
| 44 | |
| 45 | |
| 46 | void mixTwoQubitDephasing(Qureg qureg, int qubit1, int qubit2, qreal prob) { |
no test coverage detected