Phase-flip channel (source code)

= Phase-flip channel

The phase-flip channel is $\Lambda_p(\rho)=(1-p)\rho+p\sigma_z\rho\sigma_z$. It multiplies the $x$ and $y$ components of the Bloch vector by $1-2p$ and leaves the $z$ component fixed.