Layout. Qubits sit at the sites , , of an grid, . Rows are indexed by , columns by .
Gauge group. Generated by
operators of weight 2. An pair and a pair that share one site anticommute, so the gauge group is non-abelian.
Stabilizer. The products
act as on two adjacent columns and as on two adjacent rows, weight . They commute with every gauge generator (a column pair meets a vertical pair in zero or two sites) and generate the stabilizer, .
Parameters. The gauge group has dimension over with gauge qubits, so by the structure theorem
Bare logical operators are (a full column of ) and (a full row of ); they share one site and anticommute. The distance is : the code is . (For the values of , and , and for the dressed distance 3, were checked by direct computation.)
How it is used. Only the weight-2 gauge operators are measured; the eigenvalue of each weight- stabilizer is the product of the gauge outcomes that compose it, which is deterministic on the code even though each gauge outcome is random. The checks see only the parity of errors in each column, and the checks the parity of errors in each row; each is a repetition code of length on those parities.
Performance. For a single block with perfect syndromes and independent and errors of probability , lengthening the rows improves protection against one error type and degrades it against the other, so there is no threshold for the family. The best square block has , and its logical failure probability is approximately ; at the optimal is 173 and the failure probability about (Napp and Preskill, who also treat biased noise with rectangular blocks). Used as the code of a concatenated scheme, the Bacon–Shor code allows fault-tolerant error correction without entangled ancilla states, using nearest-neighbour two-qubit measurements, and Aliferis and Cross prove a threshold lower bound of for adversarial stochastic noise.
History. Subsystem codes of this kind were introduced by Bacon, motivated by self-correcting quantum memories; the two-dimensional form above is the one used for fault tolerance by Aliferis and Cross and analysed by Napp and Preskill. For , fixing the gauge so that the vertical pairs become stabilizers gives back the Shor code.