mindquantum.core.gates.AmplitudeDampingChannel

View Source On Gitee
class mindquantum.core.gates.AmplitudeDampingChannel(gamma: float, **kwargs)[source]

Amplitude damping channel express error that qubit is affected by the energy dissipation.

Amplitude 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&\sqrt{\gamma}\\ 0&0\end{bmatrix} \end{gather*}\end{split}\]

where \(\rho\) is quantum state as density matrix type; \(\gamma\) is the coefficient of energy dissipation.

Parameters

gamma (int, float) – damping coefficient.

Examples

>>> from mindquantum.core.gates import AmplitudeDampingChannel
>>> from mindquantum.core.circuit import Circuit
>>> circ = Circuit()
>>> circ += AmplitudeDampingChannel(0.02).on(0)
>>> print(circ)
      ╔═════════════╗
q0: ──╢ ADC(γ=1/50) ╟───
      ╚═════════════╝
define_projectq_gate()[source]

Define the corresponded projectq gate.

get_cpp_obj()[source]

Get underlying C++ object.

matrix()[source]

Kraus operator of the quantum channel.

Returns

list, contains all Kraus operators of this quantum channel.