View source on GitHub |
Creates a PhaseDampingChannel with damping constant gamma.
cirq.phase_damp(
gamma: float
) -> cirq.PhaseDampingChannel
Used in the notebooks
Used in the tutorials |
---|
This channel evolves a density matrix via:
\[ \rho \rightarrow M_0 \rho M_0^\dagger + M_1 \rho M_1^\dagger \]
With:
\[ \begin{aligned} M_0 =& \begin{bmatrix} 1 & 0 \\ 0 & \sqrt{1 - \gamma} \end{bmatrix} \\ M_1 =& \begin{bmatrix} 0 & 0 \\ 0 & \sqrt{\gamma} \end{bmatrix} \end{aligned} \]
Args | |
---|---|
gamma
|
The damping constant. |
Raises | |
---|---|
ValueError
|
is gamma is not a valid probability. |