{
 "schema_version": "0.5",
 "name": "[[25,1,5]] surface code",
 "code_type": "CSS",
 "n": 25,
 "k": 1,
 "checks": {
  "X": [
   [
    0,
    1,
    5,
    6
   ],
   [
    2,
    3,
    7,
    8
   ],
   [
    4,
    9
   ],
   [
    5,
    10
   ],
   [
    6,
    7,
    11,
    12
   ],
   [
    8,
    9,
    13,
    14
   ],
   [
    10,
    11,
    15,
    16
   ],
   [
    12,
    13,
    17,
    18
   ],
   [
    14,
    19
   ],
   [
    15,
    20
   ],
   [
    16,
    17,
    21,
    22
   ],
   [
    18,
    19,
    23,
    24
   ]
  ],
  "Z": [
   [
    0,
    1
   ],
   [
    2,
    3
   ],
   [
    1,
    2,
    6,
    7
   ],
   [
    3,
    4,
    8,
    9
   ],
   [
    5,
    6,
    10,
    11
   ],
   [
    7,
    8,
    12,
    13
   ],
   [
    11,
    12,
    16,
    17
   ],
   [
    13,
    14,
    18,
    19
   ],
   [
    15,
    16,
    20,
    21
   ],
   [
    17,
    18,
    22,
    23
   ],
   [
    21,
    22
   ],
   [
    23,
    24
   ]
  ]
 },
 "distance": {
  "d": 5,
  "X": {
   "value": 5,
   "confidence": "exact",
   "witness": [
    2,
    3,
    5,
    6,
    9
   ]
  },
  "Z": {
   "value": 5,
   "confidence": "exact",
   "witness": [
    0,
    5,
    10,
    16,
    21
   ]
  }
 },
 "provenance": {
  "authors": [
   "Kitaev, A. Yu."
  ],
  "origin": "baseline",
  "construction": "Rotated surface code, distance 5.",
  "date": "1997-07-09",
  "references": [
   "arXiv:quant-ph/9707021"
  ],
  "notes": "Distance is exact by construction. 2D layout added 2026-07-23: qubit q at (q//5, q%5) on the 5x5 planar grid; single layer, measured interaction radius sqrt(2)."
 },
 "family": "topological",
 "locality": {
  "coordinates": [
   [
    0.0,
    0.0
   ],
   [
    0.0,
    1.0
   ],
   [
    0.0,
    2.0
   ],
   [
    0.0,
    3.0
   ],
   [
    0.0,
    4.0
   ],
   [
    1.0,
    0.0
   ],
   [
    1.0,
    1.0
   ],
   [
    1.0,
    2.0
   ],
   [
    1.0,
    3.0
   ],
   [
    1.0,
    4.0
   ],
   [
    2.0,
    0.0
   ],
   [
    2.0,
    1.0
   ],
   [
    2.0,
    2.0
   ],
   [
    2.0,
    3.0
   ],
   [
    2.0,
    4.0
   ],
   [
    3.0,
    0.0
   ],
   [
    3.0,
    1.0
   ],
   [
    3.0,
    2.0
   ],
   [
    3.0,
    3.0
   ],
   [
    3.0,
    4.0
   ],
   [
    4.0,
    0.0
   ],
   [
    4.0,
    1.0
   ],
   [
    4.0,
    2.0
   ],
   [
    4.0,
    3.0
   ],
   [
    4.0,
    4.0
   ]
  ],
  "interaction_radius": 1.4142135623730951,
  "layers": 1
 },
 "circuit": {
  "d_circ": {
   "Z": {
    "value": 5,
    "confidence": "upper_bound",
    "witness": [
     1155,
     1156,
     1379,
     1558,
     1559
    ]
   },
   "X": {
    "value": 5,
    "confidence": "upper_bound",
    "witness": [
     42,
     44,
     106,
     110,
     157
    ]
   }
  },
  "rounds": 5,
  "stim_version": "1.16.0",
  "notes": "standard geometric zigzag schedule (X pattern 'n', Z pattern 'z') derived from the 2D layout; generated by research/circuit_seed.py",
  "ler": {
   "X": [
    {
     "p": 0.01,
     "shots": 10000,
     "failures": 3560,
     "seed": 20261006,
     "decoder": "bposd-cs-10",
     "ler_per_round": 0.110194016,
     "ci95": [
      0.105270021,
      0.115443354
     ]
    },
    {
     "p": 0.005,
     "shots": 10000,
     "failures": 1054,
     "seed": 20261006,
     "decoder": "bposd-cs-10",
     "ler_per_round": 0.023121855,
     "ci95": [
      0.021711993,
      0.024622744
     ]
    },
    {
     "p": 0.002,
     "shots": 20000,
     "failures": 206,
     "seed": 20261006,
     "decoder": "bposd-cs-10",
     "ler_per_round": 0.002077187,
     "ci95": [
      0.001811426,
      0.002381853
     ]
    },
    {
     "p": 0.001,
     "shots": 100000,
     "failures": 150,
     "seed": 7,
     "decoder": "bposd-cs-10",
     "ler_per_round": 0.000300361,
     "ci95": [
      0.000255967,
      0.000352451
     ]
    }
   ],
   "Z": [
    {
     "p": 0.01,
     "shots": 10000,
     "failures": 3503,
     "seed": 20261006,
     "decoder": "bposd-cs-10",
     "ler_per_round": 0.107155784,
     "ci95": [
      0.102396125,
      0.112221494
     ]
    },
    {
     "p": 0.005,
     "shots": 10000,
     "failures": 1092,
     "seed": 20261006,
     "decoder": "bposd-cs-10",
     "ler_per_round": 0.024043881,
     "ci95": [
      0.022600068,
      0.025579464
     ]
    },
    {
     "p": 0.002,
     "shots": 10000,
     "failures": 105,
     "seed": 20261006,
     "decoder": "bposd-cs-10",
     "ler_per_round": 0.002117866,
     "ci95": [
      0.001748533,
      0.002565023
     ]
    },
    {
     "p": 0.001,
     "shots": 100000,
     "failures": 127,
     "seed": 7,
     "decoder": "bposd-cs-10",
     "ler_per_round": 0.000254258,
     "ci95": [
      0.000213702,
      0.00030251
     ]
    }
   ]
  }
 }
}
