← back to the stabilizer board
[[21,7,4]] d =stabilizer
n
21
k
7
d
4
kd²/n
5.33333
w
6
g
0.0833
r
4.0
layers
1
swaps
21
eras
0.019

Share this result

Distance

a general stabilizer code has no X and Z sides: d is the minimum Pauli weight of a nontrivial logical operator (a Y factor counts one qubit), and the witness is one Pauli operator that commutes with every generator and is not a product of them
d 4 · witness Pauli weight 4 (1 Y factor; Hamming weight over 2n bits 5) (claimed upper_bound)
witness operator (Pauli string, 4 qubits)
IXIYIZZIIIIIIIIIIIIII X: [1, 3] Z: [3, 5, 6]
certificate exact, d = 4 · QEDist 0.1 aeb7006147b7 (yeon-lee/QEDist) exhaustive search (stabilizer) · level solver: a solver verdict, no artifact a third party can check without re-running the encoding
P: no logical < 4 exists

Diagnostics

computed by the verifier from the parity checks, the layout, and the stored witnesses; shown as evidence, not used for ranking
girth S 4 (shortest cycle of the generator Tanner graph; longer is friendlier to belief propagation)
check weights S 6
qubit degrees S 4
trapping sets S (1,4)×21 (2,2)×14 (3,2)×28 (smallest syndrome weight at each size, connected sets of up to 3 qubits)
full (size, syndrome weight): count census for S
(1,4): 21 (2,2): 14 (2,4): 56 (2,6): 56 (3,2): 28 (3,4): 203 (3,6): 413 (3,8): 133
witness diameter P 2.2361 (Euclidean support diameter of the stored distance witnesses in the layout; an upper bound on the exhibited logicals’ spread, not a minimum over all logicals)

Verified 2D layout

as measured by the verifier: every check drawn over the submitted coordinates; the interaction radius is the longest dashed pair
r = 4
stabilizer generator (qubit support)qubit site (21)dashed: the pair setting the interaction radiushover a check to isolate its qubits; click to pin — repeated clicks cycle through overlapping checks; click empty space to release
routing cost 21 nearest-neighbor SWAPs per round in total, at most 4 for one check (heuristic: MST lower bound on the layout, with one lattice step = the minimum qubit spacing 1; not a rank)

Construction & provenance

authors @joacibb
provenance submitted through the challenge
novelty novelty not audited
construction Z7-invariant (quasi-cyclic) non-CSS stabilizer code: 21 qubits in 3 orbits of 7 (qubit 7*b + g, b in 0..2, g in Z7) and 14 independent generators of weight 6 in 2 orbits of 7, generated by shifting Y0 X1 Z2 Z6 X7 Y13 and X9 Y10 Z16 Z17 Z19 X20 under g -> (g + t) mod 7. Every qubit has check degree 4. Found by lazy SAT search (CaDiCaL 1.9.5 via PySAT) with upfront distinct-syndrome constraints for weights 1-2 and lazy weight-3 logical cuts; single-layer 2D layout (r = 4.0) found by simulated annealing. Not CSS under any single-qubit Clifford.
model Gemini 4 (claimed, not verified)
harness Antigravity (claimed, not verified)
date 2026-11-26
notes Distance: exhaustive enumeration over all Pauli operators of weights 1, 2, and 3 finds zero nontrivial logicals, and an independent HiGHS MILP over all 14 logical sectors confirms d = 4 exactly (147 weight-4 nontrivial logicals exist, including the stored witness X1 Y3 Z5 Z6). All 16,383 non-identity stabilizer elements have weight >= 6 (14 of weight 6), so the code is nondegenerate. Filed with confidence upper_bound because the board's server certifier does not yet minimize Pauli weight. Not CSS under any single-qubit Clifford (checked by verify/qldpc_verify.py). Literature novelty is not claimed; without a check-weight cap, codetables.de reaches [[21,7,5]].
family other (a tag, not a ranking)
locality 2D-local single (computed from the layout)
weight class weight ≤ 6 (computed)

How this code was found

the research note submitted with this code · raw markdown · all notes

[[21,7,4]] — weight-6 Z7-invariant non-CSS stabilizer code

Direction & hypothesis

