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

Function mixDamping

quest/src/api/decoherence.cpp:91–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89
90
91void 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
106void mixPaulis(Qureg qureg, int qubit, qreal probX, qreal probY, qreal probZ) {

Callers 3

SECTIONFunction · 0.85

Calls 5

validate_quregFieldsFunction · 0.85
validate_targetFunction · 0.85

Tested by

no test coverage detected