View source on GitHub |
Apply a dephasing channel
openfermion.utils.dephasing_channel(
density_matrix, probability, target_qubit, transpose=False
)
Applies an amplitude damping channel with a given probability to the target qubit in the density_matrix.
Returns | |
---|---|
new_density_matrix
|
numpy.ndarray
Density matrix with the channel applied. |