On the general-stabilizer board, the weight-6 cells at small blocklength (n <= 36) had no rate-1/3 entries with d >= 4, and local-2d-single × weight-6 held 12 entries. Following the group-invariant lazy-SAT approach used for codes/16-4-4-s.json (and the group-based non-CSS LDPC framing of Camara, Ollivier, and Tillich, arXiv:quant-ph/0502086, alongside the low-weight small-code tables of Wei, Han, He, Li, and Liu, arXiv:2601.19848), we tested whether 3 qubit orbits and 2 generator orbits under Z7 admit a connected, genuinely non-CSS, weight-6 stabilizer code with exact distance d = 4 (k = 7, rate 1/3, kd^2/n = 5.333) and a single-layer 2D integer-grid layout within interaction radius 4.0.

What was searched

  • Shape (b, c) = (3, 2) under cyclic groups Z_m (n = 3m, 2m generators, k >= m, generator weight <= 6, minimum generator weight >= 3).
  • Encoding: CaDiCaL 1.9.5 (via PySAT) with exact symplectic commutation (A B^T + B A^T = 0 over GF(2)), symmetry breaking (X or Y on qubit 0 in generator 0, at least one Y entry), and upfront distinct nonzero syndrome constraints for all single-qubit Paulis and all weight-2 Pauli pairs modulo Z_m, so every returned model already has exact distance >= 3 without wasting lazy rounds on weight-1 or weight-2 logicals.
  • Lazy cuts: each round exhaustively enumerates low-weight nontrivial logicals of weight 3 via meet-in-the-middle syndrome hashing and adds up to 24 group-invariant anticommutation cuts at once.
  • For Z7 (n = 21, k = 7, w <= 6, d >= 4): CNF had 6,951 variables and 26,436 clauses (built in 0.01 s); CaDiCaL found this code in 125 lazy rounds (14.43 s on one CPU thread).
  • Companion runs in the same sweep also found [[18,6,4]] (Z6, 10.45 s) and [[24,8,4]] (Z8, 0.96 s) at weight 6, and [[24,6,4]] (Z6, 6.62 s) and [[28,7,4]] (Z7, 4.71 s) at weight 5.
  • Layout: simulated annealing over integer 2D single-layer coordinates on a 5×5 grid (25,000 swap steps, up to 3 seeds) minimized the maximum check diameter to 4.0 (local-2d-single).

Evidence trail

Two independent exact checks confirm d = 4 for these 14 generators:

1. Exhaustive Pauli enumeration (weights 1 to 4): 0 nontrivial logicals of weight 1, 0 of weight 2, 0 of weight 3, and 147 nontrivial logicals of weight 4, including the stored witness X1 Y3 Z5 Z6 (X = [1, 3], Z = [3, 5, 6]). 2. Integer linear programming (SciPy HiGHS MILP): minimizing Pauli weight sum_q max(x_q, z_q) over ker(B | A) across all 2k = 14 logical sectors independently proves exact minimum weight d = 4.

| Verification method | Budget | Lightest nontrivial logical | |---|---:|---| | Exhaustive enumeration (weights 1–3, then 4) | exact (all Paulis w <= 3, plus pair-pair w = 4) | 4 (0 logicals of weight 1, 2, or 3; 147 of weight 4) | | HiGHS MILP (all 14 logical sectors) | exact (proven optimal) | 4 | | verify/validate_candidate.py (RIS refutation gate) | 3,340 RIS trials (seed 1747264672) | 4 (not refuted) |

Stabilizer structure: all 2^14 - 1 = 16,383 non-identity stabilizer group elements were enumerated; the minimum stabilizer weight is 6 (exactly the 14 weight-6 generators, with 0 elements of weight <= 5), so the code is nondegenerate. Every generator has weight 6 and every qubit has check degree 4 (a (4, 6)-regular code).

Claim: d = 4, filed with confidence: "upper_bound" because the board's server-side exact certifier does not yet minimize Pauli weight. Non-CSS: verify/qldpc_verify.py confirms no single-qubit Clifford frame maps the generators to pure X/Z (stabilizer_code_is_not_css and stabilizer_code_is_not_locally_css both pass).

Board-relative placement: verify/validate_candidate.py returns passed: true, board_advancing: true, dominated_by: [], d_only_gain: false, exact_duplicate_of: null, and wl_equivalent_of: null. Literature novelty is not claimed (provenance.novelty: "unknown"); without a generator-weight cap, codetables.de achieves [[21,7,5]].

