The QEC Conditions
A quantum code is a subspace — the codespace — together with an interpretation of certain orthonormal vectors in it as the encoded logical states. The central question of the theory is: given a set of physical errors that might strike the code, when can we recover the original logical information exactly? The Knill–Laflamme conditions answer this completely.
The error set
Model the noise as a set of operators acting on the physical qubits. These need not be unitary; in the most general setting each is a Kraus operator of some noise channel . We will see in the next lesson that for qubits it suffices to take the from the Pauli group, but for now keep them arbitrary.
The conditions
Let be the projector onto the codespace . A recovery operation that perfectly corrects every error in exists if and only if
where is a Hermitian matrix of complex scalars independent of the codeword. Written on basis codewords this reads
Two requirements are packed into this single equation, and reading them separately is the key to intuition.
What each part means
Off-diagonal in the logical index (): . Distinct logical codewords must remain orthogonal even after any pair of errors acts. If two errors could carry and into overlapping states, no measurement could later tell them apart — information would be irretrievably scrambled.
Diagonal in the logical index (): , the same number for every codeword. This is the subtle quantum requirement: the errors must not reveal which logical state we hold. If depended on , then measuring the environment (which effectively learns expectation values) would extract information about the logical qubit, and by the no-cloning logic that disturbance would destroy the encoded superposition.
Why "if and only if"
The "only if" direction is a consistency check: if recovery exists with on the codespace, expanding both sides in Kraus operators forces the conditions. The "if" direction is constructive: diagonalising the Hermitian matrix gives a new error basis (linear combinations of the ) with . Each maps the codespace isometrically (up to normalization) into a mutually orthogonal subspace , so measuring "which am I in" is a non-demolition syndrome measurement, after which a unitary returns each to . This basis-diagonalisation is exactly why arbitrary errors reduce to a finite correctable set — the subject of the next lesson.
Degenerate vs. non-degenerate
If the matrix is full rank, the code is non-degenerate: distinct errors send the codespace to distinct orthogonal subspaces. If is singular, the code is degenerate: different errors can act identically on the codespace (their difference annihilates it). Degeneracy is a uniquely quantum phenomenon with no classical analogue, and we devote a later lesson to it.
The takeaway
A code corrects an error set exactly when . The off-diagonal part keeps logical codewords distinguishable after errors; the diagonal part — equal for all codewords — guarantees the errors leak no logical information. Everything else in this module is a corollary of these conditions.
Sign in on the full site to ask questions and join the discussion.