Skip to content
Current section
The Quantum Computing Enthusiast’s Hub
Saved
All sections

All sections

Saved
Skip Learn navigation
Encyclopedia
Topic

Steane seven-qubit code

The Steane code is a [[7,1,3]] CSS code that encodes one qubit and corrects any single-qubit error under ideal recovery.

Edition released Coverage: Overview · Technical · Research
On this page

Explanation and significance

The code is a compact demonstration of how classical parity checks can protect quantum information in two complementary bases. Its self-dual CSS structure supports particularly transparent logical Clifford operations. This makes it useful as a reference model for encoded gates and concatenation. Its seven data qubits do not include every ancilla needed for a fault-tolerant computation.

Mechanism and mathematical structure

Use X- and Z-type checks with supports 1111000, 1100110 and 1010101. The six generators are independent and mutually commute. Representatives X_L=X^tensor7 and Z_L=Z^tensor7 commute with checks and anticommute with each other, since their overlap has odd weight seven. Multiplying logical representatives by stabilizers can reduce their weight to three. Applying a transversal Hadamard exchanges X checks with Z checks and implements logical H. The phase-gate convention needs care: transversal S and S-dagger differ in their logical phase action, so verify it against the selected logical basis rather than asserting an unspecified phase rule.

Fully worked reference example

Let a single X fault occur on q4 using zero-based positions. The relevant H column is (0,1,1), so the Z-check outcomes are (+1,-1,-1). Recovery X4 restores the code. A Y4 fault yields the same nontrivial pattern in both X- and Z-check sets. For a distance calculation, multiply X^tensor7 by the first X stabilizer X0X1X2X3. The product is X4X5X6, a weight-three nontrivial logical representative. No weight-one or weight-two Pauli lies in the normalizer outside the stabilizer, establishing the intended minimum distance once the stabilizer algebra is checked.

Limits and misconceptions

A transversal logical gate does not make initialization, measurement and syndrome extraction automatically fault tolerant. One must track error propagation, ancilla preparation and classical feedforward. Two unknown errors lie outside the universal correction guarantee, even if a particular pair is harmless or happens to be corrected. A seven-qubit demonstration with postselection should be described by its accepted-shot task and acceptance rate.

Scientific relationships

Is a CSS stabilizer code. Is used in discussions of transversal Clifford operations, concatenation and fault-tolerant ancilla preparation. Is an alternative to the Shor code for single-error correction.

The encoded basis and transversal phase convention

The Steane code can be expressed through the row space C of the three-row H matrix. Let |0_L> be the equal superposition over the eight bit strings in C, and let |1_L>=X^tensor7|0_L>. Every word in C has weight0 or 4, while the complementary coset has weights 7 or 3. This gives a direct way to verify a transversal phase action rather than guessing from a familiar slogan.

For S=diag(1,i), S^tensor7 multiplies a computational basis word of weight w by i^w. On |0_L>, weights 0 and 4 both give phase+1. On |1_L>, weights 7 and 3 both give phase-i. Therefore transversal S acts as logical S-dagger in this logical-basis convention. Conversely, transversal S-dagger acts as logical S. This convention-sensitive calculation is especially valuable in reference code and circuit captions, where swapping S and S-dagger can silently change an algorithm.

Transversal H exchanges X and Z checks and implements logical H with a compatible basis choice. Transversal CNOT between two identically encoded blocks maps stabilizer constraints to valid constraints and implements logical CNOT. These facts concern ideal encoded operations. They do not by themselves establish fault-tolerant preparation of the required blocks or safe extraction of every syndrome.

A syndrome-table interpretation and its boundary

The columns of H are 111,110,101,100,011,010,001 in the stated ordering. A single X fault produces the corresponding column as its Z-check syndrome. This gives a complete lookup for all seven single X locations; the same columns identify single Z faults through X checks. A Y fault produces both column patterns. The table is compact because the code’s classical structure separates complementary errors.

Now consider X0X1. Its syndrome is 111 XOR110=001, the same as X6. A single-error decoder applies X6, leaving X0X1X6. This is a weight-three normalizer operator with nontrivial logical action, not a corrected state. The explicit example illustrates the distance-three limit and prevents a misleading claim that distinct single-error syndromes make all error patterns distinguishable.

The XOR of the first two syndrome columns, 111 and 110, is 001, the last listed column. The decoder therefore treats the two faults as a fault on the last qubit, leaving the three-position logical operator from the example. The codeword weight classes 0/4 and 3/7 in the phase-gate derivation illustrate a separate consequence of the same binary structure.

Exact logical failure beyond the one-error guarantee