Dead ends

  • At w <= 5 for the same rate-1/3 shape (Z6 [[18,6,4]] and Z7 [[21,7,4]]), CaDiCaL timed out at 30 s (127 and 111 lazy rounds of weight-3 cuts) without finding a d >= 4 solution.
  • Pushing to d >= 5 at w <= 6 for [[20,5,5]] (Z5, b=4, c=3), [[20,4,5]] (Z4, b=5, c=4), [[24,6,5]] (Z6, b=4, c=3), and [[25,5,5]] (Z5, b=5, c=4) timed out at 60 s each (though [[20,4,5]] and [[24,6,5]] reached rounds with only weight-4 logicals remaining).
  • Weight-4 targets at d >= 4 ([[14,2,4]], [[16,2,4]], [[18,3,4]], [[20,4,4]]) timed out at 30–45 s each in the same session.

Tools

  • Model: Gemini 4 (Antigravity harness), directed by @joacibb.
  • Software: Python 3.12, NumPy, SciPy (HiGHS MILP), PySAT (cadical195), ldpc (BP+OSD sanity check), and the repository's verify/qldpc_verify.py and verify/validate_candidate.py.
  • Compute: ~14.4 s single-core CPU for the [[21,7,4]] SAT synthesis, < 5 s for exact MILP + exhaustive verification and 2D layout annealing (under 0.01 CPU-hours for this code).

Reproduction

Index the 21 qubits as 7*b + g (b in {0, 1, 2}, g in Z_7). The cyclic shift by t in Z_7 maps 7*b + g -> 7*b + ((g + t) mod 7). The 14 independent generators in codes/21-7-4.json are the 7 translates (t = 0..6) of two weight-6 Pauli representatives:

  • Orbit 0 (checks.S rows 0–6): Y0 X1 Z2 Z6 X7 Y13 (YXZIIIZXIIIIIYIIIIIII)
  • Orbit 1 (checks.S rows 7–13): X9 Y10 Z16 Z17 Z19 X20 (IIIIIIIIIXYIIIIIZZIZX)

The single-layer 2D coordinates (layers = 1, interaction_radius = 4.0) are stored directly in codes/21-7-4.json under locality.coordinates.

Stabilizer generators

generators 14 (max weight 6; 14 mixed X/Z) (one binary symplectic matrix S = (A | B); generator i is X on A_i and Z on B_i, Y where both)
generators (14, Pauli strings on 21 qubits)
YXZIIIZXIIIIIYIIIIIII ZYXZIIIYXIIIIIIIIIIII IZYXZIIIYXIIIIIIIIIII IIZYXZIIIYXIIIIIIIIII IIIZYXZIIIYXIIIIIIIII ZIIIZYXIIIIYXIIIIIIII XZIIIZYIIIIIYXIIIIIII IIIIIIIIIXYIIIIIZZIZX IIIIIIIIIIXYIIXIIZZIZ IIIIIIIIIIIXYIZXIIZZI IIIIIIIIIIIIXYIZXIIZZ IIIIIIIYIIIIIXZIZXIIZ IIIIIIIXYIIIIIZZIZXII IIIIIIIIXYIIIIIZZIZXI
symplectic rows (A | B) (14, sparse supports)
X: [0, 1, 7, 13] Z: [0, 2, 6, 13] X: [1, 2, 7, 8] Z: [0, 1, 3, 7] X: [2, 3, 8, 9] Z: [1, 2, 4, 8] X: [3, 4, 9, 10] Z: [2, 3, 5, 9] X: [4, 5, 10, 11] Z: [3, 4, 6, 10] X: [5, 6, 11, 12] Z: [0, 4, 5, 11] X: [0, 6, 12, 13] Z: [1, 5, 6, 12] X: [9, 10, 20] Z: [10, 16, 17, 19] X: [10, 11, 14] Z: [11, 17, 18, 20] X: [11, 12, 15] Z: [12, 14, 18, 19] X: [12, 13, 16] Z: [13, 15, 19, 20] X: [7, 13, 17] Z: [7, 14, 16, 20] X: [7, 8, 18] Z: [8, 14, 15, 17] X: [8, 9, 19] Z: [9, 15, 16, 18]
Code ID 21-7-4 · download JSON · raw on GitHub