← back to the board
[[39,21,2]] d =
n
39
k
21
d
2
kd²/n
2.15385
w
8
X/Z
1
g
0.0075
r
4.1231
layers
2
swaps
31
eras
0.373

Share this result

Distance

X/Z asymmetry 1 · d_X = 2, d_Z = 2 · w_X = 8, w_Z = 8 (max(d_X,d_Z)/min(d_X,d_Z); each side carries its own earned tier: = certified exact, ≤ witness upper bound)
d_X 2 · witness weight 2 (claimed upper_bound)
witness operator (support, 2 qubits)
[0, 29]
d_Z 2 · witness weight 2 (claimed upper_bound)
witness operator (support, 2 qubits)
[4, 23]
certificate exact, d = 2 · QEDist 0.1 (yeon-lee/QEDist) exhaustive search · level solver: a solver verdict, no artifact a third party can check without re-running the encoding
X: no logical < 2 exists; Z: no logical < 2 exists

Diagnostics

computed by the verifier from the parity checks, the layout, and the stored witnesses; shown as evidence, not used for ranking
girth H_X 4 · H_Z 4 (shortest cycle of each side’s Tanner graph; longer is friendlier to belief propagation)
check weights H_X 7–8 (mean 7.889) · H_Z 6–8 (mean 7.778)
qubit degrees H_X 1–5 (mean 1.821) · H_Z 1–4 (mean 1.795)
trapping sets H_X (1,1)×17 (2,0)×25 (3,0)×50 (smallest syndrome weight at each size, connected sets of up to 3 qubits)
full (size, syndrome weight): count census for H_X
(1,1): 17 (1,2): 15 (1,3): 5 (1,4): 1 (1,5): 1 (2,0): 25 (2,1): 54 (2,2): 57 (2,3): 42 (2,4): 19 (2,5): 15 (3,0): 50 (3,1): 206 (3,2): 345 (3,3): 382 (3,4): 312 (3,5): 155 (3,6): 44 (3,7): 4
trapping sets H_Z (1,1)×17 (2,0)×25 (3,0)×47 (smallest syndrome weight at each size, connected sets of up to 3 qubits)
full (size, syndrome weight): count census for H_Z
(1,1): 17 (1,2): 15 (1,3): 5 (1,4): 2 (2,0): 25 (2,1): 50 (2,2): 62 (2,3): 51 (2,4): 15 (2,5): 4 (3,0): 47 (3,1): 239 (3,2): 357 (3,3): 382 (3,4): 266 (3,5): 90 (3,6): 12
witness diameter X 2.2361 · Z 3.0 (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)

Circuit tier

syndrome-extraction memory circuits committed under circuits/39-21-2/ · canonical noise recipe, 2 rounds, stim 1.16.0
circuit contributed by @vprusso · circuit_autogen schedule search (two-block interleaved, then layout, then generic), verified by verify/circuit_verify.py before writing · 2026-11-18
schedule (computed from the committed circuits; displayed, never ranked)
basisqubitslayerslayers / round2q layers / round2q gates / round2q gates / layerqubit-layers
X, Z19712059574217.423,640
d_circ ≤ 2 (min over bases; penalty-only, each basis clamped to the distance of the logical it protects, so the min is ≤ d) · 59 layers per round (the deeper basis; computed, never ranked)
d_circ^X 2 · fault-set witness of 2 mechanisms (claimed upper_bound)
witness fault set (mechanism indices in the DEM derived from the committed .stim, 2)
[245, 246]
d_circ^Z 2 · fault-set witness of 2 mechanisms (claimed upper_bound)
witness fault set (mechanism indices in the DEM derived from the committed .stim, 2)
[70, 71]
no measured logical error rate yet; d_circ is a floor, and the measured tier records the prefactor it cannot see

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.123
X checkZ checkqubit site (20)2 qubits stacked (2 layers)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 31 nearest-neighbor SWAPs per round in total, at most 3 for one check (heuristic: MST lower bound on the layout, with one lattice step = the minimum qubit spacing 1; not a rank)

Construction & provenance

provenance submitted through the challenge
novelty novelty not audited
construction C-ADD-CHECK strict improvement (code calculus v0.2rc): added 2 checks killing every minimum-weight logical of parent codes/39-23-1.json
model Beam 1.0 (claimed, not verified)
date 2026-10-29
notes Generated by the priced construction calculus. Distance is reported only with witness-backed upper bounds; lower interval bounds are kept in the separate local ledger. The layout is inherited from the parent and restricted to the qubits the child kept.
family other (a tag, not a ranking)
locality 2D-local bilayer (computed from the layout)
weight class weight ≤ 8 (computed)

How this code was found

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

[[39,21,2]] — C-ADD-CHECK strict improvement of 39-23-1

Direction & hypothesis

Convert the parent (codes/39-23-1.json, d=2) by C-ADD-CHECK strict improvement (Proposition 18.3, code calculus v0.2rc): every minimum-weight logical class of the parent is killed by the added checks, so the child's distance is at least d+1.

What was searched

For d=1 parents: the minimum-weight classes are the bare (weight-1) logicals, enumerated in O(n); the added check supports are their union (plus a GF(2)-solved parity correction when the bare set alone is inadmissible). For d=2 parents: the weight-2 logical classes are enumerated (O(n^2)) and a greedy set-cover over admissible checks kills them within the check budget.

Evidence trail

  • Parent: codes/39-23-1.json.
  • Child witnesses: inherited from the parent where still valid, plus
  • fresh witnesses at the child's distance found by bounded scan.

  • Verified by verify/validate_candidate.py (passed: true), including the
  • random-seed refutation pass.

Dead ends

Parents whose bare-logical set gave an inadmissible check support were fixed by a parity correction solved over GF(2); parents whose system is inconsistent have no single-check fix and were skipped. Multi-check greedy at d=2 succeeds on only a minority of parents (the weight-2 class count grows quickly with n).

Tools

Model: Beam 1.0. Author: @MathysRennela. Construction calculus v0.2rc.

Reproduction

Start from codes/39-23-1.json; add the recorded checks to obtain this entry.

Parity checks

X-checks 9 (max weight 8) · Z-checks 9 (max weight 8)
H_X (9 checks, sparse supports)
[0, 5, 13, 18, 19, 24, 29, 36] [0, 1, 13, 15, 19, 20, 29, 31] [0, 2, 5, 8, 21, 28, 33, 38] [1, 3, 15, 17, 20, 22, 31, 34] [0, 1, 2, 4, 21, 23, 33, 35] [2, 6, 8, 12, 19, 24, 25, 32] [1, 3, 4, 7, 23, 26, 35, 37] [6, 9, 12, 16, 21, 28, 29, 36] [0, 5, 10, 11, 14, 27, 30]
H_Z (9 checks, sparse supports)
[2, 4, 9, 11, 21, 23, 25, 27] [3, 5, 10, 12, 22, 24, 26, 28] [4, 7, 11, 14, 23, 26, 27, 30] [7, 8, 14, 16, 26, 28, 30, 32] [0, 1, 9, 11, 29, 31, 33, 35] [10, 12, 17, 18, 30, 32, 34, 36] [1, 3, 11, 14, 31, 34, 35, 37] [3, 5, 14, 16, 34, 36, 37, 38] [6, 9, 13, 15, 19, 20]
Code ID 39-21-2 · download JSON · raw on GitHub