{
 "schema_version": "0.2",
 "name": "[[48,4,8]] twisted-torus BB code (arXiv:2503.03827)",
 "code_type": "CSS",
 "n": 48,
 "k": 4,
 "checks": {
  "X": [
   [
    0,
    1,
    3,
    24,
    26,
    27
   ],
   [
    1,
    3,
    6,
    25,
    28,
    30
   ],
   [
    2,
    4,
    7,
    26,
    29,
    31
   ],
   [
    3,
    6,
    9,
    27,
    31,
    33
   ],
   [
    4,
    7,
    10,
    28,
    32,
    34
   ],
   [
    5,
    8,
    11,
    24,
    29,
    35
   ],
   [
    6,
    9,
    12,
    30,
    34,
    36
   ],
   [
    7,
    10,
    13,
    31,
    35,
    37
   ],
   [
    8,
    11,
    14,
    25,
    32,
    38
   ],
   [
    9,
    12,
    15,
    33,
    37,
    39
   ],
   [
    10,
    13,
    16,
    34,
    38,
    40
   ],
   [
    11,
    14,
    17,
    27,
    35,
    41
   ],
   [
    12,
    15,
    18,
    36,
    40,
    42
   ],
   [
    13,
    16,
    19,
    37,
    41,
    43
   ],
   [
    14,
    17,
    20,
    30,
    38,
    44
   ],
   [
    5,
    15,
    18,
    29,
    39,
    43
   ],
   [
    16,
    19,
    21,
    40,
    44,
    45
   ],
   [
    17,
    20,
    22,
    33,
    41,
    46
   ],
   [
    5,
    8,
    18,
    32,
    42,
    45
   ],
   [
    0,
    19,
    21,
    24,
    43,
    46
   ],
   [
    20,
    22,
    23,
    36,
    44,
    47
   ],
   [
    0,
    1,
    21,
    25,
    45,
    47
   ],
   [
    2,
    22,
    23,
    26,
    39,
    46
   ],
   [
    2,
    4,
    23,
    28,
    42,
    47
   ]
  ],
  "Z": [
   [
    0,
    5,
    19,
    24,
    43,
    45
   ],
   [
    1,
    8,
    21,
    24,
    25,
    45
   ],
   [
    0,
    2,
    22,
    26,
    46,
    47
   ],
   [
    0,
    3,
    11,
    24,
    25,
    27
   ],
   [
    1,
    4,
    23,
    26,
    28,
    47
   ],
   [
    2,
    5,
    15,
    29,
    39,
    42
   ],
   [
    1,
    6,
    14,
    25,
    27,
    30
   ],
   [
    2,
    3,
    7,
    26,
    28,
    31
   ],
   [
    4,
    8,
    18,
    29,
    32,
    42
   ],
   [
    3,
    9,
    17,
    27,
    30,
    33
   ],
   [
    4,
    6,
    10,
    28,
    31,
    34
   ],
   [
    5,
    7,
    11,
    29,
    32,
    35
   ],
   [
    6,
    12,
    20,
    30,
    33,
    36
   ],
   [
    7,
    9,
    13,
    31,
    34,
    37
   ],
   [
    8,
    10,
    14,
    32,
    35,
    38
   ],
   [
    9,
    15,
    22,
    33,
    36,
    39
   ],
   [
    10,
    12,
    16,
    34,
    37,
    40
   ],
   [
    11,
    13,
    17,
    35,
    38,
    41
   ],
   [
    12,
    18,
    23,
    36,
    39,
    42
   ],
   [
    13,
    15,
    19,
    37,
    40,
    43
   ],
   [
    14,
    16,
    20,
    38,
    41,
    44
   ],
   [
    16,
    18,
    21,
    40,
    43,
    45
   ],
   [
    17,
    19,
    22,
    41,
    44,
    46
   ],
   [
    20,
    21,
    23,
    44,
    46,
    47
   ]
  ]
 },
 "distance": {
  "d": 8,
  "X": {
   "value": 8,
   "confidence": "upper_bound",
   "witness": [
    5,
    7,
    18,
    31,
    34,
    37,
    42,
    43
   ]
  },
  "Z": {
   "value": 8,
   "confidence": "upper_bound",
   "witness": [
    5,
    8,
    12,
    13,
    18,
    32,
    34,
    37
   ]
  }
 },
 "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^2, g(x,y)=1+y+x^2 on the abelian quotient group Z^2/L with twist basis a_1=[0, 3], a_2=[8, 1] (n=2|det[a_1,a_2]|=2*24). 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. Also, a verifier-accepted honest bilayer layout (stacked 4x6 grid, 2 qubits per site, layers=2, measured interaction radius ~5.831) was found by @mathysrennela (Aug 2026) and is shipped in this file's locality block; it earns the code the local-2d-bilayer class and makes the site's geometric efficiency g = 4kd^2/(n rho^2 r^4) computable. Credit for this layout goes to @mathysrennela; code authorship remains with the paper's authors.",
  "origin": "baseline",
  "novelty": "known_parameters"
 },
 "family": "bivariate-bicycle",
 "locality": {
  "coordinates": [
   [
    0.0,
    0.0
   ],
   [
    1.0,
    0.0
   ],
   [
    2.0,
    0.0
   ],
   [
    3.0,
    0.0
   ],
   [
    0.0,
    1.0
   ],
   [
    1.0,
    1.0
   ],
   [
    2.0,
    1.0
   ],
   [
    3.0,
    1.0
   ],
   [
    0.0,
    2.0
   ],
   [
    1.0,
    2.0
   ],
   [
    2.0,
    2.0
   ],
   [
    3.0,
    2.0
   ],
   [
    0.0,
    3.0
   ],
   [
    1.0,
    3.0
   ],
   [
    2.0,
    3.0
   ],
   [
    3.0,
    3.0
   ],
   [
    0.0,
    4.0
   ],
   [
    1.0,
    4.0
   ],
   [
    2.0,
    4.0
   ],
   [
    3.0,
    4.0
   ],
   [
    0.0,
    5.0
   ],
   [
    1.0,
    5.0
   ],
   [
    2.0,
    5.0
   ],
   [
    3.0,
    5.0
   ],
   [
    0.0,
    0.0
   ],
   [
    1.0,
    0.0
   ],
   [
    2.0,
    0.0
   ],
   [
    3.0,
    0.0
   ],
   [
    0.0,
    1.0
   ],
   [
    1.0,
    1.0
   ],
   [
    2.0,
    1.0
   ],
   [
    3.0,
    1.0
   ],
   [
    0.0,
    2.0
   ],
   [
    1.0,
    2.0
   ],
   [
    2.0,
    2.0
   ],
   [
    3.0,
    2.0
   ],
   [
    0.0,
    3.0
   ],
   [
    1.0,
    3.0
   ],
   [
    2.0,
    3.0
   ],
   [
    3.0,
    3.0
   ],
   [
    0.0,
    4.0
   ],
   [
    1.0,
    4.0
   ],
   [
    2.0,
    4.0
   ],
   [
    3.0,
    4.0
   ],
   [
    0.0,
    5.0
   ],
   [
    1.0,
    5.0
   ],
   [
    2.0,
    5.0
   ],
   [
    3.0,
    5.0
   ]
  ],
  "layers": 2,
  "interaction_radius": 5.831
 },
 "circuit": {
  "d_circ": {
   "X": {
    "value": 8,
    "confidence": "upper_bound",
    "witness": [
     445,
     472,
     576,
     624,
     680,
     747,
     748,
     1104
    ]
   },
   "Z": {
    "value": 8,
    "confidence": "upper_bound",
    "witness": [
     25,
     33,
     348,
     473,
     480,
     538,
     638,
     794
    ]
   }
  },
  "rounds": 8,
  "stim_version": "1.16.0",
  "notes": "Interleaved two-block extraction (Bravyi et al. arXiv:2308.07915 Table 5 style): joint reset and measurement layers, 7 data CX layers per round plus flag layers (2 flag qubits per check ancilla, flag CX gaps 1,4;2,5); X-check term slots [3, 2, 4, 5, 1, 6], Z-check term slots [2, 4, 3, 0, 5, 1] over terms A_0..A_2, B_0..B_2; terms recovered from H by commuting permutation decomposition; order chosen by a seeded BP+OSD search on the DEM plus RIS"
 }
}
