Steane Code
The Steane code encodes one logical qubit into seven physical qubits and exactly corrects an arbitrary error on any one of them. Its defining idea is unusually economical: the same three parity-check supports from the classical binary Hamming code diagnose both bit-flip and phase-flip components. In modern notation the result is a weakly self-dual CSS stabilizer code with parameters .
That compact description hides several distinctions that matter in practice. The classical Hamming code is not equal to its dual; the dual is contained in it. The quantum code is nondegenerate for its one-qubit correctable Pauli basis, yet it is not a perfect quantum code. Bitwise Hadamard, a convention-sensitive bitwise phase gate, and bitwise CNOT between blocks implement logical Clifford operations, but those operations neither form a universal gate set nor supply a complete fault-tolerant protocol.
This page fixes one binary, tensor, syndrome, and recovery convention and then carries every claim through that convention. The codewords, six checks, logical representatives, twenty-two occupied one-error syndromes, Knill–Laflamme matrix, full-Pauli distance, transversal Clifford action, and a finite depolarizing calculation can therefore be checked against one another rather than accepted as disconnected facts. The construction follows Steane’s original Hamming-based presentation in his 1996 Physical Review Letters article and its fuller Royal Society development, while the stabilizer and fault-tolerant language follows Gottesman’s later systematic treatment.
Required background. Stabilizer Formalism supplies stabilizer groups, binary Pauli vectors, projectors, normalizers, logical cosets, syndrome algebra, and full-Pauli distance.
The Seven-Qubit Hamming Construction
Section titled “The Seven-Qubit Hamming Construction”One declared binary and qubit convention
Section titled “One declared binary and qubit convention”Number the physical qubits from one through seven and read every binary or Pauli string from qubit one on the left to qubit seven on the right. All binary arithmetic is over . Freeze the three-by-seven matrix
Its ordered rows are
The ordered columns are the seven nonzero three-bit words,
This ordering is more than typography. It makes a Hamming syndrome directly identify a qubit: if is observed, the indexed location is . Row operations or a permutation of columns would describe an equivalent code, but they would change the printed stabilizers and the lookup table. Every syndrome below therefore uses this matrix without an implicit reordering.
For a binary word , write
The tensor identity on an omitted position is understood. Pauli phases are retained when an operator acts on a state, although binary vectors suffice for support and commutation calculations. A measured syndrome bit is zero for commutation and one for anticommutation, so it is also zero for a check outcome and one for a outcome.
The classical Hamming code and its dual
Section titled “The classical Hamming code and its dual”Define the classical code and its dual check code by
The rows of are independent, so and . Each row has weight four, and any two distinct rows overlap on exactly two positions. Consequently
The inclusion, rather than equality, is the classical statement needed for the quantum construction. Calling the Hamming code literally self-dual would be false because a binary self-dual length-seven code could not have integer dimension . The useful symmetry is that its dual is self-orthogonal and can be used for both kinds of quantum check.
The seven columns of are nonzero and distinct. A weight-one word cannot lie in because its syndrome is one nonzero column. A weight-two word cannot lie in because the sum of two distinct columns is nonzero. On the other hand,
so . Thus is the Hamming code. Its dual is the simplex code generated by the rows above. Their support-weight enumerators are
The second identity can also be seen geometrically: every nonzero linear combination of the three rows selects four of the seven nonzero points of . Steane’s detailed 1996 Royal Society paper uses precisely this simplex generator and then takes its complement coset to carry the second logical value. Calderbank and Shor’s independent code construction places the same inclusion in the general classical-to-quantum framework.
Normalized logical cosets
Section titled “Normalized logical cosets”Let . The two cosets used for the logical basis are and . With all amplitudes real and positive,
and
The eight strings in the first state are exactly the words of . The eight in the second are their bitwise complements. The cosets are disjoint, so the two states are orthogonal; each contains eight orthogonal computational-basis vectors with amplitude , so both are normalized. Their span carries a general logical state
Every word of has even weight, either zero or four. Every word of has odd weight, either seven or three. This parity separation will make a logical and will also fix the direction of the transversal phase gate. The amplitudes and remain unknown quantum data; none of the parity checks below is permitted to distinguish them.
The complete frozen record is:
| Field | Frozen value |
|---|---|
| Physical qubits | Seven, ordered |
| Logical qubits | One |
| Full Pauli distance | |
| Classical code | , the binary Hamming code |
| Dual check code | , the binary simplex code |
| Parity-check matrix | Rows , , , in that order |
| Six stabilizer generators | followed by for |
| Code projector | |
| Logical basis | Uniform normalized states on and |
| Convenient logical X | |
| Convenient logical Z | |
| Structural status | , Hamming-derived, weakly self-dual CSS, pure and nondegenerate, but not quantum perfect |
Six CSS Stabilizers and Logical Paulis
Section titled “Six CSS Stabilizers and Logical Paulis”Identical X- and Z-check supports
Section titled “Identical X- and Z-check supports”For a binary word , write
Applying this notation to the three rows of , and freezing the Z-type checks before the X-type checks, gives
These are positive-signed generators. Checks within one Pauli sector commute automatically. A Z check and an X check acquire the commutation sign . Since , every such overlap is even, including a row with itself, and all six generators commute. The three rows are independent. Moreover, no nonidentity product of only Z-type generators can equal a product of only X-type generators. The six binary symplectic generator rows therefore have rank six.
The same support matrix appears twice, so it is accurate to write . This property is often called weak self-duality. It must not be confused with equality of the underlying classical codes: , whereas , so . The actual condition that makes the two check sectors compatible is .
Support schematic for the Steane code in the frozen Hamming convention. The three upper -check rows and three lower -check rows use the same parity-check matrix, . Lines indicate stabilizer support only; they are not ancilla circuits, extraction schedules, or fault-tolerance certificates.
The figure records algebraic support, not a method for measuring it. Simultaneous commutation does not by itself specify ancilla preparation, coupling order, verification, repeated rounds, or which faults can propagate. Those physical obligations have to be added when the abstract code is used in a fault-tolerant protocol.
Projector and code dimension
Section titled “Projector and code dimension”Let . Independence gives , and the absence of follows because the displayed logical basis is a common eigenspace. The projector onto that eigenspace can be written in either generator or group-average form:
Each factor is a commuting Hermitian projector, so . Every nonidentity Pauli has zero trace. Only the identity term in the group average contributes, and consequently
Thus the common eigenspace has dimension two and encodes one qubit. The logical coset states are fixed by every generator. An X check translates the summation variable by a row of , merely permuting within either coset. A Z check supplies phase ; this is for because the rows are mutually orthogonal. It is also on the complement coset because every row has even weight. Hence for , and the two orthonormal states exhaust the range of .
It is useful to audit the whole stabilizer rather than only its six generators. Its support-weight enumerator is
The seven nonidentity pure-X elements and seven nonidentity pure-Z elements all have weight four. Of the forty-nine products with nonzero , seven have equal supports and become weight-four Y operators; the remaining forty-two have Pauli weight six. In particular, no nonidentity stabilizer has weight below four. This is the purity fact that will independently confirm nondegenerate correction of all one-qubit Paulis.
Logical Pauli representatives and equivalences
Section titled “Logical Pauli representatives and equivalences”Choose
Both and commute with every stabilizer: each check has even weight. Neither belongs to . Bitwise X takes every word to its complement, while the parity observation made above gives
They anticommute because their seven supports overlap an odd number of times, so these actions are the usual logical Pauli actions. The definition of then fixes the phase convention, for example .
A logical operator is a stabilizer coset, not a unique physical string. Multiplying by a stabilizer changes no action on the code space. In the present convention,
Therefore and , where means equality up to a stabilizer on encoded states. These weight-three representatives will be both upper bounds on distance and explicit residual logical faults in the alias examples below.
Twenty-Two Occupied One-Error Syndromes and Ideal Recovery
Section titled “Twenty-Two Occupied One-Error Syndromes and Ideal Recovery”Ordered six-bit syndrome convention
Section titled “Ordered six-bit syndrome convention”For a Pauli , define if commutes with and if it anticommutes. Store the bits in the generator order already declared:
with the three Z-check bits before the three X-check bits. If is column of , a bit flip at site anticommutes with precisely the Z checks containing that site, and a phase flip anticommutes with the corresponding X checks. Consequently,
Syndromes add modulo two under Pauli multiplication. This convention removes two common ambiguities at once: it specifies which three-bit half is written first, and it assigns each nonzero binary column to one physical site. A different row order or qubit permutation describes an equivalent code, but its ledger is not the ledger below.
Complete one-error syndrome ledger
Section titled “Complete one-error syndrome ledger”The identity and all twenty-one nonidentity one-qubit Paulis occupy distinct syndrome sectors:
| Error | Hamming column | Six-bit syndrome | Chosen phase-free correction |
|---|---|---|---|
Distinctness is immediate from the seven nonzero columns. Pure X errors have a nonzero first half and zero second half; pure Z errors have the reverse; Y errors have two equal nonzero halves. Counting the identity gives twenty-two occupied sectors out of the available .
Separated lookup recovery and Pauli frames
Section titled “Separated lookup recovery and Pauli frames”The six-bit record also defines a finite decoder outside the one-error promise. Let denote no site and let . For any , choose the phase-free recovery
omitting a factor when its half is zero and ignoring global phase. If , this representative is recorded as . On the twenty-two promised sectors it reduces exactly to the final column of the ledger. On a general syndrome, however, it may place an X and a Z on different sites. Calling the rule “separated” means that the two Hamming halves are decoded independently; it does not mean the underlying physical noise is independent.
An ideal recovery can either apply to the data or update a Pauli frame. Frame tracking avoids an immediate physical pulse, but the equivalence is conditional: subsequent ideal Clifford operations must propagate the frame correctly, later measurements must reinterpret their outcomes, and no non-Clifford or hardware-level effect may be silently ignored. The Syndrome Measurement page owns the physical instruments that produce a record. This page assumes that the six stabilizer eigenvalues are reported perfectly and once.
Exact Correction and Full Distance Three
Section titled “Exact Correction and Full Distance Three”The nondegenerate Knill–Laflamme matrix
Section titled “The nondegenerate Knill–Laflamme matrix”Let
For distinct , the product has nonzero syndrome. Indeed, equal syndromes would imply , contradicting the ledger. A Pauli with nonzero syndrome maps the code space to an orthogonal stabilizer eigenspace, so
For , the Pauli phases cancel and the expression is . Hence this fixed basis obeys the exact Knill–Laflamme relation
The coefficient matrix is therefore , of rank twenty-two. This is nondegenerate correctability: the twenty-two error images of the two-dimensional code space are mutually orthogonal. Knill and Laflamme’s general theorem says that this operator identity, rather than a classical story about identifying a hidden error, is the necessary and sufficient condition for exact reversal on the selected error span. The page Why Quantum Error Correction Is Possible develops that general theorem and its assumptions.
Full-Pauli distance three
Section titled “Full-Pauli distance three”Represent a phase-free Pauli by binary vectors
Commutation with every Z-type generator requires ; commutation with every X-type generator requires . Thus every Pauli in the normalizer has . If its Pauli support had weight one or two, each nonzero one of would have Hamming weight at most two. The distance-three property of forces both vectors to be zero. There is therefore no nonidentity normalizer Pauli of weight below three.
The operators and are weight-three normalizer elements and were shown above to act as nontrivial logical Paulis. They are not stabilizers, so the lower bound is attained:
This proof treats arbitrary mixtures of X, Y, and Z support, rather than proving only separate classical bit- and phase-distance statements. It also separates two notions. Distance three says that all Pauli errors through weight one are correctable and all Pauli errors through weight two are detectable. Purity says that the stabilizer itself has no nonidentity member below distance; the enumerator proves that fact here.
Coherent and reference-entangled one-qubit noise
Section titled “Coherent and reference-entangled one-qubit noise”A physical disturbance on site need not select a classical Pauli label. Any operator on that qubit expands as
Linearity of the Knill–Laflamme relation therefore extends exact recovery from to the full operator span on any one site. Syndrome extraction can correlate the four orthogonal error sectors with a record without revealing ; conditional recovery then returns the logical state. The Pauli basis is a calculation device, not an assumption that nature first samples a classical Pauli.
The claim also survives entanglement with an inaccessible reference. If , let an environmental interaction on one physical qubit have Kraus operators in the same Pauli span. Exact correction acts as the identity channel on the encoded subsystem, so
Retaining the reference is essential: merely restoring two basis states would not prove preservation of their relative phase or of entanglement. This exact statement assumes that the noise support is confined to one data qubit and that recovery itself is ideal. It does not certify a faulty extraction circuit, leakage outside the qubit model, or a many-qubit correlated disturbance.
Weak Self-Duality and Transversal Clifford Operations
Section titled “Weak Self-Duality and Transversal Clifford Operations”Hadamard exchanges the check sectors
Section titled “Hadamard exchanges the check sectors”The single-qubit Hadamard conjugates to and to . Because the two check sectors have identical supports,
The six generators are merely permuted, so the code space is preserved. On the chosen logical representatives,
These two conjugations determine logical Hadamard up to an irrelevant global phase. The phase can also be fixed directly: the uniform coset states are related by the binary Fourier transform in the way implied by the displayed logical Pauli action. Thus bitwise Hadamard implements , not merely some Clifford with the same action on one basis state.
“Transversal” here means that each physical gate acts within a single coordinate and never couples two qubits of the same code block. A one-gate fault at this ideal layer therefore cannot fan out within that block. This structural observation is not yet a complete fault-tolerance proof: error propagation through neighboring operations, syndrome extraction, and malignant fault combinations still depend on a specified circuit.
Bitwise CNOT between identical blocks
Section titled “Bitwise CNOT between identical blocks”Take two blocks with the same qubit ordering, call them control and target , and apply
The physical conjugation rules are
Apply them to each support row. A control-block X generator becomes the product of the matching X generator on control and target; a target-block Z generator becomes the product of the matching Z generator on both blocks. The remaining control Z and target X generators stay where they are. Accordingly, the full two-block stabilizer group is preserved.
The identical computation on the logical representatives gives
Those are exactly the standard logical-CNOT conjugations. Identical block ordering matters: an untracked coordinate permutation can change the pairing. Each faulty physical CNOT can affect at most one qubit in each block, which is the transversality advantage; whether the resulting two-block error is managed correctly remains a protocol-level question.
The phase-gate convention
Section titled “The phase-gate convention”Let
The direction of the encoded phase gate is convention-sensitive. Single-qubit conjugation gives and . Every X-type stabilizer here has weight four, so its four factors of contribute . The paired-support relation then gives
Thus bitwise preserves the stabilizer group. It does not, under the phase conventions frozen on this page, implement logical . Since ,
These are the conjugation rules for logical . The same result is visible on the logical basis. All words in have weight zero or four, so bitwise S gives phase ; all words in have weight three or seven, so it gives . Therefore
It follows that is logical , while is logical . Omitting the minus sign in the logical-X conjugation reverses this conclusion.
Clifford closure is not universality
Section titled “Clifford closure is not universality”Logical Pauli operators together with the transversal Hadamard, phase direction just derived, and blockwise CNOT generate the encoded Clifford group. Steane’s 1997 active-stabilization paper used the code’s encoded operations as part of a broader program that also addressed preparation, stabilization, and state synthesis. The algebra above establishes only the code-preserving ideal conjugations. It does not price the ancillas, certify a fault-tolerant implementation of every step, or supply a non-Clifford gate.
Clifford operations alone are not universal for quantum computation. Universal completion requires an additional protected resource, such as a suitable injected state, and the reliability of that resource is not implied by the six stabilizer checks. Moreover, the Eastin–Knill theorem rules out a universal set implemented entirely by transversal logical gates for a finite-dimensional quantum code under its stated assumptions. It does not say that transversal gates are useless, nor that every individual logical gate must be nontransversal. It limits the complete set.
The general questions—how gadgets contain fault spread, how non-Clifford resources are prepared and distilled, and when code switching is useful—belong to Fault-Tolerant Gates. The present claim is narrower: this fixed Steane block has the declared transversal logical Clifford actions.
Packing, Aliasing, and Ideal Decoder Limits
Section titled “Packing, Aliasing, and Ideal Decoder Limits”Nondegenerate but not perfect
Section titled “Nondegenerate but not perfect”For a nondegenerate code, the quantum Hamming bound counts one two-dimensional error image for the identity and for each of the single-qubit Pauli errors. Here
Equivalently, only twenty-two of the sixty-four syndrome labels are occupied by weight-zero and weight-one errors. The inequality is strict, so this quantum code is not perfect. The word “Hamming” refers to its classical ingredient; the classical code is perfect for one classical bit error, but perfection does not carry through this quantum packing count.
Nor should nonperfect be mistaken for degenerate. Degeneracy asks whether distinct correctable errors have the same action on the code, or equivalently whether a low-weight product of two errors lies in the stabilizer. The Knill–Laflamme matrix and the minimum stabilizer weight four show that the promised one-error set is nondegenerate. Perfection instead asks whether its orthogonal error spaces fill the entire physical Hilbert space. This code is pure and nondegenerate yet has unused syndrome sectors. Preskill’s Chapter 7 presents these packing and degeneracy distinctions in the broader theory of quantum codes.
Two explicit higher-weight aliases
Section titled “Two explicit higher-weight aliases”Syndrome measurement detects departure from the code space, but a syndrome does not reveal the physical error uniquely once the one-error promise is removed. Because syndromes add and ,
The frozen lookup responds with . The recovery is consistent with the record, but its residual action is
The analogous phase alias is
In both examples the stabilizer measurements and the specified decoder do exactly what their definitions say. What fails is the premise that the actual error belongs to . A different inference rule supplied with a nonuniform prior might choose a different representative for an ambiguous sector. Detection, guaranteed correction under a promise, and optimal inference under a noise model are three different claims.
Independent depolarizing fixture
Section titled “Independent depolarizing fixture”For one deterministic finite validation, assign each data qubit independent depolarizing probabilities
then apply the separated sixty-four-syndrome recovery . Enumerate all phase-free physical Paulis. After recovery, each residual has zero syndrome and therefore lies in one of the four logical cosets , , , or . The exact ledger is:
| Physical Pauli weight | Total | ||||
|---|---|---|---|---|---|
| 0 | 1 | 1 | 0 | 0 | 0 |
| 1 | 21 | 21 | 0 | 0 | 0 |
| 2 | 189 | 42 | 63 | 21 | 63 |
| 3 | 945 | 252 | 217 | 259 | 217 |
| 4 | 2835 | 609 | 714 | 798 | 714 |
| 5 | 5103 | 1281 | 1302 | 1218 | 1302 |
| 6 | 5103 | 1428 | 1239 | 1197 | 1239 |
| 7 | 2187 | 462 | 561 | 603 | 561 |
Every weight- row sums to ; all totals sum to ; and each logical column sums to . The first two rows verify the correction promise. At weight two, the nonidentity logical columns contain failing Paulis, while forty-two happen to be mapped back to the identity logical class.
The classification can be reproduced without floating-point arithmetic or a probabilistic simulation. Encode a physical Pauli by its binary pair , obtain its syndrome from the six symplectic inner products, and XOR the pair for the prescribed recovery. The residual has zero syndrome. To label its logical class, test its commutation with the frozen and , or compare it against the four normalizer cosets after generating the sixty-four stabilizers. Both routes must return the same label. Iterating the physical strings in a fixed lexicographic order, while counting only their input Pauli weight, produces integer counts that do not depend on a random seed.
The row and column checks test different possible defects. A row failure signals that a physical string was omitted, duplicated, or assigned the wrong weight. A logical-column sum other than signals a bad coset classifier, because the four normalizer cosets are equal in size after the decoder maps each syndrome sector back to zero syndrome. Agreement in the weight-zero and weight-one rows tests the promised recovery, whereas the two explicit aliases test named entries in the weight-two failure classes. These independent invariants make the ledger a useful deterministic validation fixture rather than an unexplained list of integers.
Weighting the nonidentity logical counts in row by gives
Several exact checks constrain transcription and convention errors:
The leading coefficient also follows directly from the 147 failing weight-two strings: to lowest order. At , all four physical Paulis are equally likely, and the four equal-size residual logical cosets make the logical nonidentity probability .
This polynomial is an exact ideal-block result for one channel convention and one fixed decoder. It is not a code-capacity threshold, an optimized-decoder claim, a circuit-level forecast, a correlated-noise or leakage model, or a device prediction. The channel convention itself is developed at Pauli Noise and Depolarizing Channels; general inference from priors, repeated noisy records, and confidence belongs to Decoders.
Canonical Owners and Boundaries
Section titled “Canonical Owners and Boundaries”What this page owns and where to continue
Section titled “What this page owns and where to continue”This page owns the exact seven-qubit convention declared at its start: the ordered Hamming matrix, normalized logical cosets, six signed generators, projector, logical representatives, syndrome ledger, phase-free separated recovery, distance proof, transversal Clifford conjugations, two aliases, and finite depolarizing enumerator. The prerequisite Stabilizer Formalism page retains the general Pauli, symplectic, normalizer, and Clifford language. CSS Codes owns the general family construction, quotient distances, and generic algebraic gate conditions; this page retains its fixed Hamming matrix, logical cosets, twenty-two occupied syndromes, separated recovery, code-specific Clifford convention, and finite depolarizing polynomial.
Color Codes owns the equivalent triangular geometry and scalable 2-colex family; this page retains its Hamming convention, exact cosets, syndrome ledger, recovery, and code-specific gate fixture.
Two nearby distance-three codes sharpen the comparison. Five-Qubit Code owns the perfect non-CSS code and its sixteen-sector lookup. Shor Code owns the concatenated, degenerate construction. The Steane code is instead Hamming-derived, weakly self-dual, nondegenerate, and nonperfect. These adjectives describe different structures; none is a synonym for being “better” without a physical task and noise model.
Seven data qubits are not a hardware resource estimate. They omit state preparation, encoded ancillas, verification, coupling gates, repeated check rounds, measurement, reset, routing, connectivity, classical processing, latency, discarded trials, factories, scheduling, and spare capacity. Steane-style encoded-ancilla error correction is a protocol family associated with this code, but it is not the support-only algebra developed here. Dated experimental realizations and their actual resources belong to Error-Correction Case Studies. The Quantum Error Correction and Fault Tolerance guide provides the chapter map and keeps these owner boundaries explicit.
The distinction also protects historical interpretation. The existence of a compact encoded basis and transversal ideal gates establishes important code structure, but it does not retrospectively establish a modern logical-error rate, threshold, or scalable architecture. Such conclusions require a dated noise model, a complete fault-tolerant protocol, and resource accounting at the level actually implemented.
Exercises
Section titled “Exercises”1. Audit the Hamming inclusion and logical cosets
Section titled “1. Audit the Hamming inclusion and logical cosets”Starting only from the printed matrix , recover its seven ordered columns, compute , and prove . Determine the dimensions of and . Then use the explicit computational-basis expansions to verify normalization, orthogonality, and the parity separation of the two logical states.
Solution
Reading downward gives , so no column is zero and no two columns coincide. Each row has weight four. Distinct rows overlap in two places, while a row overlaps itself in four places; every entry of is therefore zero modulo two. Each row of lies in , and hence .
The three rows are independent: their leading nonzero coordinates occur at qubits four, two, and one, respectively. Thus , , and . Each logical expansion contains eight distinct basis strings with squared amplitude , so its norm is one. The two supports are disjoint cosets because , giving zero inner product. Finally, contains the zero word and seven weight-four words; complementing them produces one weight-seven and seven weight-three words. This proves the even-versus-odd parity separation used by logical Z and transversal S.
2. Construct the six stabilizers and projector
Section titled “2. Construct the six stabilizers and projector”Translate each Hamming row into its Z-type and X-type Pauli check. Verify the signs, commutation, binary rank, group size, projector identities and trace, and the stabilizer weight enumerator. Finally, apply the frozen logical X and Z to both logical basis states and find their weight-three equivalents.
Solution
The row strings give , followed by , all with positive sign. Same-type checks commute, and each cross-type commutator is because . Three independent Z rows and three independent X rows give binary rank six and group elements.
Each is a commuting Hermitian projector, so their product is Hermitian and idempotent. In the group sum, only has nonzero trace; hence . There are twenty-one weight-four and forty-two weight-six nonidentity stabilizers, yielding . Bitwise X complements each basis string and swaps the logical states. Bitwise Z reads their even or odd parity and acts with signs . Thus they act as logical X and Z. Multiplication by and gives and .
3. Reconstruct the one-error syndrome ledger
Section titled “3. Reconstruct the one-error syndrome ledger”Derive the syndromes of all twenty-two members of without copying the table. Explain why they are distinct. Then use the ideal lookup on , , and , including the residual operator after correction.
Solution
An anticommutes with exactly the Z checks whose Hamming rows contain site , giving . The same reasoning with sectors exchanged gives , and multiplication gives . The seven nonzero columns are distinct. Moreover, the zero-half patterns separate X, Z, and Y families, so these twenty-one syndromes and are all different.
Since , the record for is , and the recovery is . For , it is and the recovery is . For , it is and the phase-free recovery is , equivalently up to phase. In every case recovery times error is the identity up to global phase, so the logical residual is .
4. Prove exact correction and distance three
Section titled “4. Prove exact correction and distance three”Use the ledger to derive the Knill–Laflamme matrix. Extend the result to a coherent one-qubit operator while retaining an arbitrary reference system. Then prove distance three for the full Pauli normalizer, not only for separate pure-X and pure-Z errors.
Solution
For , syndrome addition gives . The product maps the code into a stabilizer eigenspace orthogonal to the code, so . For , the product is identity up to a phase that cancels in , giving . Thus the coefficient matrix is exactly .
Every one-qubit Kraus operator is a linear combination of . Bilinearity extends the matrix identity to any channel whose Kraus operators lie in that span. The recovery acts as the identity channel on the encoded subsystem, so tensoring it with preserves every encoded state entangled with a reference , including all relative phases.
For a normalizer Pauli , commutation with the Z and X check sectors gives . A total support below three would make every nonzero one of these vectors a codeword of Hamming weight below three, impossible because has distance three. The weight-three normalizer elements and are nontrivial logical operators, so the lower bound is attained and the full Pauli distance is three.
5. Verify transversal Hadamard and CNOT
Section titled “5. Verify transversal Hadamard and CNOT”Compute the conjugation of every stabilizer sector and both logical Pauli generators under bitwise Hadamard. Repeat for bitwise CNOT between two identically ordered blocks, keeping the control and target conjugations distinct.
Solution
Hadamard exchanges X and Z on each coordinate, so it sends for . It also sends . The stabilizer is preserved and the logical conjugations are exactly those of logical H.
Under physical CNOT, a control X copies to the target, a target Z copies to the control, and control Z and target X remain unchanged. Therefore each control X check becomes the product of the matching X checks on both blocks; each target Z check becomes the product of the matching Z checks; the other six generators remain in their original blocks. Replacing each support row by the seven-site logical support gives , , , and . These are precisely logical CNOT.
6. Resolve the transversal phase convention
Section titled “6. Resolve the transversal phase convention”With and , determine the action of on stabilizers, logical Paulis, and logical basis states. Explain why the resulting Clifford gates are not a universal transversal set.
Solution
Each weight-four X check becomes a weight-four Y string. Writing , the phase is , so ; every Z check is fixed. Thus the code space is preserved. For the logical operator, , while is fixed. Equivalently, even-weight words in receive phase one and weight-three or weight-seven words in receive . Therefore physical bitwise S implements logical , and physical bitwise implements logical S.
Together with H, CNOT, and Paulis these operations generate Clifford gates. Clifford circuits are not computationally universal, and Eastin–Knill precludes a universal entirely transversal set under its finite-dimensional code assumptions. A protected non-Clifford resource and its own fault analysis are still needed.
7. Diagnose two higher-weight aliases
Section titled “7. Diagnose two higher-weight aliases”Derive the frozen X- and Z-type weight-two aliases, identify each residual logical operator, and compare the number of promised error sectors with the quantum Hamming bound.
Solution
Since , syndrome addition gives . The lookup applies , leaving . Similarly, , and applying leaves . These are decoder failures outside the one-error promise, not measurement inconsistencies.
The nondegenerate radius-one spaces occupy physical dimensions, whereas seven qubits have dimension . Equivalently, the identity and twenty-one one-qubit errors use only twenty-two of sixty-four syndromes. The strict inequality proves that this quantum code is not perfect.
8. Audit the ideal depolarizing decoder
Section titled “8. Audit the ideal depolarizing decoder”Count the weight-two errors that fail under the separated lookup and derive the leading small- logical-failure probability. As a finite computational extension, explain how to reproduce the full residual-class enumerator and exact polynomial without making a stochastic estimate.
Solution
The weight-two row contains Paulis. The identity-logical column contains forty-two, so fail; equivalently, sum the other columns as . Each particular weight-two Pauli has probability , hence
For the exact extension, iterate deterministically over the strings in . XOR their single-site syndrome contributions, apply , and compare the zero-syndrome residual with the four cosets generated by , , , and . Bin by physical weight and logical class. The resulting integer ledger must match the displayed table, with every row, grand total, and logical-column sum checked. Weight its three nonidentity columns by , sum over , and expand; this reproduces the displayed seventh-degree polynomial exactly, with no Monte Carlo error.
References
Section titled “References”- Calderbank, A. R., and P. W. Shor. “Good Quantum Error-Correcting Codes Exist.” Physical Review A 54, 1098–1105 (1996). doi:10.1103/PhysRevA.54.1098.
- Eastin, B., and E. Knill. “Restrictions on Transversal Encoded Quantum Gate Sets.” Physical Review Letters 102, 110502 (2009). doi:10.1103/PhysRevLett.102.110502.
- Gottesman, D. Stabilizer Codes and Quantum Error Correction. Ph.D. thesis, California Institute of Technology (1997). doi:10.7907/rzr7-dt72; arXiv:quant-ph/9705052.
- Knill, E., and R. Laflamme. “Theory of Quantum Error-Correcting Codes.” Physical Review A 55, 900–911 (1997). doi:10.1103/PhysRevA.55.900.
- Preskill, J. Quantum Information, Chapter 7, “Quantum Error Correction.” Official working draft, updated March 2026. PDF.
- Steane, A. M. “Error Correcting Codes in Quantum Theory.” Physical Review Letters 77, 793–797 (1996). doi:10.1103/PhysRevLett.77.793.
- Steane, A. M. “Multiple-Particle Interference and Quantum Error Correction.” Proceedings of the Royal Society A 452, 2551–2577 (1996). doi:10.1098/rspa.1996.0136.
- Steane, A. M. “Active Stabilization, Quantum Computation, and Quantum State Synthesis.” Physical Review Letters 78, 2252–2255 (1997). doi:10.1103/PhysRevLett.78.2252.