{
 "schema_version": "0.1",
 "name": "[[40,6,5]] weight-6 generalized bicycle (2BGA) code",
 "code_type": "CSS",
 "n": 40,
 "k": 6,
 "checks": {
  "X": [
   [
    0,
    16,
    20,
    33,
    38,
    39
   ],
   [
    1,
    17,
    20,
    21,
    34,
    39
   ],
   [
    2,
    18,
    20,
    21,
    22,
    35
   ],
   [
    3,
    19,
    21,
    22,
    23,
    36
   ],
   [
    0,
    4,
    22,
    23,
    24,
    37
   ],
   [
    1,
    5,
    23,
    24,
    25,
    38
   ],
   [
    2,
    6,
    24,
    25,
    26,
    39
   ],
   [
    3,
    7,
    20,
    25,
    26,
    27
   ],
   [
    4,
    8,
    21,
    26,
    27,
    28
   ],
   [
    5,
    9,
    22,
    27,
    28,
    29
   ],
   [
    6,
    10,
    23,
    28,
    29,
    30
   ],
   [
    7,
    11,
    24,
    29,
    30,
    31
   ],
   [
    8,
    12,
    25,
    30,
    31,
    32
   ],
   [
    9,
    13,
    26,
    31,
    32,
    33
   ],
   [
    10,
    14,
    27,
    32,
    33,
    34
   ],
   [
    11,
    15,
    28,
    33,
    34,
    35
   ],
   [
    12,
    16,
    29,
    34,
    35,
    36
   ],
   [
    13,
    17,
    30,
    35,
    36,
    37
   ],
   [
    14,
    18,
    31,
    36,
    37,
    38
   ],
   [
    15,
    19,
    32,
    37,
    38,
    39
   ]
  ],
  "Z": [
   [
    0,
    1,
    2,
    7,
    20,
    24
   ],
   [
    1,
    2,
    3,
    8,
    21,
    25
   ],
   [
    2,
    3,
    4,
    9,
    22,
    26
   ],
   [
    3,
    4,
    5,
    10,
    23,
    27
   ],
   [
    4,
    5,
    6,
    11,
    24,
    28
   ],
   [
    5,
    6,
    7,
    12,
    25,
    29
   ],
   [
    6,
    7,
    8,
    13,
    26,
    30
   ],
   [
    7,
    8,
    9,
    14,
    27,
    31
   ],
   [
    8,
    9,
    10,
    15,
    28,
    32
   ],
   [
    9,
    10,
    11,
    16,
    29,
    33
   ],
   [
    10,
    11,
    12,
    17,
    30,
    34
   ],
   [
    11,
    12,
    13,
    18,
    31,
    35
   ],
   [
    12,
    13,
    14,
    19,
    32,
    36
   ],
   [
    0,
    13,
    14,
    15,
    33,
    37
   ],
   [
    1,
    14,
    15,
    16,
    34,
    38
   ],
   [
    2,
    15,
    16,
    17,
    35,
    39
   ],
   [
    3,
    16,
    17,
    18,
    20,
    36
   ],
   [
    4,
    17,
    18,
    19,
    21,
    37
   ],
   [
    0,
    5,
    18,
    19,
    22,
    38
   ],
   [
    0,
    1,
    6,
    19,
    23,
    39
   ]
  ]
 },
 "distance": {
  "d": 5,
  "X": {
   "value": 5,
   "confidence": "exact",
   "witness": [
    14,
    15,
    31,
    32,
    35
   ]
  },
  "Z": {
   "value": 5,
   "confidence": "exact",
   "witness": [
    11,
    14,
    15,
    31,
    32
   ]
  }
 },
 "provenance": {
  "authors": [
   "Lin, Hsiang-Ku",
   "Pryadko, Leonid P."
  ],
  "origin": "baseline",
  "construction": "Generalized bicycle (cyclic 2BGA) code over C_20: a(x) = 1 + x^4, b(x) = 1 + x + x^2 + x^7.",
  "date": "2023-06-28",
  "references": [
   "arXiv:2306.16400",
   "arXiv:2203.17216"
  ],
  "notes": "Parameters from the Lin-Pryadko 2BGA enumeration (arXiv:2306.16400, w=6 abelian/GB tier). Explicit polynomials reconstructed by exhaustive weight-6 GB search over C_20 with the repo research kit; distance proven exact by cutoff MILP (scipy/HiGHS). Seeded so the global frontier reflects the published state of the art (issue #52).\n\nLayout certification: a verifier-accepted honest bilayer layout (stacked 4x5 grid, 2 qubits per site, layers=2, measured interaction radius ~5.000) 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
   ],
   [
    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,
    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
   ]
  ],
  "layers": 2
 }
}
