Skip to content

Quantum channels

So far every operation has been a perfect gate. Real hardware is not like that. Gates are slightly off, qubits lose energy, and stray fields nudge their phases. This lesson gives you the language for describing such processes, which is the starting point for both error correction and the study of quantum communication.

Suppose that with probability pp something flips your qubit, and you do not know whether it happened. If the qubit started in the state ρ\rho, then afterwards it is in the state XρXX\rho X with probability pp and still in ρ\rho with probability 1−p1 - p. That is a mixture, so by the last lesson its density matrix is

ρ  ⟶  (1−p) ρ+p XρX.\rho \;\longrightarrow\; (1 - p)\,\rho + p\,X\rho X.

This is the bit-flip channel. Notice what kind of object it is: a rule that takes density matrices to density matrices. A pure state usually comes out mixed, so kets are no longer enough to describe what happens.

Every physical process acting on a quantum system that starts out uncorrelated with its surroundings can be written as

ρ  ⟶  ∑iKi ρ Ki†,∑iKi†Ki=I.\rho \;\longrightarrow\; \sum_i K_i\,\rho\,K_i^\dagger, \qquad \sum_i K_i^\dagger K_i = I.

Such a map is called a quantum channel, and the matrices KiK_i are its Kraus operators. The condition on the right keeps the trace equal to 1.

For the bit-flip channel the Kraus operators are K0=1−p IK_0 = \sqrt{1-p}\,I and K1=p XK_1 = \sqrt{p}\,X. A perfect gate is the special case with a single Kraus operator, K0=UK_0 = U.

The simulator shows a slice through the Bloch ball from the last lesson. The dashed dot is the input state, the solid dot is the output, and the curve shows where the channel sends the whole circle of pure states. A point inside the circle is a mixed state.

SimulatorSend a qubit through a noisy channel
Input
Channel

Try each of these, and predict the result before you move the slider.

  1. Phase flip, input ∣+⟩\ket{+}. Raise pp to 0.5. The state slides to the centre: all coherence is gone. Now switch the input to ∣0⟩\ket{0}. Nothing happens at all.
  2. Bit flip, input ∣0⟩\ket{0}. The mirror image: ∣0⟩\ket{0} and ∣1⟩\ket{1} are damaged, ∣+⟩\ket{+} and ∣−⟩\ket{-} are untouched.
  3. Depolarizing. Every state shrinks towards the centre equally. This is the “worst case” model, used when nothing is known about the noise.
  4. Amplitude damping, γ=1\gamma = 1. Every input ends up at ∣0⟩\ket{0}, and the circle collapses to a point at the north pole.

In symbols, the phase-flip channel is

ρ  ⟶  (1−p) ρ+p ZρZ=(ρ00(1−2p) ρ01(1−2p) ρ10ρ11).\rho \;\longrightarrow\; (1 - p)\,\rho + p\,Z\rho Z = \begin{pmatrix}\rho_{00} & (1 - 2p)\,\rho_{01}\\ (1 - 2p)\,\rho_{10} & \rho_{11}\end{pmatrix}.

The measurement probabilities on the diagonal are unchanged, and the coherences shrink. This process is called dephasing, and in many kinds of qubit it is the fastest form of noise. A dephased qubit still works as a classical bit. What it loses is everything that made it quantum.

Amplitude damping models a qubit losing energy to its surroundings, with ∣1⟩\ket{1} as the higher-energy state. Its Kraus operators are

K0=(1001−γ),K1=(0γ00).K_0 = \begin{pmatrix}1 & 0\\ 0 & \sqrt{1-\gamma}\end{pmatrix}, \qquad K_1 = \begin{pmatrix}0 & \sqrt{\gamma}\\ 0 & 0\end{pmatrix}.

K1K_1 takes ∣1⟩\ket{1} to ∣0⟩\ket{0}: the qubit has decayed. Unlike the other three, this channel is not “apply a random gate”, and it does not shrink the ball evenly around the centre.

Check

Which of these channels can make a mixed state more pure?

On hardware, the timescale of energy loss is called T1T_1 and the timescale of dephasing is called T2T_2. They are the two numbers most often quoted to describe the quality of a qubit.

Kraus operators describe what noise does. They do not say why it happens. The explanation is one you have already seen: the qubit becomes entangled with something we do not control.

Call that something the environment, and model it as a second qubit. In the next two puzzles the top wire is the system and only its reduced state is checked.

PuzzleThe environment kicks

The system is in ∣0⟩\ket{0} and the environment is in ∣+⟩\ket{+}. With one CNOT, leave the system maximally mixed.

This puzzle needs JavaScript.

Here the environment acted as the control. It was in a superposition of “do nothing” and “flip the system”, and once we ignore it, the system has been flipped with probability 12\tfrac12. That is the bit-flip channel with p=12p = \tfrac12.

PuzzleThe environment looks

Now the system is in ∣+⟩\ket{+} and the environment is in ∣0⟩\ket{0}. With one CNOT, leave the system maximally mixed.

This puzzle needs JavaScript.

This time the environment was the target. It did nothing to the system except copy down its value, and the system’s coherences vanished. That is the phase-flip channel with p=12p = \tfrac12.

The second puzzle is worth dwelling on. No energy was exchanged and the system was never “disturbed” in the everyday sense. Something else merely came to hold a record of whether it was 0 or 1. Being measured by the environment, even when nobody reads the result, is what dephasing is.

Both puzzles are examples of a general theorem: every quantum channel can be produced by attaching an environment, applying a unitary gate to the two together, and then discarding the environment. Noise is ordinary reversible quantum mechanics, seen by someone who can only watch part of the system.

Check

A qubit in the state ∣0⟩\ket{0} goes through the phase-flip channel with p=0.3p = 0.3. What comes out?

Real noise is not exactly any of the tidy channels above. It does not need to be. The four matrices II, XX, ZZ and Y=iXZY = iXZ form a basis for all 2×22\times2 matrices, so the Kraus operators of any single-qubit channel can be written as combinations of them. A code that can correct a bit flip, a phase flip and both together can therefore correct an arbitrary error on that qubit. This is the fact that makes quantum error correction possible.

RecallAnswer from memory, then check
LessonFinish this lesson