mindquantum.core.gates.PhaseDampingChannel
- class mindquantum.core.gates.PhaseDampingChannel(gamma: float, **kwargs)[source]
A phase damping channel.
Phase damping channel express error that qubit loses quantum information without exchanging energy with environment.
Phase damping channel applies noise as:
\[\begin{split}\begin{gather*} \epsilon(\rho) = E_0 \rho E_0^\dagger + E_1 \rho E_1^\dagger \\ \text{where}\ {E_0}=\begin{bmatrix}1&0\\ 0&\sqrt{1-\gamma}\end{bmatrix}, \ {E_1}=\begin{bmatrix}0&0\\ 0&\sqrt{\gamma}\end{bmatrix} \end{gather*}\end{split}\]where \(\rho\) is quantum state as density matrix type; \(\gamma\) is the coefficient of quantum information loss.
Examples
>>> from mindquantum.core.gates import PhaseDampingChannel >>> from mindquantum.core.circuit import Circuit >>> circ = Circuit() >>> circ += PhaseDampingChannel(0.02).on(0) >>> print(circ) ╔═════════════╗ q0: ──╢ PDC(γ=1/50) ╟─── ╚═════════════╝