research30 min studyLesson 433 in Physics

Knill–Laflamme error-correction conditions

Test exact correctability by comparing error-overlap matrices throughout a code subspace.

On this page

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 EaE_a. For each pair, compress Ea†EbE_a^\dagger E_b 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.

PEa†EbP=CabP,⟨iL∣Ea†Eb∣jL⟩=CabδijP E_a^\dagger E_b P=C_{ab}P,\qquad \langle i_L|E_a^\dagger E_b|j_L\rangle=C_{ab}\delta_{ij}
This is the exact finite-dimensional criterion for one recovery correcting the linear span of the declared errors. For dimensionless Kraus operators, C is dimensionless.↔ Scroll wide equations horizontally.

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.

PEa†EbP=0 (a≠b),PEa†EaP=P⟹C=IP E_a^\dagger E_bP=0\ (a\ne b),\quad P E_a^\dagger E_aP=P\quad\Longrightarrow\quad C=I
This special nondegenerate case has mutually orthogonal, equally normalized error images. General correctable sets can have a non-diagonal or rank-deficient overlap matrix.↔ Scroll wide equations horizontally.

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.

PZ1P=∣0L⟩⟨0L∣−∣1L⟩⟨1L∣≠cPP Z_1P=|0_L\rangle\langle0_L|-|1_L\rangle\langle1_L|\ne cP
This expression is for the three-qubit bit-flip code. It shows failure for the set containing both identity and Z-one, rather than failure to invert a known Z-one.↔ Scroll wide equations horizontally.

Test all pairs in the repetition error set

For ∣0L⟩=∣000⟩,∣1L⟩=∣111⟩|0_L\rangle=|000\rangle,|1_L\rangle=|111\rangle, test the unweighted operators E0=I,E1=X1,E2=X2,E3=X3E_0=I,E_1=X_1,E_2=X_2,E_3=X_3. Find C and explain why checking only each error norm would be insufficient.

  1. Each diagonal product is Ea†Ea=IE_a^\dagger E_a=I, because Pauli X is unitary. Thus all four diagonal compressed products equal P, giving diagonal entries one independently of the logical input.

  2. 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.

  3. Hence C=I4C=I_4. The four two-dimensional error images fill the eight-dimensional physical space. Norm checks alone would miss cross products such as I†Z1I^\dagger Z_1, which are precisely where an uncorrectable logical effect can appear.

The result

The complete pairwise test establishes exact correction of the stated four-operator span, including coherent combinations, with ideal recovery.

Explore the model

Interactive lab

Interactive lab · quantum

A logical phase is visible outside the chosen basis

Reset and set both controls to mixing angle 90∘90^\circ, phase 0∘0^\circ. Predict Bloch x equal to one. In a fresh run Reset and set 90∘,180∘90^\circ,180^\circ; 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.

A logical phase is visible outside the chosen basisA normalized two-level pure state, not an interacting field simulation. Playback adds one radian per second to the relative phase; basis probabilities stay fixed. Current readings: Probability |0⟩: 71.1%; Probability |1⟩: 28.9%; Bloch (x, y, z): 0.78, 0.45, 0.42. All parameters are adjustable with the labeled controls below.xyz|0⟩|1⟩Basis probabilitiesP(0)71.1%P(1)28.9%
Bloch vector / P(0)P(1)Phase latitude
Probability |0⟩
71.1%
Probability |1⟩
28.9%
Bloch (x, y, z)
0.78, 0.45, 0.42
t = 0 s

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.

Check your understanding

What does a rank-deficient Knill–Laflamme overlap matrix imply when the criterion holds?

Try it yourself

Keep the same repetition code, but use Kraus operators E0=0.7IE_0=\sqrt{0.7}I and E1=0.3Z1Z2E_1=\sqrt{0.3}Z_1Z_2. 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 Z1Z2Z_1Z_2 equals identity, so C=(0.70.210.210.3)C=\begin{pmatrix}0.7&\sqrt{0.21}\\\sqrt{0.21}&0.3\end{pmatrix}. 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.

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.