| 89 | |
| 90 | |
| 91 | void mixDamping(Qureg qureg, int qubit, qreal prob) { |
| 92 | validate_quregFields(qureg, __func__); |
| 93 | validate_target(qureg, qubit, __func__); |
| 94 | validate_oneQubitDampingProb(prob, __func__); |
| 95 | |
| 96 | // permit but do not change non-decohering statevecs |
| 97 | if (prob == 0) |
| 98 | return; |
| 99 | |
| 100 | validate_quregIsDensityMatrix(qureg, __func__); |
| 101 | |
| 102 | localiser_densmatr_oneQubitDamping(qureg, qubit, prob); |
| 103 | } |
| 104 | |
| 105 | |
| 106 | void mixPaulis(Qureg qureg, int qubit, qreal probX, qreal probY, qreal probZ) { |
no test coverage detected