Lecture 28
Lecture 28
| 0i → | 000i ,
| 1i → | 111i .
| 0i → | + + +i ,
| 1i → | − − −i .
| 0L ih0L | + | 1L ih1L |
and
σz(j) | 0L ih0L | + | 1L ih1L | σzj ,
for j = 1, 2, 3.
We combined these two codes by concatenating them. This means first encoding
by using the phase-flip code (it would work just as well if we used the bit-flip code
1
first, but this is the standard way to do it) and then encoding each of the qubits in the
resulting three-qubit code by the bit-flip code:
⊗3 1 ⊗3
| 0i → | +i → √ | 000i + | 111i ,
8
⊗3 1 ⊗3
| 1i → | −i → √ | 000i − | 111i .
8
This results in a nine-qubit code. It corrects both bit and phase errors. This nine-qubit
code can correct one Pauli error on any qubit. One σx error is corrected by the bit-flip
correcting code. One σz error passes through the bit-flip correcting code to apply a σz
error to one of the groups of three qubits, which then gets corrected by the phase-error
correcting code. And a σy error can be thought of as both a σx and a σz error on the
same qubit, since σy = iσx σz , so the bit-flip correcting code corrects the σx error and
the phase-flip correcting code corrects the σz error..
But what about arbitrary errors? You can have arbitrary unitary errors, or you
can have a measurement on qubits, or you can have a more general type of quantum
transformation that we haven’t covered in this class (but which you will see if you take
8.371/18.436). It turns out that this code will correct them, as well. This is because of
the following theorem:
Theorem 1 Any quantum error-correcting code, which corrects t or fewer Pauli errors
(σx , σy , and σz errors) on a subset of t or fewer qubits will also correct an arbitrary
quantum operation which is applied to at most t qubits.
That the 9-qubit code will correct any arbitrary single-qubit error follows from the
above theorem with t = 1.
How do we prove this theorem? We will first show why it works by looking at an
example on the three-qubit phase-flip error–correcting code, and then prove it.
Let’s consider a qubit α | 0i+β | 1i encoded in the three -qubit phase-flip correcting
code:
α | 0i + β | 1i → α | 0iL + β | 1iL
−iθ
e 0
What happens when we apply the phase error to the second qubit of
0 eiθ
it? We have
−iθ
e 0 cos θ − i sin θ 0
= = cos θI − i sin θσz
0 eiθ 0 cos θ + i sin θ
When we measure which qubit is in error, we get that there is no error with probability
cos2 θ and that there is a σz in qubit 2 with probability sin2 θ. And in fact, we collapse
the state, so after the measurement, this will indeed be the case. When we correct the
σz error on qubit 2, this restores the original state.
2
Why did this happen? The reason is that the error matrix has a decomposition in I
and σz : −iθ
e 0
= (cos θ)I − i(sin θ)σz .
0 eiθ
When you apply it, you get a superposition of applying the identity matrix with am-
plitude cos θ and the σz matrix with amplitude −i sin θ. Now, when you perform the
error correction protocol, you measure the error, and find out that there was no error
(2)
with probability cos2 θ and a σz error with probability sin2 θ. However, after the
quantum state has collapsed, this is indeed the situation.
So how do we prove Theorem 1? We prove that if an error-correcting code can
correct errors described by matrices M1 , M2 , M3 , . . ., Mk , then it can correct errors
described by any linear combination of these. Then we show that any error on t qubits
is a linear combination of Pauli errors on t qubits.
The first step is just an application of the linearity of quantum mechanics. Consider
an error correcting circuit. Then we can apply the principle of delayed measurement to
postpone any measurements until the end. Here, instead of measuring the error classi-
cally and applying Pauli matrices (say) to correct it, you measure the error coherently
and then use controlled Pauli gates to correct the error. This gives us a unitary which
takes
Mi | ψi 0l −→ | ψi | Di i
whereP| Di i is essentially a description of the error. Then, for an error F , if we have
F = i Mi , we can correct it. This is because the error correction circuit takes
X X
F | ψi 0k = αi Mi | ψi 0k −→ | ψi αi | Di i .
i i
This calculation also shows how error correction gets around the Heisenberg Uncer-
tainty Principle, which says that if you measure a quantum state, you disturb it. What
error correction does is measure the error without measuring the encoded quantum
state. This lets you correct the error without measuring the quantum state.
Finally, let me address the question of what happens if you have a small error on ev-
ery qubit. For example, suppose you have n qubits, and each qubit has an independent
error where the error on the ith qubit is