Channels
QBase.Channels
— ModuleThe Channels
submodule provides:
- A catalog of functions which apply common quantum channels to quantum states.
QBase.Channels.depolarizing
— Functiondepolarizing( ρ :: AbstractDensityMatrix, μ :: Real ) :: DensityMatrix
The depolarizing channel mixes uniform classical noise into a quantum state ρ
. The argument μ
describes the amount of noise mixed into the quantum states. For a quantum state $\rho$, the depolarizing channel is expressed:
A DomainError
is thrown if μ
does not satisfy 1 ≥ μ ≥ 0
.
QBase.Channels.erasure
— Functionerasure( ρ :: AbstractDensityMatrix, μ :: Real ) :: DensityMatrix
The erasure channel mixes a quantum state ρ
with an error flag $|F\rangle$ orthogonal to the Hilbert space of ρ
. The argument μ
describes the probability that ρ
is replaced with the error flag. For a quantum state $\rho$, the erasure channel is expressed:
Note that the erasure channel increases the dimension of the Hilbert space by 1.
A DomainError
is thrown if μ
does not satisfy 1 ≥ μ ≥ 0
.