An exhaustive classical calculation is possible for independent physical X faults followed by ideal Steane syndrome recovery. For each seven-bit error string, form its three-bit syndrome H e. If the syndrome is nonzero, flip the unique qubit whose H column equals that syndrome. The residual binary string lies in ker(H). It is a stabilizer if it has even weight and a nontrivial logical X if it has odd weight, because the stabilizer row space contains weight zero and weight four words while the complementary logical coset contains weights three and seven.

Enumerating all 128 error strings gives logical-failure counts by original error weight: zero at weights zero and one, twenty-one at weight two, seven at weight three, twenty-eight at weight four, zero at weight five, seven at weight six, and one at weight seven. Thus p_L=21p²(1-p)^5+7p³(1-p)^4+28p^4(1-p)^3+7p^6(1-p)+p^7. This exact polynomial belongs to independent X noise, perfect checks, and the stated minimum-single-error recovery rule.

The weight-five result is initially surprising: every such pattern is corrected in this particular restricted model. A weight-five error is the complement of a weight-two error and has the same syndrome because H times the all-ones vector is zero. The weight-two pattern is decoded to a nontrivial logical class; complementing it multiplies by logical X, so the weight-five residual becomes a stabilizer. This does not extend the universal error-correction guarantee to five faults. Other error weights and mixed Pauli patterns still fail, and an adversarial guarantee cannot use a favorable subset selectively.

At small p the leading coefficient is 21p², reflecting the twenty-one pairs of physical locations. A crude estimate saying only that the code corrects one error would identify the quadratic order but miss the coefficient and the higher-order cancellations. Conversely, using the exact polynomial as a prediction for a noisy syndrome-extraction experiment would omit the majority of its circuit-level fault locations.

Destructive logical readout and classical correction

To measure logical Z, measure all seven data qubits in the Z basis. For an ideal encoded state, the resulting bit string lies in either the stabilizer row space or its complementary coset. Their parities differ because codeword weights in the first set are even and those in the second are odd. The raw parity of all seven bits is therefore a logical-Z result in the absence of errors.

A single readout bit error changes that raw parity but also produces a nonzero classical Hamming syndrome. Correcting the reported string with the H-column lookup restores the logical outcome. For example, an ideal observed word 0000000 reported instead as 0000100 has its one at q4. Its syndrome is column q4, namely 011 in the printed row order. Correcting q4 returns 0000000 and logical Z=+1. This explicit calculation fixes the zero-based indexing and distinguishes q4 from q5, whose column is 010.

Destructive readout avoids preserving the measured data after this final step, which can simplify a task compared with nondestructive repeated syndrome extraction. It still requires calibrated measurement errors, a decoder for correlated faults, and care about errors immediately before readout. A high final classical decoding success rate does not demonstrate that the state remained coherent through the preceding memory interval. Complementary logical-basis tests or a process characterization are needed for that stronger statement.

Transversal gates and the paired-block error model

A transversal CNOT pairs corresponding positions in two identically ordered Steane blocks. Under conjugation, a control-block X stabilizer becomes the product of that control stabilizer and the matching target stabilizer. A target-block Z stabilizer becomes the matching product in the opposite direction. The stabilizer group is preserved, and the all-qubit logical representatives transform as logical CNOT requires.

If one physical CNOT fault introduces an arbitrary two-qubit Pauli on its control and target, it affects at most one position in each block. That support is individually correctable by distance-three blocks under ideal subsequent recovery. However, an incoming error on one position plus a separate gate fault on another can leave two errors in a block. A formal fault-tolerance condition therefore counts both incoming errors and new faults; it cannot simply assert that every transversal gate corrects all errors that happen during its execution.

Ordering is part of the transversal specification. Pairing qj of one block with a permuted target location can preserve the code only when that permutation is an appropriate code automorphism or is compensated explicitly. A physical layout that makes different pairings convenient must be checked against the stabilizers and logical operators. Connectivity convenience alone does not establish the desired encoded gate.

Sources

  • Daniel Gottesman · · Thesis · arXiv · DOI 10.48550/arXiv.quant-ph/9705052
    Verification scope

    Stabilizer Codes and Quantum Error Correction
    Daniel Gottesman · · Thesis · Preprint recorded · arXiv

    Citation identity checked ·

    Stabilizer algebra and fault-tolerance foundations; no current experimental ranking.

  • A. R. Calderbank; Peter W. Shor · · Research paper · Peer-reviewed publication recorded · DOI link
    Verification scope

    Citation identity checked ·

    Existence and CSS foundations; not a practical hardware performance claim.

  • Andrew Steane · · Research paper · Publication status unspecified · arXiv · DOI 10.1098/rspa.1996.0136
    Verification scope

    Selected text checked ·

    Bibliographic/version metadata and primary text connecting classical code structure to quantum correction checked. The exact H-matrix ordering, finite-error enumeration, and q4 correction are original independent calculations.

    Historical primary source; not evidence for present-day implementation quality or a universal modern resource estimate.