{
 "schema_version": "0.2",
 "name": "[[42,8,3]] generalized bicycle code",
 "code_type": "CSS",
 "n": 42,
 "k": 8,
 "checks": {
  "X": [
   [
    0,
    3,
    6,
    12,
    21,
    28
   ],
   [
    1,
    4,
    7,
    13,
    22,
    29
   ],
   [
    2,
    5,
    8,
    14,
    23,
    30
   ],
   [
    3,
    6,
    9,
    15,
    24,
    31
   ],
   [
    4,
    7,
    10,
    16,
    25,
    32
   ],
   [
    5,
    8,
    11,
    17,
    26,
    33
   ],
   [
    6,
    9,
    12,
    18,
    27,
    34
   ],
   [
    7,
    10,
    13,
    19,
    28,
    35
   ],
   [
    8,
    11,
    14,
    20,
    29,
    36
   ],
   [
    0,
    9,
    12,
    15,
    30,
    37
   ],
   [
    1,
    10,
    13,
    16,
    31,
    38
   ],
   [
    2,
    11,
    14,
    17,
    32,
    39
   ],
   [
    3,
    12,
    15,
    18,
    33,
    40
   ],
   [
    4,
    13,
    16,
    19,
    34,
    41
   ],
   [
    5,
    14,
    17,
    20,
    21,
    35
   ],
   [
    0,
    6,
    15,
    18,
    22,
    36
   ],
   [
    1,
    7,
    16,
    19,
    23,
    37
   ],
   [
    2,
    8,
    17,
    20,
    24,
    38
   ],
   [
    0,
    3,
    9,
    18,
    25,
    39
   ],
   [
    1,
    4,
    10,
    19,
    26,
    40
   ],
   [
    2,
    5,
    11,
    20,
    27,
    41
   ]
  ],
  "Z": [
   [
    0,
    14,
    21,
    30,
    36,
    39
   ],
   [
    1,
    15,
    22,
    31,
    37,
    40
   ],
   [
    2,
    16,
    23,
    32,
    38,
    41
   ],
   [
    3,
    17,
    21,
    24,
    33,
    39
   ],
   [
    4,
    18,
    22,
    25,
    34,
    40
   ],
   [
    5,
    19,
    23,
    26,
    35,
    41
   ],
   [
    6,
    20,
    21,
    24,
    27,
    36
   ],
   [
    0,
    7,
    22,
    25,
    28,
    37
   ],
   [
    1,
    8,
    23,
    26,
    29,
    38
   ],
   [
    2,
    9,
    24,
    27,
    30,
    39
   ],
   [
    3,
    10,
    25,
    28,
    31,
    40
   ],
   [
    4,
    11,
    26,
    29,
    32,
    41
   ],
   [
    5,
    12,
    21,
    27,
    30,
    33
   ],
   [
    6,
    13,
    22,
    28,
    31,
    34
   ],
   [
    7,
    14,
    23,
    29,
    32,
    35
   ],
   [
    8,
    15,
    24,
    30,
    33,
    36
   ],
   [
    9,
    16,
    25,
    31,
    34,
    37
   ],
   [
    10,
    17,
    26,
    32,
    35,
    38
   ],
   [
    11,
    18,
    27,
    33,
    36,
    39
   ],
   [
    12,
    19,
    28,
    34,
    37,
    40
   ],
   [
    13,
    20,
    29,
    35,
    38,
    41
   ]
  ]
 },
 "distance": {
  "d": 3,
  "X": {
   "value": 3,
   "confidence": "upper_bound",
   "witness": [
    4,
    11,
    18
   ]
  },
  "Z": {
   "value": 3,
   "confidence": "upper_bound",
   "witness": [
    0,
    3,
    15
   ]
  }
 },
 "provenance": {
  "authors": [
   "Wang, Renren",
   "Pryadko, Leonid P."
  ],
  "origin": "baseline",
  "construction": "Generalized bicycle code, circulant size 21, a(x) = 1 + x^3 + x^6 + x^12, b(x) = 1 + x^7.",
  "date": "2022-03-31",
  "references": [
   "arXiv:2203.17216"
  ],
  "notes": "Distance d=3 from arXiv:2203.17216; witness here is a decoder-found logical operator of that weight (upper bound).\n\nLayout certification: a verifier-accepted honest bilayer layout (stacked 3x7 grid, 2 qubits per site, layers=2, measured interaction radius ~6.325) was found by @mathysrennela (Aug 2026). 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. Code authorship unchanged; layout credit to @mathysrennela."
 },
 "family": "generalized-bicycle",
 "locality": {
  "coordinates": [
   [
    0.0,
    0.0
   ],
   [
    1.0,
    0.0
   ],
   [
    2.0,
    0.0
   ],
   [
    0.0,
    1.0
   ],
   [
    1.0,
    1.0
   ],
   [
    2.0,
    1.0
   ],
   [
    0.0,
    2.0
   ],
   [
    1.0,
    2.0
   ],
   [
    2.0,
    2.0
   ],
   [
    0.0,
    3.0
   ],
   [
    1.0,
    3.0
   ],
   [
    2.0,
    3.0
   ],
   [
    0.0,
    4.0
   ],
   [
    1.0,
    4.0
   ],
   [
    2.0,
    4.0
   ],
   [
    0.0,
    5.0
   ],
   [
    1.0,
    5.0
   ],
   [
    2.0,
    5.0
   ],
   [
    0.0,
    6.0
   ],
   [
    1.0,
    6.0
   ],
   [
    2.0,
    6.0
   ],
   [
    0.0,
    0.0
   ],
   [
    1.0,
    0.0
   ],
   [
    2.0,
    0.0
   ],
   [
    0.0,
    1.0
   ],
   [
    1.0,
    1.0
   ],
   [
    2.0,
    1.0
   ],
   [
    0.0,
    2.0
   ],
   [
    1.0,
    2.0
   ],
   [
    2.0,
    2.0
   ],
   [
    0.0,
    3.0
   ],
   [
    1.0,
    3.0
   ],
   [
    2.0,
    3.0
   ],
   [
    0.0,
    4.0
   ],
   [
    1.0,
    4.0
   ],
   [
    2.0,
    4.0
   ],
   [
    0.0,
    5.0
   ],
   [
    1.0,
    5.0
   ],
   [
    2.0,
    5.0
   ],
   [
    0.0,
    6.0
   ],
   [
    1.0,
    6.0
   ],
   [
    2.0,
    6.0
   ]
  ],
  "layers": 2
 },
 "circuit": {
  "d_circ": {
   "X": {
    "value": 3,
    "confidence": "upper_bound",
    "witness": [
     4347,
     4348,
     4377
    ]
   },
   "Z": {
    "value": 3,
    "confidence": "upper_bound",
    "witness": [
     0,
     6,
     156
    ]
   }
  },
  "rounds": 3,
  "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; X-check term slots [2, 4, 6, 3, 1, 5], Z-check term slots [3, 2, 0, 4, 5, 1] over terms A_0..A_3, B_0..B_1; terms recovered from H alone by a commuting permutation decomposition. Order screened by RIS among the 576 slot assignments satisfying the overlap-parity criterion (first one tried); the claim then survived 2 seeds x 1000 RIS trials per basis and an observable-constrained seeded BP+OSD search over symmetric seeds, whose lightest undetected logical fault set is weight 3 in both bases.",
  "ler": {
   "X": {
    "p": 0.001,
    "shots": 20000,
    "failures": 277,
    "seed": 7,
    "decoder": "bposd-cs-10",
    "ler_per_round": 0.004659962,
    "ci95": [
     0.004141253,
     0.005243317
    ]
   },
   "Z": {
    "p": 0.001,
    "shots": 20000,
    "failures": 255,
    "seed": 7,
    "decoder": "bposd-cs-10",
    "ler_per_round": 0.004286646,
    "ci95": [
     0.003790668,
     0.004847216
    ]
   }
  }
 }
}
