pub unsafe extern "C" fn mixDensityMatrix(
combineQureg: Qureg,
prob: f64,
otherQureg: Qureg,
)Expand description
Modifies combineQureg to become (1-\p prob)\p combineProb + \p prob \p otherQureg. Both registers must be equal-dimension density matrices, and prob must be in [0, 1].
@see
- mixDephasing()
- mixDepolarising()
- mixDamping()
- mixKrausMap()
- mixPauli()
@ingroup decoherence @param[in,out] combineQureg a density matrix to be modified @param[in] prob the probability of \p otherQureg in the modified \p combineQureg @param[in] otherQureg a density matrix to be mixed into \p combineQureg @throws invalidQuESTInputError()
- if either \p combineQureg or \p otherQureg are not density matrices
- if the dimensions of \p combineQureg and \p otherQureg do not match
- if \p prob is not in [0, 1] @author Tyson Jones