{
 "schema_version": "0.2",
 "name": "[[62,10,6]] twisted-torus BB code (arXiv:2503.03827)",
 "code_type": "CSS",
 "n": 62,
 "k": 10,
 "checks": {
  "X": [
   [
    0,
    1,
    30,
    31,
    33,
    53
   ],
   [
    1,
    2,
    3,
    32,
    35,
    57
   ],
   [
    2,
    4,
    20,
    33,
    36,
    58
   ],
   [
    3,
    4,
    6,
    34,
    38,
    60
   ],
   [
    4,
    5,
    7,
    31,
    35,
    39
   ],
   [
    5,
    8,
    25,
    36,
    40,
    61
   ],
   [
    6,
    7,
    10,
    37,
    42,
    45
   ],
   [
    7,
    8,
    11,
    32,
    38,
    43
   ],
   [
    8,
    9,
    12,
    33,
    39,
    44
   ],
   [
    9,
    13,
    29,
    40,
    45,
    51
   ],
   [
    10,
    11,
    15,
    41,
    47,
    50
   ],
   [
    11,
    12,
    16,
    34,
    42,
    48
   ],
   [
    12,
    13,
    17,
    35,
    43,
    49
   ],
   [
    13,
    14,
    18,
    36,
    44,
    50
   ],
   [
    1,
    14,
    19,
    34,
    45,
    56
   ],
   [
    15,
    16,
    20,
    46,
    52,
    55
   ],
   [
    16,
    17,
    21,
    37,
    47,
    53
   ],
   [
    17,
    18,
    22,
    38,
    48,
    54
   ],
   [
    18,
    19,
    23,
    39,
    49,
    55
   ],
   [
    3,
    19,
    24,
    37,
    40,
    50
   ],
   [
    5,
    20,
    21,
    51,
    56,
    59
   ],
   [
    21,
    22,
    25,
    41,
    52,
    57
   ],
   [
    22,
    23,
    26,
    42,
    53,
    58
   ],
   [
    23,
    24,
    27,
    43,
    54,
    59
   ],
   [
    6,
    24,
    28,
    41,
    44,
    55
   ],
   [
    9,
    25,
    26,
    46,
    56,
    60
   ],
   [
    26,
    27,
    29,
    31,
    47,
    57
   ],
   [
    0,
    27,
    28,
    48,
    58,
    61
   ],
   [
    10,
    28,
    30,
    46,
    49,
    59
   ],
   [
    0,
    14,
    29,
    32,
    52,
    60
   ],
   [
    2,
    15,
    30,
    51,
    54,
    61
   ]
  ],
  "Z": [
   [
    0,
    4,
    26,
    31,
    58,
    60
   ],
   [
    1,
    7,
    29,
    31,
    32,
    45
   ],
   [
    0,
    2,
    8,
    32,
    33,
    61
   ],
   [
    3,
    11,
    14,
    32,
    34,
    50
   ],
   [
    1,
    4,
    12,
    33,
    34,
    35
   ],
   [
    2,
    5,
    13,
    35,
    36,
    51
   ],
   [
    6,
    16,
    19,
    34,
    37,
    55
   ],
   [
    3,
    7,
    17,
    35,
    37,
    38
   ],
   [
    4,
    8,
    18,
    36,
    38,
    39
   ],
   [
    5,
    9,
    19,
    39,
    40,
    56
   ],
   [
    10,
    21,
    24,
    37,
    41,
    59
   ],
   [
    6,
    11,
    22,
    38,
    41,
    42
   ],
   [
    7,
    12,
    23,
    39,
    42,
    43
   ],
   [
    8,
    13,
    24,
    40,
    43,
    44
   ],
   [
    6,
    9,
    14,
    44,
    45,
    60
   ],
   [
    15,
    25,
    28,
    41,
    46,
    61
   ],
   [
    10,
    16,
    26,
    42,
    46,
    47
   ],
   [
    11,
    17,
    27,
    43,
    47,
    48
   ],
   [
    12,
    18,
    28,
    44,
    48,
    49
   ],
   [
    10,
    13,
    19,
    45,
    49,
    50
   ],
   [
    9,
    20,
    30,
    33,
    46,
    51
   ],
   [
    15,
    21,
    29,
    47,
    51,
    52
   ],
   [
    0,
    16,
    22,
    48,
    52,
    53
   ],
   [
    17,
    23,
    30,
    49,
    53,
    54
   ],
   [
    15,
    18,
    24,
    50,
    54,
    55
   ],
   [
    14,
    20,
    25,
    36,
    52,
    56
   ],
   [
    1,
    21,
    26,
    53,
    56,
    57
   ],
   [
    2,
    22,
    27,
    54,
    57,
    58
   ],
   [
    20,
    23,
    28,
    55,
    58,
    59
   ],
   [
    3,
    25,
    29,
    40,
    57,
    60
   ],
   [
    5,
    27,
    30,
    31,
    59,
    61
   ]
  ]
 },
 "distance": {
  "d": 6,
  "X": {
   "value": 6,
   "confidence": "upper_bound",
   "witness": [
    15,
    18,
    20,
    28,
    36,
    51
   ]
  },
  "Z": {
   "value": 6,
   "confidence": "upper_bound",
   "witness": [
    22,
    25,
    26,
    27,
    54,
    61
   ]
  }
 },
 "provenance": {
  "authors": [
   "Zijian Liang",
   "Ke Liu",
   "Hao Song",
   "Yu-An Chen"
  ],
  "construction": "Twisted-torus bivariate-bicycle code from Generalized toric codes on twisted tori for quantum error correction (PRX Quantum 6, 020357, 2025). Stabilizers f(x,y)=1+x+x^-1y, g(x,y)=1+y+x^-1y^-1 on the abelian quotient group Z^2/L with twist basis a_1=[0, 31], a_2=[1, 13] (n=2|det[a_1,a_2]|=2*31). Reconstructed from the published polynomials and twist; CSS form H_X=[f|g], H_Z=[gbar|fbar].",
  "references": [
   "arXiv:2503.03827"
  ],
  "date": "2025",
  "notes": "Reconstructed baseline from Liang, Liu, Song, Chen, Generalized toric codes on twisted tori for quantum error correction (PRX Quantum 6, 020357, 2025), arXiv:2503.03827. The [[n,k,d]] parameter set and stabilizer polynomials are published in that paper; this entry reproduces them. Distance is an upper bound per the paper (probabilistic for d>20); the witness is the surrogate logical of that weight. Seeded to fill a board coverage gap at this block size, not a discovery. 2D-local layout added 2026-07-27: simulated annealing over qubit-to-site assignments on a unit-spaced triangular grid (2 layers, capacity 1 per site per layer); measured interaction radius 3.605551 (bilayer); same code, same check matrices.",
  "origin": "baseline",
  "novelty": "known_parameters"
 },
 "family": "bivariate-bicycle",
 "locality": {
  "coordinates": [
   [
    2.5,
    -2.598076211353316
   ],
   [
    1.0,
    -1.7320508075688772
   ],
   [
    3.0,
    0.0
   ],
   [
    1.5,
    0.8660254037844386
   ],
   [
    -0.5,
    -0.8660254037844386
   ],
   [
    2.0,
    0.0
   ],
   [
    -1.0,
    1.7320508075688772
   ],
   [
    -0.5,
    0.8660254037844386
   ],
   [
    2.5,
    0.8660254037844386
   ],
   [
    0.0,
    -1.7320508075688772
   ],
   [
    2.0,
    1.7320508075688772
   ],
   [
    0.5,
    2.598076211353316
   ],
   [
    0.0,
    1.7320508075688772
   ],
   [
    0.5,
    0.8660254037844386
   ],
   [
    0.5,
    -0.8660254037844386
   ],
   [
    2.5,
    0.8660254037844386
   ],
   [
    1.5,
    -0.8660254037844386
   ],
   [
    2.5,
    2.598076211353316
   ],
   [
    -0.5,
    2.598076211353316
   ],
   [
    -1.5,
    0.8660254037844386
   ],
   [
    2.5,
    -2.598076211353316
   ],
   [
    4.0,
    0.0
   ],
   [
    2.0,
    0.0
   ],
   [
    1.0,
    0.0
   ],
   [
    1.5,
    2.598076211353316
   ],
   [
    1.5,
    -2.598076211353316
   ],
   [
    3.0,
    0.0
   ],
   [
    3.5,
    0.8660254037844386
   ],
   [
    0.0,
    0.0
   ],
   [
    2.5,
    -0.8660254037844386
   ],
   [
    3.5,
    -0.8660254037844386
   ],
   [
    1.0,
    0.0
   ],
   [
    0.5,
    -0.8660254037844386
   ],
   [
    1.5,
    -0.8660254037844386
   ],
   [
    -1.5,
    0.8660254037844386
   ],
   [
    1.0,
    1.7320508075688772
   ],
   [
    -0.5,
    -0.8660254037844386
   ],
   [
    1.5,
    2.598076211353316
   ],
   [
    -0.5,
    0.8660254037844386
   ],
   [
    0.0,
    1.7320508075688772
   ],
   [
    -1.0,
    0.0
   ],
   [
    0.5,
    0.8660254037844386
   ],
   [
    2.0,
    1.7320508075688772
   ],
   [
    0.5,
    2.598076211353316
   ],
   [
    -1.0,
    1.7320508075688772
   ],
   [
    -1.0,
    0.0
   ],
   [
    3.5,
    -0.8660254037844386
   ],
   [
    3.0,
    1.7320508075688772
   ],
   [
    1.5,
    0.8660254037844386
   ],
   [
    1.0,
    1.7320508075688772
   ],
   [
    -0.5,
    2.598076211353316
   ],
   [
    2.0,
    -1.7320508075688772
   ],
   [
    3.0,
    -1.7320508075688772
   ],
   [
    4.0,
    0.0
   ],
   [
    3.0,
    1.7320508075688772
   ],
   [
    0.0,
    0.0
   ],
   [
    1.0,
    -1.7320508075688772
   ],
   [
    2.5,
    -0.8660254037844386
   ],
   [
    3.0,
    -1.7320508075688772
   ],
   [
    3.5,
    0.8660254037844386
   ],
   [
    0.0,
    -1.7320508075688772
   ],
   [
    2.0,
    -1.7320508075688772
   ]
  ],
  "interaction_radius": 3.605551275463989,
  "layers": 2
 },
 "circuit": {
  "d_circ": {
   "X": {
    "value": 6,
    "confidence": "upper_bound",
    "witness": [
     110,
     112,
     325,
     331,
     387,
     398
    ]
   },
   "Z": {
    "value": 6,
    "confidence": "upper_bound",
    "witness": [
     710,
     762,
     1030,
     1544,
     1549,
     1792
    ]
   }
  },
  "rounds": 6,
  "stim_version": "1.16.0",
  "notes": "Flag-qubit sequential two-block extraction: one ancilla and one flag qubit per check, X checks then Z checks each round with joint reset/measure layers. Each check's 6 CNOTs occupy 6 slot layers (a proper edge coloring of its Tanner graph); the flag (|0> for X checks, |+> for Z checks) is coupled to the ancilla after the check's CNOT 1 and again after CNOT 5, and measured every round as a single-record detector, so an ancilla hook in that window also fires the flag. 8 X + 8 Z CX layers per round, schedule seed 0. Hook-aware orders: every proper suffix S_j of a check's CNOT order needs >= d-1 further data errors if unflagged and >= d-2 if flagged, and every same-ancilla pair of hooks needs >= d-2 (or d-3 when exactly one is flagged) further errors to complete a logical; layered by min-conflicts search. Screened by RIS on ker(H_dem) and an observable-constrained seeded BP+OSD search; witnesses validated in GF(2).",
  "contributed_by": {
   "by": [
    "@vprusso"
   ],
   "date": "2026-09-19",
   "method": "generic CSS memory schedule with one flag qubit per check: CX layers from a bipartite edge coloring, the flag coupled to the ancilla after the first and the fifth CNOT and measured every round, CNOT orders filtered by a single- and pair-hook cost criterion; screened by RIS on ker(H_dem) and an observable-constrained seeded BP+OSD search"
  }
 }
}
