Knill–Laflamme error-correction conditions
Test exact correctability by comparing error-overlap matrices throughout a code subspace.
On this page
The question for today
What you’ll understand
- Apply the Knill–Laflamme criterion to an explicit error set.
- Distinguish a distinguishable error syndrome from logical-state disclosure.
- Recognize harmless degeneracy and the scope of an exact recovery theorem.
A recovery procedure must restore every state in a code, including superpositions and entanglement with another system. Successfully correcting two chosen basis states separately does not prove this stronger statement. The Knill–Laflamme conditions give an exact test on the entire error set. They identify the overlaps that may be stored in a syndrome and forbid overlaps that leak logical information into an inaccessible environment. The theorem concerns an ideal recovery, whose physical implementation is a further engineering problem.
Use one overlap matrix for every codeword
Let P project onto a code subspace and let the specified error operators be . For each pair, compress into the code. Exact correctability requires this compression to be a scalar times P, with the scalar allowed to depend on the error labels but not on the logical state. The resulting matrix C is positive semidefinite. It records error-sector overlaps while leaving the encoded degree of freedom unchanged.
In an orthonormal logical basis, the condition contains two separate requirements. Off-diagonal logical matrix elements vanish, preventing distinct logical states from becoming confused. Diagonal elements are equal across the basis, preventing error probabilities or overlaps from distinguishing logical inputs. Both are needed. A procedure that successfully restores classical labels while their environmental records differ can erase the coherence of a superposition, even though measurements in the original logical basis look correct.
Diagonalize the error overlaps, not the state
A unitary change of error basis diagonalizes C. After rescaling its nonzero eigenvalues, the transformed errors carry the code into mutually orthogonal subspaces. A syndrome measurement can distinguish these subspaces, and a conditional inverse can return each to the code. Crucially, it need not distinguish the logical vectors within any one subspace. Zero eigenvalues correspond to combinations that vanish on the code and require no separate recovery branch.
Orthogonal error subspaces are convenient but not necessary in the original error labeling. Two different physical error operators may act identically on every code state, making their distinction irrelevant. This is degeneracy. A recovery only has to identify enough information to undo the logical effect, rather than reconstruct a unique microscopic history. Confusing degeneracy with failure leads to overly strong demands on a syndrome and to incorrect classical sphere-counting arguments for quantum codes.
Identify a failure before designing recovery
For the bit-flip repetition code, each single X takes both logical basis states into a new syndrome sector. Products of two different single X errors also take the code outside itself, so the relevant off-diagonal error overlaps vanish. In contrast, one Z preserves the code but has opposite signs on its logical basis states. Its compressed action is a logical operator, not a scalar. Adding unknown Z to the identity error set therefore violates the criterion.
The criterion is conditional on which operators are included. A known unitary can always be inverted, whereas an unknown choice between identity and a logical Z cannot be perfectly reversed without additional information. Approximate correction replaces exact identities by controlled error bounds and needs a chosen distance or fidelity measure. Neither a small violation nor a successful example establishes a universal hardware guarantee. Check the modeled Kraus span, inaccessible records, and recovery resources before interpreting the result physically.
Work it through
Test all pairs in the repetition error set
For , test the unweighted operators . Find C and explain why checking only each error norm would be insufficient.
Each diagonal product is , because Pauli X is unitary. Thus all four diagonal compressed products equal P, giving diagonal entries one independently of the logical input.
A product involving identity and one nonidentity error has weight one. A product of distinct nonidentity errors has weight two. Acting on 000 or 111, neither kind returns a string in the two-dimensional code, so every off-diagonal compressed product is zero.
Hence . The four two-dimensional error images fill the eight-dimensional physical space. Norm checks alone would miss cross products such as , which are precisely where an uncorrectable logical effect can appear.
The complete pairwise test establishes exact correction of the stated four-operator span, including coherent combinations, with ideal recovery.
The living notebook
Explore the model
Interactive lab · quantum
A logical phase is visible outside the chosen basis
Reset and set both controls to mixing angle , phase . Predict Bloch x equal to one. In a fresh run Reset and set ; predict Bloch x equal to minus one with unchanged basis probabilities. Interpret this as the logical effect of Z. The lab has no encoded block, overlap-matrix calculation, or recovery operation.
- Probability |0⟩
- 71.1%
- Probability |1⟩
- 28.9%
- Bloch (x, y, z)
- 0.78, 0.45, 0.42
A normalized two-level pure state, not an interacting field simulation. Playback adds one radian per second to the relative phase; basis probabilities stay fixed. Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.
Look forAn unnoticed logical phase can change the state even when computational-basis statistics agree.
Pause & reason
Check your understanding
Your turn
Try it yourself
Keep the same repetition code, but use Kraus operators and . Compute C and give a recovery. Explain why the physical error label need not be learned.
Take a moment to make a prediction or work it out on paper. Open a hint when you need one.
Give me a hint
Both codewords have equal first and second bits. Evaluate the action of their two-Z parity before computing cross products.
Compare with the solution
On the code equals identity, so . Its determinant is zero and trace one, giving eigenvalues zero and one. The channel already leaves every code density operator unchanged; identity recovery suffices. The two environmental labels may differ, but their amplitudes are independent of the logical state and carry no logical information. This is harmless degeneracy.
Keep the idea
Take it with you
- Exact correctability constrains every pair of error operators on the whole code.
- Syndrome information may distinguish errors while remaining independent of the logical state.
- Degenerate errors need not be distinguished when their code action is the same.
Read further
Original sources and deeper explanations to follow at your own pace.
Optional progress, saved in this browser when available. Revisit any lesson at any time.
Lesson not marked complete.