Optimal stabilizer check weights at distance four: the [[12,4,4]], [[12,3,4]] and [[10,2,4]] cases
26 November 2026
Abstract
Twelve data qubits can encode four logical qubits at distance four using checks of weight at most seven. We exhibit a stabilizer code attaining seven, improving the upper bound eight in Table 2 of Wei et al. With three logical qubits the optimum is six, and with one logical qubit at lengths ten through twelve it is four. A graph-state census shows that every stabilizer has the same weight enumerator and requires generators of weight at least six. The twelve-qubit bounds follow from explicit Pauli generators and rational weight-enumerator certificates.
Three attaining codes
The weight of a Pauli check counts its nonidentity positions. Let minimize the largest generator weight over all generating bases of all binary stabilizer codes with parameters . The three columns below are separate generating sets. Give each Hermitian Pauli string the positive sign. The number on its right is its weight.
| 1 | IIIIIIYYZZXX |
6 | ZIIYIYIXYIIZ |
6 | YIIYYIXIII |
4 |
| 2 | ZZZZZZIIIIII |
6 | IIYIYXIIXYXI |
6 | IIIYIIIXXX |
4 |
| 3 | ZXXXIXXIXIII |
7 | ZIIZIXIZIIXY |
6 | IIZIIXIZIZ |
4 |
| 4 | XIXIYXIZZIIY |
7 | XXYIZIIYYIII |
6 | IIXIYYIIXI |
4 |
| 5 | IIYXXXZZIIXI |
7 | XIIXIZZYIXII |
6 | IYIZXIIIZI |
4 |
| 6 | XXIZXXIIIIYZ |
7 | IYYIIZIZIYYI |
6 | IXYIIIIYYI |
4 |
| 7 | IYIIIXZYXIYY |
7 | IIIIZXIZXXIY |
6 | XXIIZXIIII |
4 |
| 8 | XZXXXIIXIXII |
7 | XZZIIXYIIIZI |
6 | ZIYIIZYIII |
4 |
| 9 | IYZZZXZIIIII |
6 | IXIXIIYIIZ |
4 | ||
The rows within each column commute. Their products give , and distinct strings modulo phase, respectively. Independence implies a simultaneous eigenspace of dimension . To check distance, enumerate every support of size and every assignment of to it. Count errors that commute with every row and lie outside its unsigned product group. Each column gives zero through weight three. At weight four the counts are , and . Examples are YYZZIIIIIIII, ZYYIIIXIIIII and YYXIIIIIIX, respectively.
How the first code was found. Starting with Grassl’s group, retain a rank-seven subgroup. Solve linear equations for a replacement check commuting with this subgroup and detecting every weight-one to weight-three error that commutes with it. Enumerate the resulting groups, then take independent generators in increasing order of weight. The replay script recovers the first column.
Twelve-qubit lower bounds by exact identities
Let be a stabilizer group of size , taken modulo phases, with distance at least four. Let count its elements of weight and . To generate , at least independent elements are required. Set and define These are unnormalized normalizer-difference and shadow enumerators. For an error let be its commutator bit against . Summing over all errors of weight gives for of weight by multiplying one-site polynomials. Summing over first gives for each commuting and zero otherwise. Distance at least four implies .
Weight parity on is linear, since and on . By character orthogonality, the sum of over is zero or . Summing over errors of weight gives . The even-weight count equals in the all-even case and in the mixed case.
Four logical qubits (). For all-even groups, Thus . In the mixed case set . Then Here and , so . Both cases exclude the eight independent nonidentity checks required at weight six or less. Hence .
Three logical qubits (). On even coordinates the following linear-form identity holds: Since and , this gives .
In the mixed case define the nonnegative quantity The following identity holds on all thirteen coordinates: Substituting gives . All four identities follow by comparing coefficients of for (only even for all-even groups). The exact-arithmetic checker implements the dual bound. Thus in either case there are too few nonidentity low-weight elements to span a rank-nine group. The displayed certificate attains six, proving .
Ten qubits and two logical qubits
AI contributions and verification.
GPT-6.2 Astra (high) helped draft the comparison of upper and lower bounds. For the two twelve-qubit codes in the title, explicit generators establish attainability and weight-enumerator identities exclude lighter bases. The ten-qubit census was implemented separately in Python and C++. Both calculations depend on the completeness of the Danielsen–Parker graph-state list. Census comparison.
Every binary stabilizer has unsigned weight enumerator We obtain this statement by a finite calculation conditional on the completeness of the Danielsen–Parker classification of self-dual additive codes under local Clifford operations and qubit permutations. We use the graph-parent and syndrome method employed by Zhang for twelve qubits, here at length ten.
Completeness of the reduction. Extend any rank-eight stabilizer to a maximal isotropic subspace of the binary Pauli space. Up to the operations above, is the stabilizer of a graph state with symmetric zero-diagonal adjacency matrix . Parameterize its elements by for binary ten-vectors , using ordered coordinates. Then for an eight-dimensional subspace , uniquely specified by the two-dimensional binary subspace under the ordinary dot product. The code distance and all unsigned stabilizer weights are invariant under these transformations.
An error commutes with all of exactly when belongs to . If , this error lies outside and hence outside . Therefore every nonzero syndrome of an error of weight one through three must avoid . When , the error equals ; distance at least four requires , or equivalently for every . These two conditions are necessary and sufficient and allow short stabilizer elements. Signs do not affect either test.
Extent of the census. The Danielsen database supplies connected order-ten graph representatives. Taking unordered multisets of smaller connected representatives with total order ten adds disconnected ones; local complementation and vertex permutation preserve the multiset of connected component orbits. For each of the parents, form the two syndrome tests for every one of the unsigned errors of weights one to three. Enumerate by triples of binary integers whose three nonzero elements all pass the tests (addition is XOR). Exactly planes across ten graph representatives survive. These count presentations; one code can have several maximal parents.
For each surviving plane, enumerate the graph stabilizers indexed by and count by the size of the union of the supports of and . Every plane gives the polynomial above. Thus all nonidentity stabilizer elements have weight at least six. Grassl’s archived group has a weight-six basis, which proves . The published census package checks SHA-256 for all ten source files and for the assembled parent list. The check relies on the published parent classification, independently of the paper’s two rational bounds.
Optimality and source comparison
Wei et al. report for , for at , and for . Their Theorem 12 shows that any nontrivial stabilizer code generated at weight at most three has distance at most two. This analytic result supplies the lower bound four in all three one-logical-qubit cases.
Append one qubit in to the ten-qubit certificate. Extend all old checks by identity and add on the new qubit. A Pauli commuting with the added acts by or there. Multiplying by the new check therefore removes its action on that qubit, preserving its logical class and weakly decreasing its weight. Every old logical has a representative of the same weight on the enlarged code. The distance stays four, and the maximum check weight stays four. Iterating gives For the two twelve-qubit cells, Wei et al. report the lower bounds seven and six, respectively, using their weight-enumerator linear-programming procedure (Appendix L, Algorithm 1). The rational identities above give direct checks of both bounds using the enumerator conditions of their Appendix G. The constructions attain both lower bounds.
Attribution of the subcode construction. Wei et al., Appendix J, prescribe appending a weight-four logical Pauli to the very same parent to obtain their code. We minimize the maximum generator weight across choices of logical Pauli and across generating bases. Of the parent’s 75 nonzero logical cosets with a weight-four representative, 60 give maximum weight six after basis minimization and 15 give eight. In the site order obtained by reversing Grassl’s printed matrix, appending XXIIIIZZIIII gives one of the 60. Likewise appending IZXIZZZIZI to Grassl’s group yields a code with maximum weight four. These are alternatives to the second and third columns on page one.
The first column instead preserves four encoded qubits by changing one stabilizer constraint of the parent. The parent admits an all-even stabilizer group, whereas the first column contains odd-weight elements. Qubit permutations and local Clifford gates preserve weight, so these two groups are inequivalent under those operations. Jing and Tu updated the distance-three entries of the source table and identified distance four as further work. Our comparison establishes improvements to the cited bounds. Historical priority for the values and code classes remains undetermined.
All sixteen intervals in the source table
The table covers each entry of Wei et al., version 2, Table 2 that lists two distinct finite endpoints. The scope is within that table. An interval changes either because a code attains a previous lower bound or because a proof excludes smaller weights. Repeated numerical optima can follow from a single construction.
| Source interval | Optimum | Evidence | |||
|---|---|---|---|---|---|
| 10 | 4 | 3 | 6–7 | 6 | Jing–Tu |
| 11 | 3 | 3 | 4–5 | 5 | Zhang; Jing–Tu |
| 11 | 4 | 3 | 5–7 | 5 | Jing–Tu |
| 11 | 5 | 3 | 6–8 | 7 | Jing–Tu |
| 12 | 3 | 3 | 4–5 | 4 | Jing–Tu |
| 12 | 4 | 3 | 5–7 | 5 | Jing–Tu |
| 12 | 5 | 3 | 6–8 | 6 | Jing–Tu |
| 12 | 6 | 3 | 8–10 | 8 | Jing–Tu |
| 10 | 1 | 4 | 4–6 | 4 | Construction and Wei et al., Theorem 12 |
| 10 | 2 | 4 | 5–6 | 6 | Census and Grassl construction |
| 11 | 1 | 4 | 4–6 | 4 | Padding the ten-qubit construction |
| 11 | 2 | 4 | 4–6 | 5 | Zhang |
| 12 | 1 | 4 | 4–6 | 4 | Padding the ten-qubit construction |
| 12 | 2 | 4 | 4–6 | 5 | Zhang |
| 12 | 3 | 4 | 6–8 | 6 | Construction and rational bound |
| 12 | 4 | 4 | 7–8 | 7 | Construction and rational bound |
Sources
F. Wei, Z. Han, A. Y. He, Z. Li and Z.-W. Liu, Theory of low-weight quantum codes, v2 (2026), Table 2, Theorem 12 and Appendices G,J,L.
Y. Jing and Y. Tu, proof manuscript and updated distance-three table and QIQCOP submission 111.
Y. Zhang, Optimal check weight for two-logical-qubit codes of lengths eleven and twelve (17 November 2026), and the exclusion.
L. E. Danielsen and M. G. Parker, On the classification of all self-dual additive codes over GF(4) of length up to 12, J. Combin. Theory Ser. A 113, 1351–1367 (2006). Graph-state representatives and data documentation.
M. Grassl, Code tables, matrices for and . The QEC Challenge also catalogs these parent parameter sets, length ten and length twelve.