channels.phase_damping¶
phase damping channel.
Functions¶
|
Apply the phase damping channel to a quantum state [1]. |
Module Contents¶
- channels.phase_damping.phase_damping(input_mat=None, gamma=0)¶
Apply the phase damping channel to a quantum state [1].
The phase damping channel describes how quantum information is lost due to environmental interactions, causing dephasing in the computational basis without losing energy.
The Kraus operators for the phase damping channel are:
\[\begin{split}K_0 = \begin{pmatrix} 1 & 0 \\ 0 & \sqrt{1 - \gamma} \end{pmatrix}, \\ K_1 = \begin{pmatrix} 0 & 0 \\ 0 & \sqrt{\gamma} \end{pmatrix},\end{split}\]Examples
Applying the phase damping channel to a qubit state:
import numpy as np from toqito.channels.phase_damping import phase_damping rho = np.array([[1, 0.5], [0.5, 1]]) result = phase_damping(rho, gamma=0.2) print(result)
[[1. +0.j 0.4472136+0.j] [0.4472136+0.j 1. +0.j]]
References
- Parameters:
input_mat (numpy.ndarray | None) – The input matrix to apply the channel to. If None, the function returns the Kraus operators.
gamma (float) – The dephasing rate (between 0 and 1), representing the probability of phase decoherence.
- Returns:
The transformed quantum state after applying the phase damping channel. If input_mat is None, returns the list of Kraus operators.
- Return type:
numpy.ndarray