14.2 Pauli Words and Stabilizer Syndromes
If Theorem 14.1 forbids duplicating an unknown superposition into , how does quantum error correction protect quantum information?
The key is to embed orthogonal basis states into a multi-body entangled subspace — for instance extending and linearly to — and then measure only multi-body Pauli words that check joint parity without ever probing the single-qubit amplitudes !
The checks read which bit flipped, never or . The four rows are the errors , , , ; each row shows on the left and on the right, with the flipped bit outlined in magenta, and beside each string the two lamps and , lit (magenta) when the reading is . The four errors light four different patterns, and within a row both strings light the same lamps: reading the lamps cannot tell from , so it never touches or . Which lamps light is the mod- parity derived after Lemma 14.6 below.
To formalize this algebra across arbitrary mode count and arbitrary local level count with [NeZero p] (note that is not required to be prime, and may be ), the source module StabilizerGenuineEntanglementCommutationRank defines the structure PauliWord N p with three fields:
- A discrete phase exponent ;
- A shift (flip) exponent vector ;
- A clock (phase) exponent vector .
Writing , on a single -level qudit () the cyclic shift matrix and the diagonal clock matrix form the single-site Weyl operator (ordered with on the right and on the left). A Pauli word then defines the -qudit matrix operator pauliWordOperator w on with entries
while the formal word product wordMul a b adds each field coordinatewise in :
When two Pauli-word operators multiply, on each mode the factor on the left must pass across on the right to reach normal form , picking up the Weyl commutation phase . The next lemma captures this exact multiplication law.
Let with [NeZero p]. For any two Pauli words , the product of their matrix operators satisfies
On each mode , multiplying the single-site Weyl operators gives . Moving past via the clock–shift relation and reducing the shift and clock powers modulo yields . Taking the product over all sums the cross-phase exponents in to , while the intrinsic phase factors combine into the phase field of wordMul a b. The full proof is checked by the Lean kernel.
Two critical points in Lemma 14.6 must be observed:
-
Never drop the external cross-phase scalar: In the source definition,
wordMul a bonly adds the intrinsic phasesa.phase + b.phase; the entire noncommutative cross-phase stands outside as a scalar multiplier and must never be omitted. Even for qubits (, ), the single-site operator order remains , so every site where and contributes a minus sign from . -
Binary symplectic parity check at : Because , comparing with shows that their commutation phase is governed by the difference in . At , this reduces to the binary symplectic inner product
which determines whether a stabilizer check commutes () or anticommutes () with a Pauli error . Note that Lemma 14.6 itself is the operator multiplication identity; turning syndromes into guaranteed logical recovery requires the orthogonal-syndrome decoding structure developed next.
One light points at the flipped qubit. The two checks of the three-qubit repetition code, and , sit over neighbouring pairs of qubits. When the first qubit flips (the magenta X), only , which sits over it, lights up (magenta) and stays dark: anticommutes with and commutes with , exactly the parity mod above, with the cross phase coming from Lemma 14.6. The decoder follows the light and flips the first qubit back (amber); the cyan bars return to the code space and land on the dashed outline.