Subsystem Codes
A subsystem code stores information in one factor of an encoded Hilbert space while allowing another factor, called the gauge subsystem, to change. Gauge measurements can therefore simplify error correction without preserving every encoded degree of freedom. The distinction is physical: changing a gauge qubit is harmless to the protected information; changing a logical qubit is not.
We first make that distinction explicit in four qubits, then develop the Bacon–Shor family and its decoding limits. Low-weight gauge measurements are useful, but neither their weight nor the static code distance determines the reliability of a complete recovery circuit.
Required background. Why Quantum Error Correction Is Possible explains error spans and exact correctability. Stabilizer Formalism supplies Pauli commutation and independent stabilizer counts.
Helpful background. Syndrome Measurement distinguishes a measured observable from the circuit that realizes it. Shor Code gives a related nine-qubit subspace code.
Logical and gauge tensor factors
Section titled “Logical and gauge tensor factors”Choose an encoded sector with projector and decomposition
Here carries the protected information, is the gauge subsystem, and is the unused remainder. A typical input is , with arbitrary gauge state. An operation changes the physical state but leaves intact. Gauge qubits are generally distributed encoded degrees of freedom, not physical sites set aside and left unused.
For an error set , the operator-QEC condition is
with the equality understood on the encoded sector. It requires every pairwise error product to act trivially on after projection, while permitting an operator on . When is one dimensional, becomes a scalar and the ordinary Knill–Laflamme condition returns. Kribs and collaborators (2006) develop this generalization; the linked correctability page gives the underlying recovery argument.
A recovery can restore while replacing . It need not reverse the physical error on every encoded degree of freedom. Correctability is required for the declared error span and all protected inputs, including inputs entangled with an external reference. It does not establish the reliability of a noisy recovery implementation.
There is a subtle distinction between preserving an unconditional state and preserving every conditional state. A gauge measurement has operators . On a product input its outcome probabilities are independent of , and every nonzero branch preserves that logical state. On an initially correlated state, selecting an outcome can change the conditional state of , just as measuring one member of an entangled pair can steer the other. Ignoring the gauge outcome leaves the reduced state on unchanged. Exercise 1 works through this distinction.
A four-qubit subsystem you can calculate
Section titled “A four-qubit subsystem you can calculate”Number a square as across the top and across the bottom. Take four Hermitian gauge generators
The two horizontal operators commute, as do the two vertical operators. Every horizontal operator anticommutes with every vertical one because they overlap once. Their products
commute with all four generators. Restrict to their common eigenspace. Its dimension is : enough for one logical and one gauge qubit.
Within that space, choose
The logical pair anticommutes, the gauge pair anticommutes, and every logical operator commutes with every gauge operator. This identifies two independent qubit algebras. Since on the encoded sector, acts as the same gauge as , and as the same gauge as .
A starting encoded state is
Applying and generates the other three basis states. This gives an explicit tensor-factor identification rather than just a dimension count. Notice that the state of one gauge qubit is spread over all four physical qubits.
Why the order of gauge measurements matters
Section titled “Why the order of gauge measurements matters”In the sector, measuring and then gives outcomes with . Their product correctly reports , even though either individual outcome can be random.
Now measure , then , then . After the first measurement the gauge qubit has a definite value. Measuring erases that information, so the final result is equally likely to be either sign. The product is wrong half the time, despite perfect measurements and no physical errors. Every measurement still commutes with and preserves the logical subsystem. The failure is in the inference from results obtained at incompatible times.
In the common stabilizer sector, and represent the same gauge . Measuring the anticommuting gauge operator between them destroys their outcome correlation. Both sequences leave the protected logical information intact when the gauge record is ignored; only the first product is a valid measurement of .
For a general central stabilizer , a consecutive joint measurement of commuting factors gives its eigenvalue by multiplying their signed outcomes. Interleaving other gauge measurements requires a fresh analysis of the resulting instrument. Suchara, Bravyi, and Terhal (2011) develop conditions for valid syndrome inference from gauge sequences. Even a valid ideal instrument still needs a circuit that controls ancilla fault propagation and readout errors.
Gauge groups, logical operators, and distance
Section titled “Gauge groups, logical operators, and distance”Let be the physical Pauli gauge group, including scalar phases . For binary ranks write . Multiplication modulo phase is abelian; the binary symplectic form retains the information about anticommutation of physical representatives. For a binary Pauli subspace , let denote its symplectic orthogonal.
The stabilizer directions are
Choose consistent Hermitian signs to define a signed stabilizer group without . Its sector is nonempty. The full group center also includes scalar phases, so it is , not the signed stabilizer group alone.
If the stabilizer rank is and the gauge algebra has independent anticommuting pairs, then
The code is written . Its encoded sector has dimension ; only qubits are protected. Count independent binary directions, not the number of measurements listed in a schedule.
A bare logical commutes with the whole gauge group and acts as . A dressed logical may act as . Multiplying by a gauge operator changes the gauge action without changing the protected action. The corresponding projective logical classes are
Both have binary dimensions. Their representatives need not have the same weights. For example, in the four-qubit code, multiplying by gives . This is the same protected logical , but it anticommutes with and is therefore dressed rather than bare.
The static Pauli distance minimizes over nontrivial dressed logicals:
Poulin’s (2005) subsystem stabilizer formulation makes the recovery criterion especially direct. For every pair of correctable Pauli errors, must either anticommute with a stabilizer or belong to the gauge group. In the first case its compression to the encoded sector vanishes; in the second it acts only on . A nontrivial dressed logical instead creates an ambiguity that recovery cannot resolve for all logical inputs.
Consequently, distance permits correction of all unknown errors on at most sites, or arbitrary errors on a known set of fewer than sites. These are different tasks. The four-qubit code has distance two: it detects every single-qubit Pauli and corrects any one known erasure, but cannot correct an arbitrary unknown single-qubit error. For instance, and differ by logical and have the same stabilizer syndrome.
Bacon–Shor rows and columns
Section titled “Bacon–Shor rows and columns”Place qubits at sites of an rectangle, with rows increasing downward. Following the convention above, the elementary gauges are horizontal and vertical bonds:
Bacon (2006) introduced this lattice construction. Its stabilizers multiply all parallel bonds across one complete gap:
There are independent stabilizers and independent stabilizers. Horizontal and vertical bond sets are separately independent, giving gauge rank . Subtracting the center rank leaves twice the number of gauge qubits:
A full column of and a full row of are bare logicals. Each commutes with every gauge bond, and they anticommute with each other at their unique crossing. Moving a full column by multiplying an stabilizer changes its representative without changing its action on either encoded factor.
The Bacon–Shor code has twelve weight-two gauge generators and four weight-six stabilizers. Multiplying the three horizontal bonds across a column gap gives one stabilizer. The highlighted column and row support a bare logical and . Four gauge qubits are encoded collective degrees of freedom, not four marked lattice sites.
A dressed logical must anticommute with a bare logical on every row, since those row operators represent the same protected observable. It therefore has an or on at least one site in every row and has weight at least . Similarly, a dressed logical has weight at least . A logical satisfies both requirements and cannot evade their lower bounds. The displayed pure strings attain them:
Here the subscripts name the logical operator type, not the error type that an axis checks. The square family is , giving at .
| Quantity | block | block |
|---|---|---|
| Physical qubits | 9 | 15 |
| Gauge qubits | 4 | 8 |
| Independent stabilizers | 4 | 6 |
| Gauge rank | 12 | 22 |
Decoding can ignore a site within a row
Section titled “Decoding can ignore a site within a row”For errors, a stabilizer compares the error parities of adjacent rows. Two errors in the same row multiply to a horizontal gauge string and are harmless to . A single can therefore be corrected at any site in the correct row. For errors the analogous equivalence is within a column. With independent Pauli components and perfect stabilizer measurements, decoding reduces to repetition decoding of row and column parities. Correlated components or nonuniform errors can change the most likely joint logical class.
The input to that decoder is a valid stabilizer syndrome, not an arbitrary product of gauge results. One simple ideal schedule measures all horizontal gauges in a commuting subround and then all vertical gauges. Noisy measurements require further processing and often repeated rounds; native parity measurements, ancilla circuits, routing, and leakage all affect performance. Decoders discusses inference from noisy records.
Growing distance is not enough for an accuracy threshold
Section titled “Growing distance is not enough for an accuracy threshold”Consider only independent errors of probability per site and perfect syndrome extraction on an odd square of side . A row has odd error parity with probability
Majority decoding of the independent row parities fails with probability
At fixed , approaches exponentially fast. The growing repetition block is then receiving almost completely random row bits, and . The distance grows, but unrestricted growth of this particular block eventually hurts. Optimizing a finite rectangle for the noise can still produce strong protection; Napp and Preskill (2013) analyze that optimization. Aliferis and Cross (2007) instead obtain fault-tolerance results for a specified concatenated Bacon–Shor construction. Concatenation and increasing one square block are different code families.
Fixing a gauge and changing the code
Section titled “Fixing a gauge and changing the code”Measuring an additional commuting gauge observable and choosing its sign reduces gauge freedom. In the four-qubit example, impose alongside . The remaining subspace encodes one qubit, with the same bare . If the measurement gives , applying flips that gauge sign without changing either logical observable. The procedure resets while preserving .
More generally, choose a compatible commuting set of projective gauge directions . Then
Fixing new independent directions changes to and to , while keeping fixed. Consistent measured signs and suitable gauge corrections specify the physical sector. Since lies in the original gauge algebra, bare logicals commute with it. Measuring a protected logical instead would change the task rather than fix a gauge.
Different choices can make different logical gates convenient. Vuillot and collaborators (2019) also formulate code deformation and lattice surgery in this language. The algebra explains the preserved logical information; Fault-Tolerant Gates and Lattice Surgery discuss the actual protocols. Endpoint distances alone do not establish the fault distance of a noisy transition.
Finally, low-weight gauge generators need not imply low-weight stabilizers. Square Bacon–Shor has weight-two gauges but weight- center checks, so it does not meet the stabilizer-based definition of quantum LDPC codes. For two-dimensional Euclidean subsystem codes with bounded-range, bounded-density gauge generators, Bravyi (2011) proves and . If both gauge and stabilizer groups have spatially local generating sets, a stronger tradeoff applies under the stated hypotheses. Sparse long-range interactions do not satisfy these geometric assumptions.
Exercises
Section titled “Exercises”1. Conditional logical states
Section titled “1. Conditional logical states”On the encoded factors, compare measuring on with measuring it on . Does a gauge measurement always preserve every conditional logical state?
Solution
For the product input, both outcomes have probability and leave unchanged. For the entangled input, the initial logical marginal is , but selecting the positive outcome gives and selecting the negative gives . Averaging the two returns . Thus a gauge operation preserves the unconditional protected state; branch-by-branch preservation of an arbitrary original logical state additionally uses an uncorrelated input. No logical information can be signaled by an unrecorded local gauge measurement.
2. Recover the subsystem counts
Section titled “2. Recover the subsystem counts”A fifteen-qubit subsystem code has stabilizer rank six and gauge rank fourteen. Find , , and the encoded-sector dimension.
Solution
The noncentral gauge directions come in pairs: , so . Then and the sector has dimension . The number of protected states is ; the remaining factor is gauge freedom.
3. Write all four encoded basis states
Section titled “3. Write all four encoded basis states”Generate the four-qubit basis from using and . Check the action of and .
Solution
Using physical-bit order ,
Each is a eigenstate of and . The parity of bits 1 and 2 gives the logical label; the parity of bits 1 and 3 gives the gauge label. Thus and act as the two independent computational-basis operators. Equal coefficients ensure the operators flip their respective labels without additional phases.
4. A false syndrome with ideal measurements
Section titled “4. A false syndrome with ideal measurements”Start in in the four-qubit code. Find the joint outcome distributions for and for .
Solution
For , only and occur, each with probability . For , the three outcomes are independent fair signs, so each of the eight triples has probability . Four triples have . The true stabilizer remains throughout. Inserting a gauge measurement between two gauge measurements randomizes the result used in the proposed parity calculation.
5. Recovery modulo gauge
Section titled “5. Recovery modulo gauge”In the code, compare errors and . Then compare with .
Solution
The first pair differs by
so either representative corrects the protected information when either error occurs. The second pair differs by the full-column bare logical . Their stabilizer syndromes also agree, but they have different logical actions. Correcting the two-site error as if it were the one-site error produces a logical failure. Equal syndrome is therefore weaker than equivalence modulo gauge.
6. A rectangular block under independent bit flips
Section titled “6. A rectangular block under independent bit flips”For a block with independent physical error probability , derive the logical failure probability with perfect syndrome measurements and majority decoding. Obtain its leading small- behavior.
Solution
Each row contains five sites. The generating function for its parity gives . At least two of three row parities must be odd for majority decoding to fail:
The distance is still , but the coefficient counts more ways to make two odd rows than in a block, whose coefficient is . Lengthening rows improves the logical- distance while making this logical- channel worse at leading order. Geometry must be chosen for the noise, not from the smaller distance alone.
7. Fix a gauge without measuring the logical qubit
Section titled “7. Fix a gauge without measuring the logical qubit”In the four-qubit code measure and, on a negative outcome, apply . What are the final stabilizers, logical operators, and distance? What happens to an arbitrary initial gauge state?
Solution
The final independent stabilizers are , all with positive sign. There is one logical qubit and no gauge qubit. The bare and still commute with these checks and anticommute with each other. Every single-site nonidentity Pauli anticommutes with or , while the displayed weight-two logicals survive, so the subspace distance is two.
On the gauge factor the two corrected Kraus operators are and . Ignoring the measurement result resets any gauge state to . For an initially correlated state the complete map is , preserving the original logical marginal.
8. Apply the geometric hypothesis
Section titled “8. Apply the geometric hypothesis”Could a two-dimensional Euclidean family with bounded-range, bounded-density gauge generators have and ? Would bounded check weight alone give the same conclusion?
Solution
The proposed product is , violating under the stated geometric hypotheses. Bounded weight alone does not bound the length of an interaction or the density of physical sites in the plane, so the theorem does not rule out an abstract nongeometric family with those exponents. Counting check support and specifying spatial locality answer different questions.
References
Section titled “References”- P. Aliferis and A. W. Cross, “Subsystem fault tolerance with the Bacon–Shor code,” Physical Review Letters 98, 220502 (2007), doi:10.1103/PhysRevLett.98.220502, arXiv:quant-ph/0610063.
- D. Bacon, “Operator quantum error-correcting subsystems for self-correcting quantum memories,” Physical Review A 73, 012340 (2006), doi:10.1103/PhysRevA.73.012340, arXiv:quant-ph/0506023.
- S. Bravyi, “Subsystem codes with spatially local generators,” Physical Review A 83, 012320 (2011), doi:10.1103/PhysRevA.83.012320, arXiv:1008.1029.
- D. W. Kribs, R. Laflamme, D. Poulin, and M. Lesosky, “Operator quantum error correction,” Quantum Information and Computation 6, 382–399 (2006), doi:10.26421/QIC6.4-5-6, arXiv:quant-ph/0504189.
- J. Napp and J. Preskill, “Optimal Bacon–Shor codes,” Quantum Information and Computation 13, 490–510 (2013), doi:10.26421/QIC13.5-6-9, arXiv:1209.0794.
- D. Poulin, “Stabilizer formalism for operator quantum error correction,” Physical Review Letters 95, 230504 (2005), doi:10.1103/PhysRevLett.95.230504, arXiv:quant-ph/0508131.
- M. Suchara, S. Bravyi, and B. M. Terhal, “Constructions and noise threshold of topological subsystem codes,” Journal of Physics A: Mathematical and Theoretical 44, 155301 (2011), doi:10.1088/1751-8113/44/15/155301, arXiv:1012.0425.
- C. Vuillot, L. Lao, B. Criger, C. García Almudéver, K. Bertels, and B. M. Terhal, “Code deformation and lattice surgery are gauge fixing,” New Journal of Physics 21, 033028 (2019), doi:10.1088/1367-2630/ab0199, arXiv:1810.10037.