Function mixDephasing

Source
pub unsafe extern "C" fn mixDephasing(
    qureg: Qureg,
    targetQubit: c_int,
    prob: f64,
)
Expand description

Mixes a density matrix \p qureg to induce single-qubit dephasing noise. With probability \p prob, applies Pauli Z to \p targetQubit.

This transforms \p qureg = \f$\rho\f$ into the mixed state \f[ (1 - \text{prob}) , \rho + \text{prob} ; Z_q , \rho , Z_q \f] where q = \p targetQubit. \p prob cannot exceed 1/2, which maximally mixes \p targetQubit.

@see

  • mixTwoQubitDephasing()
  • mixDamping()
  • mixDepolarising()
  • mixKrausMap()
  • mixPauli()
  • mixDensityMatrix()

@ingroup decoherence @param[in,out] qureg a density matrix @param[in] targetQubit qubit upon which to induce dephasing noise @param[in] prob the probability of the phase error occuring @throws invalidQuESTInputError()

  • if \p qureg is not a density matrix
  • if \p targetQubit is outside [0, \p qureg.numQubitsRepresented)
  • if \p prob is not in [0, 1/2] @author Tyson Jones (GPU, doc) @author Ania Brown (CPU, distributed)