Let be the orthogonal projector onto the quantum code , and choose an orthonormal basis for it. The necessary and sufficient Knill--Laflamme condition is that one matrix , independent of the logical labels, satisfies
Equivalently, . This makes the information in the error label independent of the encoded quantum state. It applies to the whole linear span of the errors, and hence to every noise quantum channel with Kraus operators in that span.
Here is a proof of both directions. For necessity of the Knill-Laflamme condition, let be Kraus operators of a common recovery, so . Since recovery after must return the pure input state, every vector is parallel to . A linear operator on the code which sends every vector to a multiple of itself is scalar: apply it to two basis vectors and their sum to force the two multipliers to agree. Therefore with no dependence on . It follows that
This proves necessity without assuming in advance that the physical errors have orthogonal syndromes.
For sufficiency, is positive semidefinite: for any normalized code state and coefficients , . Diagonalize by a unitary change of the error basis to get operators with . If , is a linear isometry from the code to an error-image subspace, and distinct such images are orthogonal. If , then . A projective measurement of these image subspaces followed by recovers every logical state. Complete the recovery on the unused orthogonal complement in any trace-preserving manner. For a coherent error , the measurement branch contains ; the branch probability is independent of the logical state, and discarding the syndrome leaves the original state. This is constructive recovery from the Knill-Laflamme condition.
For the usual family of distinct unitary Pauli errors modulo scalar phase, nondegenerate quantum code correction means that different physical errors have orthogonal image subspaces. The precise condition is
For nonunitary errors, replace the unit diagonal by positive norm factors. In an arbitrary error basis the Gram matrix need not initially be diagonal; its positive-eigenvalue modes give the independent syndrome spaces just constructed. A kernel of exhibits a linear combination of errors acting as zero on the code. In particular two distinct physical errors with the same action on the code cannot be distinguished and give degenerate correction, as in part (c).