deskmerc/ quantum

Quantum protection / KINGSTON

Through the Noise Wall

Can the sign survive as well?

Compare an unencoded state with error detection and correction across all six axis states.

IBM job ID
dc0pc0anj2vs73debv60
Submitted
21 Nov 2026 · report date
QPU charge
Not in supplied record
Backend
ibm_kingston
Sampling
256 shots per recorded setting/case
Provenance
Through the Noise Wall, pages 4–6.

The question

Compare an unencoded state with error detection and correction across all six axis states.

Circuit & method

Prepare ±Z, ±X and ±Y, then teleport and apply two SWAPs to Charlie. Compare bare transport, [[4,2,2]] detection and Steane [[7,1,3]] correction in one job, with 256 shots per state per method. Final check bits are interpreted in software.

PrepareState, codeword or problem instance
Run on KingstonRecorded physical circuit and settings
Measure & checkCounts, decoding and classical verification

Results

Bare transport passed 1,450/1,536. The detecting code kept 746/1,536 and was right on 660 of those. Steane passed 1,045/1,536 after correction, versus 906 before correction. Native CZ counts per circuit were 8, 108 and 273 respectively.

Measured outcomesAll-shot success; each bar runs from 0% to 100%.
Unencoded1,450/1,536 · 94.4%
[[4,2,2]] detection660/1,536 · 43.0%
Steane correction1,045/1,536 · 68.0%
Detecting-code “correct” includes only accepted, correct shots. Raw correct uses all shots before check interpretation.
MethodCorrect / attemptsCorrect / keptRaw correct / attempts
Unencoded1450/1536 (94.4%)1450/1536 (94.4%)1450/1536
[[4,2,2]] detection660/1536 (43.0%)660/746 (88.5%)1175/1536
Steane correction1045/1536 (68.0%)1045/1536 (68.0%)906/1536

What this supports

The archived ideal simulation has a different recorded layout from the live hardware compilation; both snapshots are preserved. The attachment omits timestamps, usage and version metadata. The report dates this run to 21 November 2026. These results cover one round of protection and final classical interpretation.

Percentages are rounded for reading. The original integer counts, physical layouts, settings and available uncertainty calculations remain in the records below. Sampling intervals do not account for drift or every systematic error.

Full experiment record

Every top-level field from the primary hardware JSON is reproduced below, including the complete saved measurement distributions where present. Field names and outcome strings retain their original order and spelling.

  • kingston.jsonThrough the Noise Wall.pdf / Kingston measurements and source.zip · 98,888 bytes
stage
done
tag
charlie-six-states-422-steane-20261121-v1
backend
ibm_kingston
order
[
  "steane_Z-",
  "bare_Z+",
  "bare_Z-",
  "steane_Y+",
  "422_Z-",
  "bare_X-",
  "steane_X-",
  "422_Y+",
  "422_Z+",
  "bare_Y-",
  "bare_Y+",
  "bare_X+",
  "steane_Y-",
  "422_X-",
  "steane_Z+",
  "422_Y-",
  "steane_X+",
  "422_X+"
]
shots_per_case
256
live_compile
{
  "lanes": [
    [
      78,
      69,
      68,
      67,
      57
    ],
    [
      70,
      71,
      58,
      51,
      50
    ],
    [
      46,
      47,
      48,
      49,
      38
    ],
    [
      37,
      25,
      26,
      27,
      28
    ],
    [
      56,
      63,
      64,
      65,
      66
    ],
    [
      45,
      44,
      43,
      42,
      41
    ],
    [
      36,
      21,
      22,
      23,
      24
    ]
  ],
  "cases": {
    "bare_Z+": {
      "operations": {
        "sx": 18,
        "rz": 12,
        "cz": 8,
        "measure_2": 2,
        "if_else": 2,
        "measure": 1
      },
      "depth": 27,
      "physical_readout": [
        57
      ],
      "fast_mid_measure": true
    },
    "bare_Z-": {
      "operations": {
        "sx": 18,
        "rz": 12,
        "cz": 8,
        "measure_2": 2,
        "if_else": 2,
        "x": 1,
        "measure": 1
      },
      "depth": 27,
      "physical_readout": [
        57
      ],
      "fast_mid_measure": true
    },
    "bare_X+": {
      "operations": {
        "sx": 20,
        "rz": 16,
        "cz": 8,
        "measure_2": 2,
        "if_else": 2,
        "measure": 1
      },
      "depth": 30,
      "physical_readout": [
        57
      ],
      "fast_mid_measure": true
    },
    "bare_X-": {
      "operations": {
        "sx": 20,
        "rz": 16,
        "cz": 8,
        "measure_2": 2,
        "if_else": 2,
        "x": 1,
        "measure": 1
      },
      "depth": 30,
      "physical_readout": [
        57
      ],
      "fast_mid_measure": true
    },
    "bare_Y+": {
      "operations": {
        "sx": 20,
        "rz": 18,
        "cz": 8,
        "measure_2": 2,
        "if_else": 2,
        "measure": 1
      },
      "depth": 31,
      "physical_readout": [
        57
      ],
      "fast_mid_measure": true
    },
    "bare_Y-": {
      "operations": {
        "sx": 20,
        "rz": 18,
        "cz": 8,
        "measure_2": 2,
        "if_else": 2,
        "x": 1,
        "measure": 1
      },
      "depth": 31,
      "physical_readout": [
        57
      ],
      "fast_mid_measure": true
    },
    "422_Z+": {
      "operations": {
        "sx": 226,
        "cz": 108,
        "rz": 92,
        "measure_2": 8,
        "if_else": 8,
        "measure": 4
      },
      "depth": 140,
      "physical_readout": [
        48,
        49,
        50,
        38
      ],
      "fast_mid_measure": true
    },
    "422_Z-": {
      "operations": {
        "sx": 226,
        "cz": 108,
        "rz": 92,
        "measure_2": 8,
        "if_else": 8,
        "measure": 4,
        "x": 1
      },
      "depth": 140,
      "physical_readout": [
        48,
        49,
        50,
        38
      ],
      "fast_mid_measure": true
    },
    "422_X+": {
      "operations": {
        "sx": 228,
        "cz": 108,
        "rz": 96,
        "measure_2": 8,
        "if_else": 8,
        "measure": 4
      },
      "depth": 140,
      "physical_readout": [
        48,
        49,
        50,
        38
      ],
      "fast_mid_measure": true
    },
    "422_X-": {
      "operations": {
        "sx": 228,
        "cz": 108,
        "rz": 96,
        "measure_2": 8,
        "if_else": 8,
        "measure": 4,
        "x": 1
      },
      "depth": 141,
      "physical_readout": [
        48,
        49,
        50,
        38
      ],
      "fast_mid_measure": true
    },
    "422_Y+": {
      "operations": {
        "sx": 228,
        "cz": 108,
        "rz": 98,
        "measure_2": 8,
        "if_else": 8,
        "measure": 4
      },
      "depth": 142,
      "physical_readout": [
        48,
        49,
        50,
        38
      ],
      "fast_mid_measure": true
    },
    "422_Y-": {
      "operations": {
        "sx": 228,
        "cz": 108,
        "rz": 98,
        "measure_2": 8,
        "if_else": 8,
        "measure": 4,
        "x": 1
      },
      "depth": 143,
      "physical_readout": [
        48,
        49,
        50,
        38
      ],
      "fast_mid_measure": true
    },
    "steane_Z+": {
      "operations": {
        "sx": 566,
        "cz": 273,
        "rz": 184,
        "measure_2": 14,
        "if_else": 14,
        "measure": 7
      },
      "depth": 304,
      "physical_readout": [
        48,
        29,
        47,
        67,
        57,
        46,
        49
      ],
      "fast_mid_measure": true
    },
    "steane_Z-": {
      "operations": {
        "sx": 566,
        "cz": 273,
        "rz": 184,
        "measure_2": 14,
        "if_else": 14,
        "measure": 7,
        "x": 1
      },
      "depth": 304,
      "physical_readout": [
        48,
        29,
        47,
        67,
        57,
        46,
        49
      ],
      "fast_mid_measure": true
    },
    "steane_X+": {
      "operations": {
        "sx": 568,
        "cz": 273,
        "rz": 188,
        "measure_2": 14,
        "if_else": 14,
        "measure": 7
      },
      "depth": 304,
      "physical_readout": [
        48,
        29,
        47,
        67,
        57,
        46,
        49
      ],
      "fast_mid_measure": true
    },
    "steane_X-": {
      "operations": {
        "sx": 568,
        "cz": 273,
        "rz": 188,
        "measure_2": 14,
        "if_else": 14,
        "measure": 7,
        "x": 1
      },
      "depth": 305,
      "physical_readout": [
        48,
        29,
        47,
        67,
        57,
        46,
        49
      ],
      "fast_mid_measure": true
    },
    "steane_Y+": {
      "operations": {
        "sx": 568,
        "cz": 273,
        "rz": 190,
        "measure_2": 14,
        "if_else": 14,
        "measure": 7
      },
      "depth": 306,
      "physical_readout": [
        48,
        29,
        47,
        67,
        57,
        46,
        49
      ],
      "fast_mid_measure": true
    },
    "steane_Y-": {
      "operations": {
        "sx": 568,
        "cz": 273,
        "rz": 190,
        "measure_2": 14,
        "if_else": 14,
        "measure": 7,
        "x": 1
      },
      "depth": 307,
      "physical_readout": [
        48,
        29,
        47,
        67,
        57,
        46,
        49
      ],
      "fast_mid_measure": true
    }
  }
}
job_id
dc0pc0anj2vs73debv60
counts
{
  "steane_Z-": {
    "010011011001010000000": 1,
    "100110000001001000100": 1,
    "000000011000011010100": 1,
    "010010011010011110001": 1,
    "000010011001010000000": 1,
    "010111001011101111110": 1,
    "011001101110001101110": 1,
    "000010011110011001001": 1,
    "010010001000111101100": 1,
    "000110001000110001100": 1,
    "000110000101000100110": 1,
    "001001010110100000101": 1,
    "010010000011000110101": 1,
    "010111110011101010010": 1,
    "000010101101111001001": 1,
    "101110101010001110000": 1,
    "100001010100101101000": 1,
    "111101010101111101101": 1,
    "011000010011011111010": 1,
    "101101010101111011000": 1,
    "001101110110111101111": 1,
    "110010010000000011011": 1,
    "100000110000101110001": 1,
    "111001000010000101110": 1,
    "000010011011111101000": 1,
    "010100001000110101101": 1,
    "011011011100001000001": 1,
    "111000011111111100001": 1,
    "010010001100110000011": 1,
    "110000011001101101111": 1,
    "010000100011011001110": 1,
    "011011000111111101100": 1,
    "101001111000000010110": 1,
    "011011111111001110001": 1,
    "000011011111001100001": 1,
    "111101110110100111001": 1,
    "111101011011010100011": 1,
    "000010001100001000010": 1,
    "010000001000101000000": 1,
    "101000000010011110110": 1,
    "011000010011101010101": 1,
    "001110101111000001110": 1,
    "100101100011011100001": 1,
    "011100001011111011100": 1,
    "111010001111101101000": 1,
    "001101001100010001110": 1,
    "010011011100110100001": 1,
    "000011111011101100100": 1,
    "000010100100010011001": 1,
    "101111100111000000000": 1,
    "000010000010110000011": 1,
    "011000001000010011101": 1,
    "001001110001100110110": 1,
    "011000100100110011111": 1,
    "010111110011000010100": 1,
    "101000110111111000000": 1,
    "001101110110101000101": 1,
    "101101010010011101001": 1,
    "100001101000110001010": 1,
    "000000101100100001011": 1,
    "100010000010110000010": 1,
    "111001010111110100111": 1,
    "000011110000111101100": 1,
    "111010010010011110101": 1,
    "110111110101011001111": 1,
    "000010011011010100010": 1,
    "011000111010101011111": 1,
    "011111111111100111111": 1,
    "010011111110101001101": 1,
    "100001101011010110001": 1,
    "100011011000000000001": 1,
    "000111100000000100000": 1,
    "000011011101010011110": 1,
    "011000000111000100110": 1,
    "111101011110101110000": 1,
    "010010010010000010000": 1,
    "000010010011111010010": 1,
    "101001001101001110010": 1,
    "110100000010101001101": 1,
    "000010110000001100000": 1,
    "100011010111010010000": 1,
    "001000001100100111111": 1,
    "000110101010110101101": 1,
    "011000000111001010001": 1,
    "100111001101011010110": 1,
    "000100111110000011111": 1,
    "001010011000100011101": 1,
    "110000011001111011101": 1,
    "010111100010110111010": 1,
    "100100111011101100110": 1,
    "110101011001000011010": 1,
    "000010100101011110000": 1,
    "001100000010000100100": 1,
    "100111101000101111000": 1,
    "001110110000001010110": 1,
    "000110101001000010010": 1,
    "000010000010000111100": 1,
    "110000110110001110110": 1,
    "000010011111010010101": 1,
    "000011000010100011110": 1,
    "111111110110001111100": 1,
    "010011110001001100100": 1,
    "000011000100000110100": 1,
    "000010001100011110011": 1,
    "000011010001001001001": 1,
    "011000001101011001111": 1,
    "011000011111000001101": 1,
    "000010010101110110111": 1,
    "011001001101001101001": 1,
    "000110100001101001100": 1,
    "111001110110000100000": 1,
    "110110111111111100110": 1,
    "000010010001011011100": 1,
    "001010011011000101100": 1,
    "010110110101101011001": 1,
    "110111001101110011010": 1,
    "101100011110111001001": 1,
    "111111110111001011000": 1,
    "010000000100100001001": 1,
    "101000000111111100011": 1,
    "011011001000101001110": 1,
    "111011000001000110011": 1,
    "010110001011001100010": 1,
    "010011001100001010111": 1,
    "010010001101100111100": 1,
    "001000110001101100001": 1,
    "100001010011100001100": 1,
    "011000001100111100000": 1,
    "110011101100111010010": 1,
    "001000000100010101101": 1,
    "110010110001101010011": 1,
    "010101111010010011001": 1,
    "111111101110010101011": 1,
    "000010111110110111101": 1,
    "000010110100100011001": 1,
    "011100011100000110000": 1,
    "011100101001001011010": 1,
    "101001011100000101010": 1,
    "100001100010011101001": 1,
    "000111000100101101000": 1,
    "010010000110101100011": 1,
    "011000010010100110110": 1,
    "000010001011011000000": 1,
    "001000100011010000111": 1,
    "010010000110111000100": 1,
    "001001111011111110011": 1,
    "100001101100101111101": 1,
    "000010011000011101110": 1,
    "011000000111000011000": 1,
    "000010111000001101011": 1,
    "011011100000000100110": 1,
    "110100001100100010110": 1,
    "000011010010111110100": 1,
    "000010011000100011010": 1,
    "101101001001011100111": 1,
    "111001101010010100001": 1,
    "111010000000001100110": 1,
    "110110001010100110100": 1,
    "101000100110101000110": 1,
    "010010100001000100101": 1,
    "000111100101011010101": 1,
    "100010011110100100110": 1,
    "011000010010111010001": 1,
    "101010010000111101011": 1,
    "000111001010100100011": 1,
    "000010000110001100100": 1,
    "000010001111001010011": 1,
    "000110000010111110111": 1,
    "100111011001100110100": 1,
    "000011110110011101001": 1,
    "100011000000111111000": 1,
    "000010010100111010111": 1,
    "110011011101100001000": 1,
    "111111111111011100111": 1,
    "101000011101111001110": 1,
    "011000011110000100111": 1,
    "110000000010100001100": 1,
    "000011110110000100000": 1,
    "100011101001111100101": 1,
    "100010000100000011001": 1,
    "101010011010010110111": 1,
    "000010110010001100011": 1,
    "010000001101101000000": 1,
    "110010001111001000101": 1,
    "101000010001110111011": 1,
    "011101110100010100110": 1,
    "000110001111000110101": 1,
    "011001110011010011111": 1,
    "000000111101000101010": 1,
    "001100100110001001000": 1,
    "000010000101010000101": 1,
    "010010011100101010000": 1,
    "000010000000010100011": 1,
    "000010011100001100110": 1,
    "100100111111100000110": 1,
    "000110101010000101011": 1,
    "010011111000011100011": 1,
    "011100001001010111001": 1,
    "011110100001110000110": 1,
    "010111100010110010010": 1,
    "110110000011000100101": 1,
    "001101000101010110001": 1,
    "100000101111010011001": 1,
    "110101010111010101100": 1,
    "000111110011001100001": 1,
    "000111110110101010000": 1,
    "100010010010010111000": 1,
    "000010011111000110110": 1,
    "000010010100111110000": 1,
    "000010010100110010011": 1,
    "100001100001100100101": 1,
    "010010011100110111010": 1,
    "110101000101001100111": 1,
    "000111011110001110010": 1,
    "111000100110001110101": 1,
    "000010011001010001000": 1,
    "111101011100001001000": 1,
    "100101011000101001100": 1,
    "110000001001011100000": 1,
    "000110011111001111000": 1,
    "101000111111100011011": 1,
    "111100100010011001100": 1,
    "000111000010101000011": 1,
    "010001111110110000111": 1,
    "000011010000010100100": 1,
    "101001110011110101111": 1,
    "001010110100001110001": 1,
    "011001111101010100000": 1,
    "111110001010000010110": 1,
    "101001001001011001001": 1,
    "011000011001100010100": 1,
    "001000000010101111100": 1,
    "010010011011101000110": 1,
    "000110101001010001011": 1,
    "101010001100110110010": 1,
    "011001010110011100001": 1,
    "001001110000011000000": 1,
    "001001101111111110001": 1,
    "001000111011100001110": 1,
    "000011011100010010001": 1,
    "001010011000100000000": 1,
    "100001001010110001110": 1,
    "000010100010111011100": 1,
    "000010001001111011100": 1,
    "010000100111110010110": 1,
    "000010001111011111011": 1,
    "000010010111000111011": 1,
    "010011011111111101101": 1,
    "010100111100001110011": 1,
    "111000000100010001010": 1,
    "001101111100111111001": 1,
    "001111011111100110000": 1,
    "011100011000011110101": 1,
    "001010111000000110101": 1,
    "001011101111111100001": 1,
    "010101101000001001100": 1
  },
  "bare_Z+": {
    "011": 53,
    "000": 61,
    "010": 69,
    "001": 66,
    "100": 1,
    "110": 3,
    "101": 2,
    "111": 1
  },
  "bare_Z-": {
    "110": 72,
    "100": 58,
    "111": 57,
    "101": 52,
    "010": 5,
    "000": 7,
    "001": 2,
    "011": 3
  },
  "steane_Y+": {
    "001000000100100110011": 1,
    "011100101110110000010": 1,
    "010000010101100101101": 1,
    "101010011011010101001": 1,
    "110011010010000111010": 1,
    "000000011000111110101": 1,
    "000101010000100000000": 1,
    "010001010001011110000": 1,
    "100000010100010111111": 1,
    "001101101010001010111": 1,
    "010010001000011101100": 1,
    "011111100011010110011": 1,
    "000011000110000011100": 1,
    "011011000110001100010": 1,
    "000111011100001101001": 1,
    "010011011110011101000": 1,
    "000101110111001010111": 1,
    "010111110001110101111": 1,
    "000001100101001010101": 1,
    "010110100111101101100": 1,
    "000000111110100011110": 1,
    "111100010110010100111": 1,
    "100110100110011101001": 1,
    "111001001111000111100": 1,
    "000010111011000000110": 1,
    "100100111101011111110": 1,
    "101011101001101010011": 1,
    "010000110000111000111": 1,
    "110011101100111010010": 1,
    "000011100001001100111": 1,
    "110001100110110010101": 1,
    "100110000001011100010": 1,
    "101111101001001101110": 1,
    "101101101010101010100": 1,
    "011111111111011111011": 1,
    "001000001000110001010": 1,
    "010010001110011100101": 1,
    "000010000000101000011": 1,
    "000100010010110100100": 1,
    "000000011000010010001": 1,
    "011010011011101000101": 1,
    "000000011010001011001": 1,
    "000000010010111000100": 1,
    "100111100100010010011": 1,
    "110011110011001110111": 1,
    "011100010000111101011": 1,
    "000101111010110101001": 1,
    "010000000001000000011": 1,
    "011010001111010110000": 1,
    "000100101100011110000": 1,
    "010001011011110111011": 1,
    "001010011101010001010": 1,
    "001011111101100101000": 1,
    "101110000000111100111": 1,
    "001001111011110100101": 1,
    "110111111101000001000": 1,
    "000010001001000110011": 1,
    "110011001001101010010": 1,
    "100000111011100010001": 1,
    "011001111100010010101": 1,
    "101001010101111110101": 1,
    "000011100011001010010": 1,
    "100100001110001100001": 1,
    "011010010010000100001": 1,
    "011100010000010100001": 1,
    "111000000011011100011": 1,
    "010011111011111011000": 1,
    "110001111111100110001": 1,
    "101011010110110101111": 1,
    "001101000001111111001": 1,
    "000011101101111110111": 1,
    "111011000101100101001": 1,
    "100110111111000110001": 1,
    "001101101101010100110": 1,
    "011000111100011000001": 1,
    "000000111101110000010": 1,
    "001000100011000001110": 1,
    "000000011000111101110": 1,
    "101110001100101011110": 1,
    "001100111000010000001": 1,
    "001000011111000111011": 1,
    "110000011010100110001": 1,
    "000000010011101111000": 1,
    "000110100100001010001": 1,
    "100111010111010110101": 1,
    "011010001100011001000": 1,
    "101000101000111101011": 1,
    "000000011110101010110": 1,
    "000000011110010100000": 1,
    "001000011111110101010": 1,
    "111110011111110011001": 1,
    "000000001000000001011": 1,
    "101011011011101010000": 1,
    "111100000111111001100": 1,
    "000000010010000011111": 1,
    "001111110111101010000": 1,
    "101000110011011111001": 1,
    "110000110111111110011": 1,
    "010010001100101101011": 1,
    "011011011100011101001": 1,
    "010101110100111001011": 1,
    "101000000000110111100": 1,
    "010011000010111011001": 1,
    "101010011111010110010": 1,
    "000101110100000011110": 1,
    "010000000000001000110": 1,
    "000000010110010001000": 1,
    "011011101111110010110": 1,
    "001101010001011001000": 1,
    "000000010000010010000": 1,
    "000000000110011111011": 1,
    "011010001010100100110": 1,
    "101110001111011100100": 1,
    "110111010001001101111": 1,
    "110011001101100010010": 1,
    "010000011000001011100": 1,
    "001010000111000100101": 1,
    "011010111111011101000": 1,
    "010101010011101110010": 1,
    "110100101100100110011": 1,
    "010000110011011100000": 1,
    "000011110000110010100": 1,
    "010100110110110111100": 1,
    "111011011010100000101": 1,
    "110000000100000001101": 1,
    "100001000111110001101": 1,
    "100100110010011110101": 1,
    "000000011100101000000": 1,
    "000111000111100001000": 1,
    "011011010111110100111": 1,
    "000010110101110110011": 1,
    "000000001001100001110": 1,
    "000000011111101010001": 1,
    "000000000111011111100": 1,
    "111110011111110101000": 1,
    "110100111001010101101": 1,
    "000111011110111110010": 1,
    "000000011001100010010": 1,
    "000000010111000101110": 1,
    "000000010100011001110": 1,
    "101010101111010001010": 1,
    "100010000100001011100": 1,
    "000000100100110010001": 1,
    "010011011000110110100": 1,
    "000000000000100011011": 1,
    "000000001110001111111": 1,
    "100011001000100100010": 1,
    "000100010000001001111": 1,
    "000101010100000011111": 1,
    "011101010000101111100": 1,
    "011110110110101001000": 1,
    "011110011100100000100": 1,
    "111000101111100110100": 1,
    "100100101101100000000": 1,
    "000001011101101110101": 1,
    "111011011111101111010": 1,
    "000000011000001110011": 1,
    "011010001001111000011": 1,
    "111001010110101110100": 1,
    "011100001101001000111": 1,
    "011011100110100110101": 1,
    "110110101101111110000": 1,
    "111000011001111100101": 1,
    "000000001011111100101": 1,
    "001011100111000001100": 1,
    "000000000000011101001": 1,
    "110000011011001111101": 1,
    "011100010010011000101": 1,
    "000000011011000000110": 1,
    "001110101011110101111": 1,
    "000000000110101010110": 1,
    "000010010100101010011": 1,
    "010011101000100100101": 1,
    "000000010100000100001": 1,
    "001000100010110100101": 1,
    "000000010101101010110": 1,
    "001000010011110110111": 1,
    "000011101101110010101": 1,
    "011000001000101000011": 1,
    "011010000100100000101": 1,
    "101010001101100100001": 1,
    "000111000000011010001": 1,
    "100010011101111111110": 1,
    "100001011000010000101": 1,
    "011010011000100101111": 1,
    "011011000101010100101": 1,
    "111000110011001110100": 1,
    "011001011101110001111": 1,
    "000000010010111110001": 1,
    "001011000010101001001": 1,
    "000000001001111000000": 1,
    "010100100110101110101": 1,
    "011011011100001000011": 1,
    "001010011110001011010": 1,
    "000000011101110011011": 1,
    "011010010010010000110": 1,
    "001000110100110100011": 1,
    "000101000100000111011": 1,
    "000000011001001111111": 1,
    "000000001100010111000": 1,
    "000100110001011011011": 1,
    "000010101110010000110": 1,
    "010010110000100011110": 1,
    "000011101010100000010": 1,
    "111110010001110010101": 1,
    "010011000010011100011": 1,
    "110010110000000011010": 1,
    "000000010100100000001": 1,
    "000110100001000000100": 1,
    "100000010000000001111": 1,
    "011000011101010110110": 1,
    "000010011010010011011": 1,
    "010000011000001100100": 1,
    "100000001011001010111": 1,
    "101000101100100000010": 1,
    "111001111011001100000": 1,
    "110000110110111011110": 1,
    "000011011110000000000": 1,
    "110011001001010010111": 1,
    "000000000011100101001": 1,
    "001100110010101110110": 1,
    "010111001000100001111": 1,
    "011100111010100101011": 1,
    "111010000010110011110": 1,
    "111000011000100110101": 1,
    "011100001111100010011": 1,
    "100100001010110000101": 1,
    "011010011011101101010": 1,
    "000001101010010000111": 1,
    "010011110000011000010": 1,
    "001000010001101001101": 1,
    "010110111001010111011": 1,
    "001111111010000001001": 1,
    "111111011001001001001": 1,
    "010100000110011100010": 1,
    "110000011101010010010": 1,
    "000110000110111111010": 1,
    "110010111100001010101": 1,
    "011001110011101110110": 1,
    "000000001110101010000": 1,
    "000000011001101101100": 1,
    "000001111101010010011": 1,
    "000010000101100000001": 1,
    "000000110010000010011": 1,
    "001000001110101001010": 1,
    "000000000110110010100": 1,
    "110010111101011100101": 1,
    "011110100000101001101": 1,
    "001100101001010110110": 1,
    "110000010111101001010": 1,
    "000011001000000100100": 1,
    "100000000111101100111": 1,
    "011101111001011001010": 1,
    "010000011101100010110": 1,
    "100111001011000000000": 1,
    "000001010001000001111": 1
  },
  "422_Z-": {
    "000100000000": 1,
    "010101001001": 1,
    "001001100010": 1,
    "001000101100": 1,
    "001010001001": 1,
    "001001011010": 2,
    "001001001111": 1,
    "111101000101": 1,
    "000010001101": 1,
    "001000111010": 1,
    "010010011001": 1,
    "111110100000": 1,
    "001010001111": 1,
    "101000101101": 1,
    "101010111011": 1,
    "001100111101": 1,
    "001110101110": 1,
    "111111101011": 1,
    "001101011000": 1,
    "001110000101": 2,
    "001010101110": 2,
    "101001010010": 1,
    "111110111011": 1,
    "100010001011": 1,
    "001000111000": 2,
    "111011001001": 1,
    "001000110100": 1,
    "010000111001": 1,
    "001000111011": 1,
    "100011111010": 1,
    "001001000001": 1,
    "001011100011": 1,
    "101000110001": 1,
    "010000100010": 1,
    "111101101111": 1,
    "001100101100": 1,
    "001010000011": 1,
    "001010100010": 1,
    "111001100001": 1,
    "001111000011": 1,
    "001011110001": 1,
    "001001110101": 2,
    "011111100100": 1,
    "111111011110": 2,
    "001011010101": 1,
    "100010110111": 1,
    "011100111001": 1,
    "110011000001": 1,
    "111001110101": 1,
    "001010011111": 1,
    "010001110000": 1,
    "011011011010": 1,
    "111100000010": 1,
    "111000001111": 1,
    "111101110100": 1,
    "111111000010": 1,
    "110010000110": 1,
    "011011111000": 1,
    "101100100110": 1,
    "001111011011": 1,
    "001010010000": 2,
    "011000110110": 1,
    "001000111110": 1,
    "001000110110": 1,
    "011111101101": 1,
    "001011101110": 1,
    "101010010001": 1,
    "101000111101": 2,
    "001111111100": 1,
    "001011010000": 1,
    "101011100101": 1,
    "011110000110": 1,
    "001000011011": 1,
    "001000001110": 1,
    "011000110011": 1,
    "001100110011": 1,
    "110100011010": 1,
    "100011101100": 1,
    "001100010111": 1,
    "111000101001": 1,
    "001001001001": 5,
    "011010101111": 1,
    "001010100011": 1,
    "101010010101": 1,
    "101001011111": 1,
    "011001101110": 1,
    "111010001101": 1,
    "100111011011": 1,
    "001010000101": 2,
    "001000011000": 2,
    "001010100000": 1,
    "111101000010": 1,
    "001011111110": 1,
    "110001011000": 1,
    "001110001000": 2,
    "001001101100": 1,
    "001001101001": 1,
    "101010111000": 1,
    "001000010011": 2,
    "001010001100": 1,
    "001011011100": 1,
    "101101011011": 1,
    "001001110011": 3,
    "001010111001": 1,
    "101000000010": 1,
    "001000010010": 1,
    "001010101000": 1,
    "001011010110": 1,
    "111001010011": 1,
    "011010111000": 1,
    "001011111001": 1,
    "001011000001": 1,
    "001011001101": 2,
    "001001110111": 2,
    "111101100001": 1,
    "010100000100": 1,
    "111001001101": 1,
    "011100110111": 1,
    "001100000011": 1,
    "101110100110": 1,
    "010011010101": 1,
    "101100000001": 1,
    "101111111101": 1,
    "011100110000": 1,
    "110100110110": 1,
    "101011110001": 1,
    "001101100110": 1,
    "001001010111": 1,
    "011100000000": 1,
    "001010101100": 1,
    "100000001100": 1,
    "010001001111": 1,
    "011100110100": 1,
    "001100010000": 1,
    "000001010010": 1,
    "010101011010": 1,
    "001011000010": 1,
    "001111001100": 1,
    "111011100010": 1,
    "001000011100": 1,
    "001000001101": 1,
    "001000110010": 1,
    "111110101010": 1,
    "000011110101": 1,
    "111000110111": 1,
    "011110001100": 1,
    "001000010100": 1,
    "001001100100": 1,
    "001100110000": 1,
    "001001111110": 1,
    "001101001000": 1,
    "001010000100": 1,
    "011000111101": 1,
    "111010101110": 1,
    "101001100111": 1,
    "001011000100": 1,
    "001010110001": 2,
    "000001111000": 1,
    "001111110101": 1,
    "101100110101": 1,
    "001101110011": 1,
    "011010111011": 1,
    "001001100001": 1,
    "110001011010": 1,
    "001001101101": 1,
    "011100111011": 1,
    "111001101100": 1,
    "001000011001": 1,
    "001001011011": 1,
    "001100000101": 1,
    "100011001000": 1,
    "110010010110": 1,
    "001001110010": 1,
    "001011110111": 1,
    "101010101000": 1,
    "001000110101": 1,
    "001011011011": 1,
    "001111001111": 1,
    "001010101001": 1,
    "101010010111": 1,
    "001000000000": 1,
    "001011010010": 1,
    "010001101110": 1,
    "111000101000": 1,
    "001010010001": 1,
    "111001100100": 1,
    "100011011000": 1,
    "111010000111": 1,
    "001101010001": 1,
    "010100110100": 1,
    "101101010000": 1,
    "001111000110": 1,
    "111100110001": 1,
    "001011001011": 1,
    "001101111111": 1,
    "001011011110": 1,
    "101110111010": 1,
    "111000001011": 1,
    "101011000110": 1,
    "100011100011": 1,
    "001000011010": 2,
    "001111100111": 1,
    "101011111101": 1,
    "100100011001": 1,
    "111001000011": 1,
    "010111100111": 1,
    "101000101011": 1,
    "101001101110": 1,
    "101111111100": 1,
    "101110011010": 1,
    "111000011001": 1,
    "001001010010": 1,
    "011111000010": 1,
    "001101111100": 2,
    "011100101000": 1,
    "100101001110": 1,
    "010010111100": 1,
    "111010100111": 1,
    "111010010011": 1,
    "001010110011": 1,
    "010100110000": 1,
    "011110000011": 1,
    "111001000001": 1,
    "001000101011": 1,
    "100001000000": 1,
    "100000001011": 1,
    "001011101011": 1,
    "001100101101": 1,
    "111000011100": 1,
    "101110111011": 1,
    "101110010000": 1,
    "100001001111": 1,
    "101100101110": 1
  },
  "bare_X-": {
    "111": 71,
    "100": 55,
    "101": 62,
    "110": 55,
    "001": 7,
    "010": 2,
    "011": 2,
    "000": 2
  },
  "steane_X-": {
    "111011001011100010111": 1,
    "000010001101001100100": 1,
    "000011111000101101001": 1,
    "001010111000101110010": 1,
    "110101010100101101111": 1,
    "010001101110011101010": 1,
    "110011010101010111101": 1,
    "000010001010001101000": 1,
    "010010110111000110010": 1,
    "110001100101110100110": 1,
    "000010000010000100100": 1,
    "111111100101110110011": 1,
    "010100111111011111100": 1,
    "000010000110000001010": 1,
    "000010000111000011100": 1,
    "111010111100110100011": 1,
    "000001100101000100100": 1,
    "000001011111000110010": 1,
    "000010011100111011111": 1,
    "010010001111111011101": 1,
    "101001111100110110011": 1,
    "111101000011101001001": 1,
    "011001101011001010000": 1,
    "011101111110010110001": 1,
    "100011101110111110010": 1,
    "010001110001011011101": 1,
    "010101001010011111101": 1,
    "000010010011011110000": 1,
    "010101110111101010100": 1,
    "011101010101000101010": 1,
    "101011001100100010011": 1,
    "011001111101101010010": 1,
    "110111110101000000111": 1,
    "110000111001001001011": 1,
    "011001100001111011100": 1,
    "010110000000111000001": 1,
    "110111001101000100110": 1,
    "100111111000101100010": 1,
    "110010001000001010001": 1,
    "000011101101111111000": 1,
    "000010000010011100100": 1,
    "000111101011101000010": 1,
    "010101010000100010001": 1,
    "000010011000000111011": 1,
    "111110110100000110011": 1,
    "001110010001000011100": 1,
    "000110000101111101001": 1,
    "001010001111010100111": 1,
    "110001110110100000000": 1,
    "010010011110110111000": 1,
    "110000111010100000101": 1,
    "000010110110000010111": 1,
    "001111010010111001110": 1,
    "011101111001000000000": 1,
    "011001111010110110010": 1,
    "000010001010100011011": 1,
    "001011001010100010011": 1,
    "011010001110000010101": 1,
    "111010100100111000000": 1,
    "001010010111001010101": 1,
    "001111111101111000100": 1,
    "111111001000100101110": 1,
    "101001110100001001001": 1,
    "111001011010110011100": 1,
    "000000110101001000100": 1,
    "000111011010001100000": 1,
    "000100011110010011110": 1,
    "100011101000010111001": 1,
    "001000100101100111001": 1,
    "001110100101100010100": 1,
    "001011110000011101110": 1,
    "011011001110010011100": 1,
    "011001111000100011010": 1,
    "000010001001001100110": 1,
    "000010011111000111100": 1,
    "000010011111010010111": 1,
    "100010001011111000101": 1,
    "000101011101100101100": 1,
    "000100010110010100101": 1,
    "110010000000111100110": 1,
    "101100000011100001101": 1,
    "110010001100011101100": 1,
    "111111110101101110011": 1,
    "111011110010100000100": 1,
    "000110101111000001000": 1,
    "000010011110100100100": 1,
    "000010011001101110000": 1,
    "100110000000111110100": 1,
    "010010111110010000101": 1,
    "111100011110001010110": 1,
    "000011011011010011001": 1,
    "110110110010011000101": 1,
    "001000001111000000101": 1,
    "011100100111010001110": 1,
    "000010000010000111100": 1,
    "010011100000001100101": 1,
    "000010010010010111111": 1,
    "001010001100111001110": 1,
    "010110011100010000111": 1,
    "101000110111010100000": 1,
    "111010010010110000001": 1,
    "000110001000110100001": 1,
    "100110111111110011111": 1,
    "000010010001010001101": 1,
    "001000110000100100111": 1,
    "001100101101011010000": 1,
    "100010000010000010110": 1,
    "111101000100111110111": 1,
    "000010000111111011011": 1,
    "110110110000010100111": 1,
    "101111101000100011000": 1,
    "111010000011000110000": 1,
    "001010011001110010100": 1,
    "110111000001010111111": 1,
    "001011001010110010010": 1,
    "001010110111010000111": 1,
    "000010001011000101100": 1,
    "100010000110101110001": 1,
    "101011000000010101000": 1,
    "101000111010010111000": 1,
    "110111000001001101100": 1,
    "111010111111011011111": 1,
    "000010011000001001011": 1,
    "000010001110001100010": 1,
    "111101000101001100101": 1,
    "110011100000011100101": 1,
    "011100001100100101111": 1,
    "011100010010111110110": 1,
    "111111011000000101011": 1,
    "011110011101111001010": 1,
    "000010010101011111000": 1,
    "000111001111001110000": 1,
    "000010010000010101100": 1,
    "000010010011011011111": 1,
    "010100110111001010000": 1,
    "011010011000111100101": 1,
    "001100111101101111101": 1,
    "011111110110101000101": 1,
    "000010101110000011101": 1,
    "110100101011101000111": 1,
    "001011010111010111111": 1,
    "010011001110010001100": 1,
    "000010011101011110011": 1,
    "000001000000110100010": 1,
    "000011000101111011111": 1,
    "001000010000000010010": 1,
    "010010010111011011110": 1,
    "101010000110100101010": 1,
    "010010010101110111100": 1,
    "000101010100110000000": 1,
    "010110001010010001100": 1,
    "110000111011001001000": 1,
    "010010011001001110110": 1,
    "100011100010011100100": 1,
    "000010011100011100000": 1,
    "111001001110001010100": 1,
    "011010110000111011110": 1,
    "011011100100001000100": 1,
    "000010000110111010101": 1,
    "100101011111000011100": 1,
    "110001100110101110100": 1,
    "110110100000111110111": 1,
    "100010011010011011110": 1,
    "001101000100101000111": 1,
    "001010001110100000011": 1,
    "100011110111000101111": 1,
    "100010010110110011010": 1,
    "000111110111000101101": 1,
    "010010000110101101011": 1,
    "101000110101011111010": 1,
    "011000111101100000011": 1,
    "001101111010000100111": 1,
    "010111101100000100000": 1,
    "011011011000110011101": 1,
    "010010011111101010011": 1,
    "010010001110000000010": 1,
    "110110100101010110001": 1,
    "111101111000010000010": 1,
    "111011000111111101001": 1,
    "011010000000010111111": 1,
    "000010010001010110101": 1,
    "110101100001110001001": 1,
    "000011001111011110000": 1,
    "001110011001011011110": 1,
    "000010011101011101110": 1,
    "001011000111011111110": 1,
    "011011111100100000000": 1,
    "000101111110100110100": 1,
    "011010010010010100110": 1,
    "111000001100101000101": 1,
    "100110100010010011111": 1,
    "000000000001010110111": 1,
    "000110011101010010110": 1,
    "001000000010001111101": 1,
    "010010001111010011001": 1,
    "110100001010101101011": 1,
    "000010000001001110101": 1,
    "000010011001100001100": 1,
    "011111110101010100001": 1,
    "111001000010001111001": 1,
    "111000111011001101100": 1,
    "000010011101111111111": 1,
    "101001100101001101100": 1,
    "101001101001000001111": 1,
    "010000101111100011110": 1,
    "011001100000100100001": 1,
    "001010011001001001010": 1,
    "011010001001000001101": 1,
    "011010000101111100110": 1,
    "000000111110011101100": 1,
    "000010001101010000111": 1,
    "000110010010100101100": 1,
    "110000110100111110101": 1,
    "000010011011111011011": 1,
    "000010000110000111101": 1,
    "010001011101001101100": 1,
    "011010000100101001101": 1,
    "001000100100110100101": 1,
    "000001101000100001110": 1,
    "010001110101111010111": 1,
    "101100011011110101101": 1,
    "001010000100110100000": 1,
    "010001011110101010100": 1,
    "000111011010100110001": 1,
    "000011111010110101100": 1,
    "011001101110101100010": 1,
    "000001100110000111111": 1,
    "111010000111101010110": 1,
    "111011001101001000110": 1,
    "010001110111111000000": 1,
    "111010010110101001111": 1,
    "010111110110111101110": 1,
    "110010000000000010010": 1,
    "110001000000000001001": 1,
    "000001010000100001111": 1,
    "001100111000011011000": 1,
    "010010011110111011001": 1,
    "011111001001001000101": 1,
    "000101001010110010111": 1,
    "011010000101100100100": 1,
    "000010010111111001110": 1,
    "000010010000100010111": 1,
    "011011111011011010111": 1,
    "100100000111100011110": 1,
    "000010000100010001111": 1,
    "110000000000010100001": 1,
    "000010001100011010010": 1,
    "000110110100001111100": 1,
    "001010011011101110100": 1,
    "100010001000000010010": 1,
    "111001111110100000100": 1,
    "000010011011001001111": 1,
    "101011110100010011010": 1,
    "000010000000101010110": 1,
    "110001100000001000101": 1,
    "001001110110011101100": 1
  },
  "422_Y+": {
    "001000001100": 1,
    "001100110000": 1,
    "000010101110": 1,
    "000001011110": 1,
    "000010011011": 1,
    "111101101101": 1,
    "000000010010": 1,
    "100010001010": 1,
    "011001100010": 1,
    "010001000011": 1,
    "000001000111": 1,
    "111011110101": 1,
    "000001010100": 2,
    "000010100011": 1,
    "101000101001": 1,
    "101000100000": 1,
    "110101000010": 1,
    "010010101110": 1,
    "011010111011": 1,
    "000001001101": 1,
    "000011101101": 1,
    "010011110110": 1,
    "000011101001": 2,
    "110010010010": 1,
    "001100110111": 1,
    "100010001101": 1,
    "010001100011": 1,
    "110000101001": 1,
    "000000011100": 1,
    "000110000110": 1,
    "000000010100": 2,
    "110011110010": 1,
    "010001101011": 1,
    "000000000010": 1,
    "110010101100": 1,
    "111000001110": 1,
    "000010111001": 2,
    "001101000111": 1,
    "001000010011": 1,
    "000011010001": 2,
    "111100110100": 1,
    "000001000010": 1,
    "000111111111": 1,
    "000011000101": 1,
    "000110000000": 1,
    "110101000111": 1,
    "000011111110": 2,
    "000000111011": 1,
    "001101001001": 1,
    "000011001110": 1,
    "000010100000": 2,
    "110000100101": 1,
    "101001110001": 1,
    "110001010111": 1,
    "101011100001": 1,
    "111011111000": 1,
    "010101101001": 1,
    "001001111111": 1,
    "110010111011": 1,
    "001111101101": 1,
    "000100000101": 1,
    "110100100111": 1,
    "000101101101": 1,
    "111101111001": 1,
    "011010110100": 1,
    "001101011011": 1,
    "000000010111": 2,
    "111110101010": 1,
    "110101011010": 2,
    "110111010011": 1,
    "101101111110": 1,
    "011111010011": 1,
    "000001110011": 2,
    "110100100110": 1,
    "000011100110": 1,
    "011000110001": 1,
    "000010100111": 1,
    "000110101001": 1,
    "100110100111": 1,
    "110010011011": 1,
    "000010011111": 1,
    "001001111010": 1,
    "010001101010": 1,
    "110110010001": 1,
    "001100111000": 1,
    "000010011100": 1,
    "000001110101": 1,
    "010111100111": 1,
    "000000101111": 1,
    "000010100001": 1,
    "000011000001": 1,
    "110000000101": 1,
    "101000000111": 1,
    "000011100000": 1,
    "010011100011": 1,
    "000101101000": 1,
    "001100001000": 1,
    "110001111100": 1,
    "000011111100": 1,
    "001100111001": 1,
    "001100011100": 1,
    "000011110100": 1,
    "000010001011": 1,
    "000010111111": 1,
    "000001101100": 1,
    "000010111100": 1,
    "000001110000": 1,
    "111001111100": 1,
    "000010101010": 1,
    "000010100110": 1,
    "000001010011": 2,
    "000000000000": 1,
    "000010010001": 1,
    "111010001100": 1,
    "101010101000": 1,
    "000101100011": 1,
    "100011001101": 1,
    "001110010011": 1,
    "011101010110": 1,
    "110001111011": 1,
    "010001111001": 1,
    "110101000110": 1,
    "111101111010": 1,
    "011001101100": 1,
    "000000000011": 1,
    "000000100000": 1,
    "101001000000": 1,
    "110010010111": 1,
    "010010001010": 1,
    "110000111100": 1,
    "000010010100": 1,
    "011000011000": 1,
    "000011100010": 1,
    "000110011111": 1,
    "000110110111": 1,
    "101010100001": 1,
    "100110100010": 1,
    "110110000101": 1,
    "000011010110": 1,
    "110011000110": 1,
    "000110000101": 1,
    "101101100000": 1,
    "000011011101": 1,
    "000000110110": 2,
    "110101001101": 1,
    "011110001010": 1,
    "000010010000": 1,
    "000011000110": 1,
    "110001001110": 1,
    "100110100001": 1,
    "101111000001": 1,
    "110100011110": 1,
    "000001101001": 1,
    "111011010101": 1,
    "111010000100": 1,
    "100001010111": 1,
    "000000111110": 1,
    "000000110010": 1,
    "000011111010": 1,
    "001100111111": 1,
    "000000000110": 1,
    "000010001100": 1,
    "000001011001": 2,
    "100000010111": 1,
    "000000100111": 2,
    "110100110011": 1,
    "111001010000": 1,
    "000000010110": 2,
    "000001010110": 1,
    "000001100011": 1,
    "001101010011": 1,
    "000010010111": 1,
    "001101010010": 1,
    "000000011110": 1,
    "000001100101": 1,
    "000001000011": 1,
    "000100101010": 1,
    "000001111000": 1,
    "000010011110": 1,
    "111100101101": 1,
    "000010001111": 1,
    "000000011111": 1,
    "000001011010": 1,
    "000000110001": 1,
    "100000101000": 1,
    "101111100110": 1,
    "110000000011": 1,
    "000011101100": 1,
    "001011001111": 1,
    "000010000101": 1,
    "011010011001": 1,
    "000011100101": 1,
    "000011001100": 2,
    "101000000101": 1,
    "011010101011": 1,
    "101001110000": 1,
    "001100101010": 1,
    "000011001010": 1,
    "111000011011": 1,
    "010110000001": 1,
    "000000011010": 1,
    "101111101001": 1,
    "110000001001": 1,
    "100100110111": 1,
    "101010100100": 1,
    "100001111000": 1,
    "010011111000": 1,
    "110011101101": 1,
    "011011001000": 1,
    "010010111100": 1,
    "110000010001": 1,
    "000011011100": 1,
    "100001101111": 1,
    "000100011011": 1,
    "101001111001": 1,
    "001100011010": 1,
    "100100001001": 1,
    "110100010000": 1,
    "011011111001": 1,
    "101111100011": 1,
    "101001101110": 1,
    "000100001101": 1,
    "011001010101": 1,
    "000001101000": 1,
    "111010011111": 1,
    "010000100110": 1,
    "001010111111": 1,
    "001100010010": 1,
    "011101101000": 1,
    "000011100100": 1,
    "000110011101": 1,
    "100001100101": 1,
    "000001110100": 1,
    "000000001100": 1,
    "000111000111": 1,
    "111101011011": 1,
    "110001101101": 1,
    "010100110101": 1,
    "010011001111": 1,
    "111000001011": 1
  },
  "422_Z+": {
    "010000000000": 1,
    "110000101101": 2,
    "000001110101": 1,
    "000010001111": 2,
    "000011010011": 1,
    "000011110011": 2,
    "000000100010": 1,
    "000000010100": 3,
    "000001110000": 1,
    "000000111111": 2,
    "000000111001": 1,
    "000010010110": 1,
    "000010010011": 1,
    "000000100111": 1,
    "011110101100": 1,
    "000010111111": 1,
    "011100110100": 1,
    "000011111101": 1,
    "100011110010": 1,
    "000001100001": 1,
    "000000101000": 1,
    "011000000100": 1,
    "110000111101": 1,
    "111110101111": 1,
    "010000110001": 1,
    "000001000100": 2,
    "000010100011": 1,
    "000101101100": 1,
    "000011010110": 1,
    "001100100010": 1,
    "000010001010": 1,
    "000000011110": 1,
    "000011110111": 1,
    "000001011001": 1,
    "000010010001": 1,
    "110100010001": 1,
    "000111100001": 1,
    "100101110110": 1,
    "000001000011": 1,
    "000001101101": 3,
    "011111011001": 1,
    "000011110110": 1,
    "110000101111": 1,
    "000011001000": 2,
    "000100010011": 1,
    "000111110001": 1,
    "000010110011": 2,
    "000111011111": 1,
    "001010111010": 1,
    "000011110000": 1,
    "010101000100": 1,
    "110010101000": 1,
    "000010111000": 1,
    "010101100100": 1,
    "110110111010": 1,
    "000001011110": 1,
    "000011100001": 2,
    "010010101100": 1,
    "011100000110": 1,
    "110110110110": 1,
    "010110110000": 1,
    "110101110001": 1,
    "011110110000": 1,
    "011010111100": 1,
    "000001000110": 1,
    "010100010001": 1,
    "101101111111": 1,
    "000100011011": 1,
    "000010001000": 1,
    "000100101011": 1,
    "000000100000": 1,
    "001110100100": 1,
    "000001001100": 1,
    "110000001000": 1,
    "011000110111": 1,
    "000011000010": 1,
    "011110010001": 1,
    "000101100101": 1,
    "110100010101": 1,
    "000011101111": 1,
    "001110011001": 1,
    "010011111000": 1,
    "000000000111": 1,
    "000000000100": 2,
    "000010101011": 1,
    "000110000001": 2,
    "100011100110": 1,
    "000000101110": 1,
    "000010110001": 1,
    "110000011110": 1,
    "000000010011": 1,
    "101110101111": 1,
    "001101001000": 1,
    "000001100010": 1,
    "000100000110": 1,
    "000000010101": 1,
    "000010000111": 1,
    "000011000001": 1,
    "000011011100": 1,
    "000001001110": 2,
    "001001110100": 1,
    "000110111110": 1,
    "100110111110": 1,
    "110100001110": 1,
    "011100000011": 1,
    "000100111100": 1,
    "000000110001": 1,
    "110000110000": 1,
    "110101111001": 1,
    "000010010100": 1,
    "110000101000": 1,
    "101011101100": 1,
    "000101101101": 1,
    "000001111101": 1,
    "000010111100": 1,
    "011110001011": 1,
    "110100010111": 1,
    "000010100111": 1,
    "101100010011": 1,
    "011101010010": 1,
    "101000010010": 1,
    "110010000011": 1,
    "110000000000": 1,
    "110111010000": 1,
    "000111000000": 1,
    "110110100011": 1,
    "000100110111": 1,
    "001010110110": 1,
    "010000001011": 1,
    "010010100010": 1,
    "000010011001": 1,
    "000000111100": 1,
    "100000001000": 1,
    "110010010110": 1,
    "100010110001": 1,
    "000001101100": 1,
    "110000111000": 1,
    "010110010110": 1,
    "110001110001": 1,
    "111101001101": 1,
    "000001001010": 1,
    "010001000101": 2,
    "100001100110": 1,
    "110100001000": 1,
    "000000100110": 2,
    "100001111101": 1,
    "110101101101": 1,
    "000010111010": 1,
    "101001110100": 1,
    "000010011010": 1,
    "010000110100": 1,
    "000110010001": 1,
    "101001101000": 1,
    "000001000000": 1,
    "100011001101": 1,
    "000011101001": 2,
    "110000011001": 1,
    "001100101000": 1,
    "000111001011": 1,
    "000010010010": 1,
    "101000110101": 1,
    "000101001011": 1,
    "000100110001": 1,
    "110110010100": 1,
    "100110100111": 1,
    "100010110010": 1,
    "100001000001": 1,
    "000000000000": 1,
    "000011111001": 1,
    "100000000101": 1,
    "000110000010": 1,
    "000010000001": 1,
    "101000011011": 1,
    "110000010111": 1,
    "000000010001": 1,
    "100001101101": 1,
    "101100100110": 1,
    "100101000100": 1,
    "100000100110": 1,
    "101000010110": 1,
    "000010010101": 1,
    "000010000011": 2,
    "000010100110": 1,
    "010000101110": 1,
    "110010101010": 1,
    "000010110100": 1,
    "000100111110": 1,
    "000011101011": 1,
    "110001000010": 1,
    "000000101100": 1,
    "110010100001": 1,
    "110001010110": 1,
    "110011111000": 1,
    "111100101001": 1,
    "110000110111": 1,
    "111101011111": 1,
    "000001110011": 1,
    "000000110010": 1,
    "000001100111": 1,
    "000111000010": 2,
    "010111011010": 1,
    "111010001000": 1,
    "000000001101": 1,
    "000110100000": 1,
    "100000011011": 1,
    "110100000101": 1,
    "110010010000": 1,
    "100111110000": 1,
    "110010010010": 1,
    "100010100110": 1,
    "000011010100": 1,
    "001010000110": 1,
    "101101110000": 1,
    "010010110100": 1,
    "000011011110": 1,
    "001011010011": 1,
    "010000101111": 1,
    "100010111001": 1,
    "000100100101": 1,
    "011010000000": 1,
    "110000101110": 1,
    "000001111110": 1,
    "110111000111": 1,
    "000001001101": 1,
    "000100011000": 1,
    "000000101001": 1,
    "010111100111": 1,
    "010011101101": 1,
    "011001000010": 1,
    "000000110111": 1,
    "000010100010": 1,
    "000000010000": 1,
    "110010010001": 1,
    "111100000100": 1,
    "110100101000": 1,
    "111110010111": 1
  },
  "bare_Y-": {
    "111": 62,
    "101": 52,
    "100": 68,
    "110": 53,
    "000": 6,
    "010": 9,
    "001": 5,
    "011": 1
  },
  "bare_Y+": {
    "011": 55,
    "001": 62,
    "111": 4,
    "000": 62,
    "010": 61,
    "101": 5,
    "110": 6,
    "100": 1
  },
  "bare_X+": {
    "000": 67,
    "011": 67,
    "010": 61,
    "001": 49,
    "110": 3,
    "101": 3,
    "100": 4,
    "111": 2
  },
  "steane_Y-": {
    "101010011110010111100": 1,
    "000010001111101010110": 1,
    "010111100111000001111": 1,
    "010111110110000001100": 1,
    "000011011000000111010": 1,
    "001100100111000110111": 1,
    "001011110000111011101": 1,
    "000010011011000101111": 1,
    "001100001110001001111": 1,
    "001011010110000000011": 1,
    "011010111000000000010": 1,
    "111110000101100011110": 1,
    "101011010010010100011": 1,
    "101110111000110001011": 1,
    "111110110111110001000": 1,
    "010000111100100011100": 1,
    "110111101010010011011": 1,
    "010011010001100100001": 1,
    "011001110010011001100": 1,
    "001111000010001110000": 1,
    "000111011010100010111": 1,
    "000010000111110110101": 1,
    "010000000011101100011": 1,
    "100010011011011011110": 1,
    "000010110000000110000": 1,
    "001010000100000010011": 1,
    "011101100100010111111": 1,
    "000010001100100001001": 1,
    "010110011110111001111": 1,
    "001000000101010110100": 1,
    "111000000001000111011": 1,
    "011001001110010000000": 1,
    "000001101000001000100": 1,
    "101000101101010000011": 1,
    "010000010110011110101": 1,
    "000000111111101110100": 1,
    "101010010000000110000": 1,
    "110001100100001010001": 1,
    "100011101011101111010": 1,
    "011101001101101101111": 1,
    "011000010100111001110": 1,
    "011000000011101100000": 1,
    "001001000010101101100": 1,
    "110110100111111100000": 1,
    "010000011111111111010": 1,
    "011010110100100000001": 1,
    "001010011110001001100": 1,
    "000000100000001111011": 1,
    "011110100100001110111": 1,
    "000010011111000111100": 1,
    "000010010010101111010": 1,
    "111011001001111111100": 1,
    "001000000111000111010": 1,
    "000011110100010110111": 1,
    "000011111001000111100": 1,
    "110010010000001110000": 1,
    "000011011010001011010": 1,
    "110101110110110100010": 1,
    "101001011100101011000": 1,
    "000010011010011001011": 1,
    "010000100111010101101": 1,
    "111001011001011001110": 1,
    "100000011111001011000": 1,
    "110010011011011100100": 1,
    "010000011010111010010": 1,
    "100111100011011000001": 1,
    "111001000010001111100": 1,
    "011000001001001111000": 1,
    "001100101111000010000": 1,
    "111100111001111100010": 1,
    "000010010000101110110": 1,
    "110000100101110111110": 1,
    "110100100001111010010": 1,
    "111000110000100010101": 1,
    "011000001010011010001": 1,
    "110000001100010011100": 1,
    "100010101001101000100": 1,
    "011000011101000100000": 1,
    "000010010011001100001": 1,
    "100010001110000000110": 1,
    "000011101111000111100": 1,
    "001001010110001111100": 1,
    "001101001010110101101": 1,
    "100000011000011110111": 1,
    "000010011110000000100": 1,
    "000010010010010010100": 1,
    "101001010011001110001": 1,
    "100100110001100101001": 1,
    "011000110000101001001": 1,
    "000010010110100000001": 1,
    "000000110000110101111": 1,
    "011000010010101100110": 1,
    "000010000001001010000": 1,
    "000010011000001011100": 1,
    "110001100111100011111": 1,
    "000100000101010100110": 1,
    "001000000011110100111": 1,
    "111010010101100011001": 1,
    "001111001001100111010": 1,
    "010001000111100011011": 1,
    "000010010101011010110": 1,
    "000010001100011101010": 1,
    "011010011000100101001": 1,
    "001000001110101111011": 1,
    "001010011000101001110": 1,
    "010001110000010001001": 1,
    "000010001011011001000": 1,
    "011000010011101101110": 1,
    "010010110110111001100": 1,
    "110011001001010010001": 1,
    "101000010111100001100": 1,
    "010011010011000101001": 1,
    "101000001010011110111": 1,
    "110011011000000111001": 1,
    "111000001100100000001": 1,
    "100000000000100101101": 1,
    "010110000101011100000": 1,
    "001101101100101010010": 1,
    "000010000110011000111": 1,
    "101000000001010100100": 1,
    "001010001001000110110": 1,
    "101100010101111011011": 1,
    "110111001110100101000": 1,
    "011010011001100010110": 1,
    "011011101111101101101": 1,
    "011011100010111100110": 1,
    "110000100111100110111": 1,
    "000110110001101101001": 1,
    "010001110110000110010": 1,
    "110110101111101111101": 1,
    "011000001011000010111": 1,
    "000000101010010110101": 1,
    "111101100110011001101": 1,
    "000010001100010000100": 1,
    "000011011010100000101": 1,
    "100000010010001011111": 1,
    "101011110111101100101": 1,
    "010000011011000000000": 1,
    "000100001010000000001": 1,
    "000010001111110001001": 1,
    "110101101011101110100": 1,
    "100010000100111110000": 1,
    "011000011110010111001": 1,
    "011100010001011111110": 1,
    "010111100011001001010": 1,
    "000100110110001110010": 1,
    "000100100000110111001": 1,
    "111100001000010111011": 1,
    "000101011111110011111": 1,
    "000010101100011101001": 1,
    "101001010000000101010": 1,
    "011000000001000111001": 1,
    "000110011011100110010": 1,
    "110010001110001110000": 1,
    "010110000000001100010": 1,
    "001011011100101011110": 1,
    "000010001100101101001": 1,
    "000010010111010100100": 1,
    "011000000110010110011": 1,
    "011011111111101000111": 1,
    "000100101100111110011": 1,
    "111011110001100011001": 1,
    "101111001011000011001": 1,
    "001100110101000010111": 1,
    "101000000110110100011": 1,
    "100101111100110001111": 1,
    "111001110100011000101": 1,
    "100010101000100001011": 1,
    "101101011010001000001": 1,
    "000111100000000101111": 1,
    "000111101000010011101": 1,
    "011000011001101100111": 1,
    "111001010101101000101": 1,
    "000010001011010100011": 1,
    "101011101100011010000": 1,
    "000010011110111101001": 1,
    "011101011000000011111": 1,
    "100111110110100111011": 1,
    "110011011010110100001": 1,
    "011101101011110110001": 1,
    "000111000111001001101": 1,
    "110000101000011010001": 1,
    "110000111011100011000": 1,
    "000011011000010001100": 1,
    "011011001111010110011": 1,
    "111000001000101100010": 1,
    "011100111001000111111": 1,
    "000101010000100000011": 1,
    "001000110000111101001": 1,
    "001010000111100101111": 1,
    "110100010010100010101": 1,
    "011011111111100101101": 1,
    "101000000111111100100": 1,
    "001100101100000100010": 1,
    "000010000001111111011": 1,
    "100010011010111000111": 1,
    "010011111011101101010": 1,
    "100010011100101001101": 1,
    "101000111010101110100": 1,
    "011000001010001111110": 1,
    "100111011110110001100": 1,
    "000011100110101001010": 1,
    "000010010001100110010": 1,
    "100000001110111000001": 1,
    "111001111010010111110": 1,
    "000011111001110111101": 1,
    "000010010110000100001": 1,
    "011001100101100011111": 1,
    "001100110001101001101": 1,
    "000111111011100001010": 1,
    "001011011110001111101": 1,
    "000010011001011001100": 1,
    "000010011101111011110": 1,
    "001000011010010011001": 1,
    "000011100011110101100": 1,
    "110001001011000100010": 1,
    "001101011011000011111": 1,
    "101101011001111001010": 1,
    "011000001101010010100": 1,
    "101001010001010000101": 1,
    "000010001100000110110": 1,
    "111110000000010111100": 1,
    "000000010000101001100": 1,
    "110000001011011010010": 1,
    "101101001010101011110": 1,
    "110010011011111100100": 1,
    "000111000010111001100": 1,
    "010001110111100111100": 1,
    "000100001101001100100": 1,
    "100001001111010000101": 1,
    "000010001001010101111": 1,
    "010001110111100101101": 1,
    "000000110101100100111": 1,
    "111010111000011010011": 1,
    "110011100100101010000": 1,
    "001001111001011110011": 1,
    "010010010010010011011": 1,
    "011001100100011001101": 1,
    "010010101000111000011": 1,
    "110011001100010000100": 1,
    "010100011011100000100": 1,
    "000100101011010100100": 1,
    "000110001010100001110": 1,
    "011000011011101110010": 1,
    "000010001101000011110": 1,
    "110000000110011010111": 1,
    "000001110111111001100": 1,
    "001100110100101000101": 1,
    "111111100101000111110": 1,
    "110001101010010100110": 1,
    "000011110101001110100": 1,
    "011000011110011001010": 1,
    "000010000010000101000": 1,
    "110000110011111110010": 1,
    "011000000000000110100": 1,
    "001100011001011101011": 1
  },
  "422_X-": {
    "101001101111": 1,
    "001111101000": 1,
    "111010110101": 1,
    "001010011111": 2,
    "001000011101": 1,
    "010000101001": 1,
    "011011100111": 1,
    "000110011000": 1,
    "001000010000": 1,
    "001001111000": 2,
    "101001010000": 1,
    "111001001111": 1,
    "111000111100": 1,
    "101011010110": 1,
    "101110100110": 1,
    "001011010000": 3,
    "111110011011": 1,
    "001011011010": 1,
    "001000110110": 1,
    "111111110001": 1,
    "111010000100": 1,
    "000010001000": 1,
    "110010101011": 1,
    "001001011000": 2,
    "001011100100": 2,
    "100111010111": 1,
    "011010110110": 1,
    "000100111011": 1,
    "001001000011": 1,
    "001111100110": 1,
    "001000011000": 1,
    "001000100000": 2,
    "011010010011": 1,
    "001000110000": 1,
    "001011011100": 2,
    "010000001100": 1,
    "001000101110": 1,
    "001011011000": 1,
    "001010100110": 1,
    "001001100001": 2,
    "001000111100": 1,
    "001001001101": 2,
    "111010000101": 1,
    "001010100011": 1,
    "001010100001": 2,
    "000111010010": 1,
    "001011100111": 2,
    "001001100000": 1,
    "111000010100": 1,
    "101110101011": 1,
    "011101100100": 1,
    "011010000101": 1,
    "101111000101": 1,
    "011101010000": 1,
    "001101110010": 2,
    "100101100101": 1,
    "100001001000": 1,
    "101010000000": 1,
    "000100110111": 1,
    "011111011101": 1,
    "100000100011": 1,
    "011010111010": 1,
    "001100111110": 1,
    "010011100110": 1,
    "001111011101": 1,
    "011100000001": 1,
    "110000011111": 1,
    "100111101011": 1,
    "001011001000": 1,
    "001111111110": 1,
    "001000111111": 2,
    "100110110001": 1,
    "110010001010": 1,
    "001010110010": 1,
    "111000001101": 1,
    "001011100011": 1,
    "011101001001": 1,
    "000010001011": 1,
    "001100100011": 1,
    "010111010001": 1,
    "011110111110": 1,
    "001000000010": 1,
    "110000110111": 1,
    "000111011110": 1,
    "111001101000": 1,
    "111000100001": 1,
    "001001101001": 1,
    "010001011000": 1,
    "011110111011": 1,
    "001010111111": 1,
    "000111111001": 1,
    "001001110001": 2,
    "011101100000": 1,
    "101011001111": 1,
    "100001011110": 1,
    "101001011111": 1,
    "101011101001": 1,
    "001010001000": 1,
    "011000101100": 1,
    "111111101100": 1,
    "100101001110": 1,
    "100000010010": 1,
    "001001001100": 1,
    "001000011011": 1,
    "111100001001": 1,
    "010111000101": 1,
    "001011001001": 2,
    "101100001100": 1,
    "000101100000": 1,
    "001011010111": 2,
    "001000110101": 1,
    "000110111100": 1,
    "011000110100": 1,
    "001100101111": 1,
    "001000000101": 1,
    "111011010101": 1,
    "001100110011": 1,
    "110011000101": 1,
    "001011111011": 2,
    "111100100101": 1,
    "011000010011": 1,
    "100010111101": 1,
    "001110101111": 1,
    "001001100011": 1,
    "101001000100": 1,
    "101010100010": 1,
    "001001110100": 2,
    "011011011010": 1,
    "001000101010": 2,
    "001010100000": 1,
    "001011010101": 1,
    "001011101011": 1,
    "001100101010": 1,
    "111001111001": 1,
    "110110010100": 1,
    "001101000101": 1,
    "001001100100": 2,
    "101010111100": 1,
    "010010110011": 1,
    "010001100101": 1,
    "001010101011": 1,
    "001011110001": 1,
    "111011001111": 1,
    "111001100000": 1,
    "001101111101": 1,
    "001010111001": 1,
    "001001111101": 1,
    "001011110010": 1,
    "001011010011": 1,
    "001001010110": 1,
    "000100100011": 1,
    "101100010010": 1,
    "001001100101": 1,
    "001010101001": 1,
    "001000010001": 1,
    "001010110001": 2,
    "000001110111": 1,
    "010001000001": 1,
    "001110010010": 1,
    "001000010110": 1,
    "100100110001": 1,
    "111001000111": 1,
    "111011100100": 1,
    "000100100100": 1,
    "001000011001": 1,
    "001000100101": 2,
    "001100010101": 1,
    "001001111110": 2,
    "001111001111": 1,
    "011000110111": 1,
    "111010110110": 1,
    "001010011001": 2,
    "001010010011": 1,
    "111011100001": 1,
    "001110011111": 1,
    "001000001010": 1,
    "001010001100": 1,
    "000110111011": 1,
    "000111100100": 1,
    "001010001011": 2,
    "000011011100": 1,
    "001100001000": 1,
    "111011110000": 1,
    "001011000110": 1,
    "001010010110": 1,
    "001011010001": 1,
    "001001001001": 1,
    "100111000000": 1,
    "010001000111": 1,
    "110000000100": 1,
    "001011001011": 2,
    "001011100000": 1,
    "001010000010": 1,
    "001101010111": 1,
    "111000111001": 1,
    "000100110110": 1,
    "100001011101": 1,
    "111001110010": 1,
    "111100000000": 1,
    "101010100111": 1,
    "101100000101": 1,
    "001010101101": 1,
    "111101110101": 1,
    "000101110110": 1,
    "001001001010": 1,
    "001010110111": 1,
    "000100011101": 1,
    "111000001100": 1,
    "100011111010": 1,
    "001011010010": 1,
    "111011110101": 1,
    "001001010101": 1,
    "011010101000": 1,
    "010010001000": 1,
    "110000011001": 1,
    "101000010110": 1,
    "011000110011": 1,
    "001011011101": 1,
    "001001101111": 1,
    "101010110111": 1,
    "001001010010": 1,
    "001001000111": 1,
    "001010010010": 1,
    "001110001110": 1,
    "001001010011": 1,
    "001011110111": 1,
    "010100011011": 1,
    "001110000111": 1,
    "101100100011": 1
  },
  "steane_Z+": {
    "110000011010101010101": 1,
    "000100110001011010000": 1,
    "011010010101101001100": 1,
    "100000001101000000101": 1,
    "000000001110101011111": 1,
    "111000101010001000011": 1,
    "011110010011101101111": 1,
    "110001101001110010100": 1,
    "111100000010010110111": 1,
    "000000101001101110001": 1,
    "011010000101000001001": 1,
    "011010001100100100101": 1,
    "000000111111110100111": 1,
    "100101110010001100111": 1,
    "001000111100010110011": 1,
    "010011100110100100001": 1,
    "101000001010101101110": 1,
    "011010010110101011001": 1,
    "000001010101111010000": 1,
    "011001010100111111101": 1,
    "011001100110010101001": 1,
    "101101010110100001000": 1,
    "001010001101111101000": 1,
    "000000011111001100111": 1,
    "101110101100101010110": 1,
    "000000000100001100011": 1,
    "001001010101011001100": 1,
    "111000011110000000110": 1,
    "100101101000101001011": 1,
    "110001110111100101101": 1,
    "011001001000011010101": 1,
    "100000011100100101000": 1,
    "010000000110001010110": 1,
    "000000011111100110010": 1,
    "000001110001111011111": 1,
    "000000001111110000000": 1,
    "101011011111001101011": 1,
    "011010000011000000000": 1,
    "011010010110101010111": 1,
    "011010010110110001101": 1,
    "000010110110001001001": 1,
    "000000000001001111101": 1,
    "011010010001110110111": 1,
    "010010110000101101100": 1,
    "010101011010100101010": 1,
    "100000110010110000110": 1,
    "000000000101101010000": 1,
    "001000011000101011010": 1,
    "101011110000000100111": 1,
    "001101011111000110010": 1,
    "110001001010010000001": 1,
    "001011100100101110110": 1,
    "111010101111110001000": 1,
    "000000010100110010100": 1,
    "011010011101110010000": 1,
    "010001001101000010100": 1,
    "100011110010010101100": 1,
    "000001011100000000000": 1,
    "011011111001001111000": 1,
    "001010101001111010001": 1,
    "001000001111001010111": 1,
    "110000010001000110011": 1,
    "000011100010010101100": 1,
    "101000000000110100111": 1,
    "000001101011011111010": 1,
    "011100010011100101000": 1,
    "101010011101111000101": 1,
    "110011000111110100001": 1,
    "010000011101010101100": 1,
    "111111111000001001101": 1,
    "101111100100110011001": 1,
    "010111001011001101100": 1,
    "011010011000010001110": 1,
    "110001000011110010110": 1,
    "100000111011010000110": 1,
    "101010010011001111001": 1,
    "011011000010010000101": 1,
    "000000011110000101101": 1,
    "101011110000011100011": 1,
    "110011111110000100110": 1,
    "111010000010110000001": 1,
    "011010001111100111110": 1,
    "001110000001111000100": 1,
    "000100101011100001010": 1,
    "110010000101111001110": 1,
    "000101111011111010111": 1,
    "001010100000110111001": 1,
    "111110010101000110111": 1,
    "000000010100000000101": 1,
    "001000010011101101111": 1,
    "000111000010001110000": 1,
    "100001111101011100000": 1,
    "110100001110100010010": 1,
    "100101000101011001100": 1,
    "010000011101101100111": 1,
    "010000001101101110111": 1,
    "000001011001011100010": 1,
    "011111001101111000011": 1,
    "101001111110001100001": 1,
    "100111110010111010001": 1,
    "011010001010011010011": 1,
    "111000001001011101101": 1,
    "011111001011100100111": 1,
    "000000010001001000111": 1,
    "000101000010010110010": 1,
    "111000111111100011001": 1,
    "100011000000110111100": 1,
    "100001101100100000011": 1,
    "101111100100100100100": 1,
    "010000010011001011001": 1,
    "000000010011000001011": 1,
    "010010101011101011000": 1,
    "001111000001000110010": 1,
    "111011010110101011001": 1,
    "100001010111100010010": 1,
    "010000011101111101100": 1,
    "101011010101101101010": 1,
    "111010101110001101001": 1,
    "111100100011111101000": 1,
    "000000000011011001110": 1,
    "100011010000100110101": 1,
    "010100000100010110011": 1,
    "000011110110101100000": 1,
    "010000011011011000110": 1,
    "000111011001000000100": 1,
    "101011100111000011001": 1,
    "001001100001111010100": 1,
    "000101100100010011001": 1,
    "101001011000000011111": 1,
    "011100111011111111101": 1,
    "001000000110001110001": 1,
    "100101111111100111101": 1,
    "101011011111111010110": 1,
    "000100111101101010110": 1,
    "000000010011100101110": 1,
    "000000001000001111011": 1,
    "011010011101011101101": 1,
    "000100000001011100110": 1,
    "101011000110000101010": 1,
    "010101011100010011011": 1,
    "000010000000000000101": 1,
    "001010000010010000100": 1,
    "010001001110010001010": 1,
    "010111110000101110110": 1,
    "101010000100000010011": 1,
    "111110001010011001010": 1,
    "000000011110000110101": 1,
    "011011100010111001101": 1,
    "000000011111100100111": 1,
    "100001100001100100010": 1,
    "000011011100001111111": 1,
    "100101011011001110000": 1,
    "010010101011000110010": 1,
    "011100110010001001110": 1,
    "100100110000010100000": 1,
    "011011001000011101010": 1,
    "010010000001100101110": 1,
    "000000110010000111110": 1,
    "101101000001000100011": 1,
    "000001011011001011010": 1,
    "100000111111110011010": 1,
    "000000011010011010101": 1,
    "000010000110010000000": 1,
    "001000000000011000110": 1,
    "101011000100010100100": 1,
    "001001100001101000100": 1,
    "010101010000100001110": 1,
    "000001011111100010010": 1,
    "000000000001010001110": 1,
    "000001011000001010100": 1,
    "001101101111100001011": 1,
    "000001101110100011001": 1,
    "100001010011111110010": 1,
    "001000011010001111101": 1,
    "100101111100010111001": 1,
    "101000000011001000001": 1,
    "011110000010110011111": 1,
    "000000011011111110011": 1,
    "100000010011100100101": 1,
    "101110110100101110100": 1,
    "001000010000111001001": 1,
    "111001101111010011000": 1,
    "000000000010100011000": 1,
    "000101100011110001111": 1,
    "100001110011111101110": 1,
    "110010011110011011111": 1,
    "010101000000001101000": 1,
    "000000001000000101000": 1,
    "101011001000101100100": 1,
    "000000001001011001000": 1,
    "100000001010111101101": 1,
    "100000010010010100011": 1,
    "000000100101010111111": 1,
    "011001010111000011001": 1,
    "100001111111001110010": 1,
    "101010100111000001010": 1,
    "010100110000111110001": 1,
    "010011101110001111010": 1,
    "000000111010000101110": 1,
    "101010111011110010110": 1,
    "000100000110100010011": 1,
    "000101100011111110111": 1,
    "000000001000001110011": 1,
    "001010010111110101100": 1,
    "011011111101000101010": 1,
    "011011111110111110001": 1,
    "000000010100101001010": 1,
    "111011110111110010111": 1,
    "010000011011001000110": 1,
    "101010010110100110010": 1,
    "000000001011100011110": 1,
    "101100111111001101100": 1,
    "011010110010000011111": 1,
    "100010101101100001100": 1,
    "011011100010100110101": 1,
    "110101000001111110111": 1,
    "011011010011010011000": 1,
    "111000011001111101111": 1,
    "000000010011001010100": 1,
    "100101101010111001101": 1,
    "000001111000011110010": 1,
    "010000011010100010110": 1,
    "100000001100111011111": 1,
    "010001010010111110101": 1,
    "011001011100110110000": 1,
    "010100011101111011100": 1,
    "111100100000100011100": 1,
    "111011110001100100101": 1,
    "011011101101110111001": 1,
    "000110110101101110000": 1,
    "000000001100100100000": 1,
    "110111010110101000001": 1,
    "001000100010011101100": 1,
    "101010001110111001010": 1,
    "111010000011010000110": 1,
    "000000001110100100001": 1,
    "101000111010011011000": 1,
    "000100110011011100100": 1,
    "010000000010011000111": 1,
    "000110111100110101111": 1,
    "001110011001110100110": 1,
    "000000010111110010111": 1,
    "000000011101010100000": 1,
    "001000111011110111101": 1,
    "100100111001100100011": 1,
    "000000011110111001011": 1,
    "110100000000001101001": 1,
    "101011010000000011111": 1,
    "000110011101001000111": 1,
    "100101111011101010000": 1,
    "010001001001000010001": 1,
    "110111110100000110010": 1,
    "011011010011110100001": 1,
    "111010011010100000000": 1,
    "000001111101000101001": 1,
    "110100000101101000000": 1
  },
  "422_Y-": {
    "011000100001": 1,
    "001010011111": 2,
    "000110010101": 1,
    "001001110111": 1,
    "101001011000": 1,
    "111000011101": 1,
    "001110000100": 1,
    "001001011000": 1,
    "101001101110": 1,
    "001000101110": 2,
    "001011011001": 2,
    "001000011000": 1,
    "111111000010": 1,
    "001001001111": 1,
    "001000111111": 1,
    "000100010101": 1,
    "000100001001": 1,
    "001011000110": 1,
    "100110000000": 1,
    "001010110011": 1,
    "010000010010": 1,
    "001000101001": 1,
    "000101001111": 1,
    "001001101110": 1,
    "100111111010": 1,
    "001000110011": 1,
    "001011000100": 1,
    "001111001111": 1,
    "000010100001": 1,
    "111111111001": 1,
    "011111111110": 1,
    "001001010010": 2,
    "001000010011": 1,
    "100101101010": 1,
    "001000000011": 1,
    "000101001000": 2,
    "011011010011": 1,
    "001010010101": 1,
    "100010001111": 1,
    "001001000100": 1,
    "111010000000": 1,
    "000111011110": 1,
    "000000101101": 1,
    "011100111010": 1,
    "111011001000": 1,
    "000101000001": 1,
    "011011100100": 1,
    "101011101110": 2,
    "001001001010": 3,
    "111001100100": 1,
    "001000100011": 1,
    "100001101000": 1,
    "101110100010": 1,
    "001101011001": 1,
    "010010001100": 1,
    "000110001111": 1,
    "111101101011": 1,
    "000011010000": 1,
    "101111110101": 1,
    "111001000011": 1,
    "011011011010": 1,
    "100010010111": 1,
    "001000110000": 1,
    "100111011110": 1,
    "100101000011": 1,
    "000011000010": 1,
    "001111110001": 1,
    "000011000100": 1,
    "011101101000": 1,
    "111000111110": 1,
    "000101100000": 1,
    "011000011101": 1,
    "110010010011": 1,
    "001100001100": 1,
    "000000001011": 1,
    "101000100101": 1,
    "010100011101": 1,
    "111011100011": 1,
    "110001100011": 1,
    "011010101100": 1,
    "111101101001": 1,
    "001101110111": 1,
    "100110100001": 1,
    "101000000100": 1,
    "010111001101": 1,
    "110110100011": 1,
    "001001000110": 1,
    "111011010001": 1,
    "100110111001": 1,
    "001011011011": 2,
    "100101010010": 1,
    "000101000101": 1,
    "001000001011": 1,
    "101011111011": 2,
    "001001100110": 1,
    "010110101001": 1,
    "001010101011": 3,
    "001100001110": 1,
    "000011101001": 1,
    "110110000100": 1,
    "110101011010": 1,
    "001000111010": 1,
    "001111000110": 1,
    "011011100111": 1,
    "111010001001": 1,
    "111010110101": 1,
    "011110000111": 1,
    "110101000011": 1,
    "111110011001": 1,
    "100011101110": 1,
    "111001100111": 1,
    "111000101111": 1,
    "001000000000": 1,
    "001010011101": 1,
    "001011110010": 1,
    "110001100100": 1,
    "011110000001": 1,
    "110111001110": 1,
    "001111000100": 1,
    "101010000010": 1,
    "010110101101": 1,
    "100110001000": 1,
    "001001100011": 1,
    "110111001001": 1,
    "110011111110": 1,
    "111010010000": 1,
    "111111101111": 1,
    "101111100111": 1,
    "001001110010": 1,
    "111010101000": 1,
    "000001100000": 1,
    "001011000011": 1,
    "000100100101": 1,
    "001010111111": 1,
    "001000000101": 1,
    "111011110101": 1,
    "001011011010": 1,
    "001010011011": 1,
    "001010110010": 1,
    "111000010110": 1,
    "001001000101": 3,
    "101000111001": 1,
    "001000101011": 1,
    "001010000100": 2,
    "100000101000": 1,
    "100011111110": 1,
    "111010101010": 1,
    "101101010001": 1,
    "001001111110": 1,
    "001011001111": 1,
    "001001110001": 1,
    "001011110111": 1,
    "010110101000": 1,
    "001010100100": 1,
    "111010000110": 1,
    "011111011111": 1,
    "001000001000": 1,
    "001110101000": 1,
    "000011000000": 1,
    "111001000111": 1,
    "111111000001": 1,
    "011000000010": 1,
    "001011010000": 2,
    "001010110110": 2,
    "000010111111": 1,
    "001000100101": 1,
    "000110001011": 1,
    "001010001101": 1,
    "111110001001": 1,
    "111001110011": 1,
    "101101100110": 1,
    "001000011010": 1,
    "100101011001": 1,
    "001011010101": 1,
    "001011100000": 1,
    "010101100001": 1,
    "010100101000": 1,
    "001010010100": 1,
    "101001111111": 1,
    "111001001101": 1,
    "001011100010": 1,
    "001001001110": 1,
    "100000010100": 1,
    "001001100000": 1,
    "011001110001": 1,
    "111010101110": 1,
    "010010100000": 1,
    "000110000111": 1,
    "111010000111": 1,
    "001000100111": 1,
    "101111001011": 1,
    "001001000001": 1,
    "011101010000": 1,
    "110110101100": 1,
    "001001110011": 1,
    "001011000000": 1,
    "000001010010": 1,
    "000011110001": 1,
    "111010000011": 1,
    "001001011110": 1,
    "111010101100": 1,
    "001011011000": 1,
    "010111101010": 1,
    "111100010110": 1,
    "011010010000": 1,
    "011011000100": 1,
    "001011110110": 1,
    "110010011000": 1,
    "001001101101": 1,
    "001011000010": 1,
    "011011101000": 1,
    "000000101010": 1,
    "110001000000": 1,
    "101111111000": 1,
    "001010000010": 1,
    "111100101010": 1,
    "001000100000": 1,
    "101000010101": 1,
    "001010100001": 1,
    "000110110001": 1,
    "100000000111": 1,
    "111001011001": 1,
    "011011010100": 1,
    "011000001101": 1,
    "101001101100": 1,
    "001000001111": 1,
    "011010100110": 1,
    "101010000000": 1,
    "011001110110": 1,
    "001101011011": 1,
    "010000110110": 1,
    "100001100110": 1,
    "010101101001": 1,
    "001101110001": 1,
    "000100110100": 1,
    "001010000011": 1,
    "111101011101": 1,
    "000011010001": 1,
    "001011010011": 1
  },
  "steane_X+": {
    "001000010000001100011": 1,
    "011101110001010100011": 1,
    "011000010010111010110": 1,
    "011000010110111101011": 1,
    "110100110000100001101": 1,
    "100101111001011000110": 1,
    "010000010010011001000": 1,
    "000111010001000111111": 1,
    "000011001110111110011": 1,
    "001000000110100110110": 1,
    "011000010000011010010": 1,
    "001000011011100000010": 1,
    "100010010011110001100": 1,
    "000000010001001010110": 1,
    "001111010111001101100": 1,
    "111000001010010000101": 1,
    "001011101111011001100": 1,
    "100100101000000010100": 1,
    "000000010000001101011": 1,
    "111011111110000110001": 1,
    "010111010001111111011": 1,
    "110001010001010001101": 1,
    "100000010100101011000": 1,
    "010001100101100100110": 1,
    "011011110111111011100": 1,
    "000000000110101000100": 1,
    "100001001111000100100": 1,
    "011000010001110010000": 1,
    "010100011001111010100": 1,
    "111110001000011101100": 1,
    "100000100111001010011": 1,
    "101000011111000010110": 1,
    "011000010111100000011": 1,
    "100000110010100100110": 1,
    "101000011010110110100": 1,
    "011000000001101001100": 1,
    "001110100010011100001": 1,
    "100101100110001100000": 1,
    "000000001001011110001": 1,
    "000001001110001000011": 1,
    "000000011000101100011": 1,
    "011000010101001100010": 1,
    "101111101010010111000": 1,
    "010000111100111101010": 1,
    "011111001110100100010": 1,
    "011111000010011011011": 1,
    "100011110101000001011": 1,
    "010001001000110011111": 1,
    "000000011100101010000": 1,
    "011010110111100010000": 1,
    "000001010010111111010": 1,
    "011000001010001010001": 1,
    "000000001010110000111": 1,
    "000001010011010100100": 1,
    "111010101101101001101": 1,
    "100001110110010100011": 1,
    "110001011111001110000": 1,
    "000000001000010100101": 1,
    "000000001001100111111": 1,
    "000100100101100000010": 1,
    "001010010011111110000": 1,
    "011001001100110110111": 1,
    "101000011010111100110": 1,
    "010000011000010110011": 1,
    "001110101011101110010": 1,
    "010000001110100111101": 1,
    "101010011001111101101": 1,
    "000110111110011000101": 1,
    "111101000000010001111": 1,
    "110001001101100010110": 1,
    "100001111101000011010": 1,
    "010011100000100111011": 1,
    "011000010010100000001": 1,
    "111010110101011101001": 1,
    "000001111110101111110": 1,
    "111001110110100001001": 1,
    "001000000010100011000": 1,
    "010101011011000100011": 1,
    "111011111111011000010": 1,
    "110100110001001011000": 1,
    "001101110011111000100": 1,
    "011000111011110011111": 1,
    "100000011111101110111": 1,
    "000011101000000101001": 1,
    "000000001010000001110": 1,
    "110000110110011001101": 1,
    "001111001001110001010": 1,
    "011100010000011111100": 1,
    "000000010110100101110": 1,
    "000000010001001011001": 1,
    "001001010110101010101": 1,
    "101110101101101100010": 1,
    "000101100000011110101": 1,
    "011001010111011110110": 1,
    "111010100100100001010": 1,
    "000011000101011011110": 1,
    "000000001000000001010": 1,
    "010001110100111100011": 1,
    "011000011101111001111": 1,
    "011011110101101010111": 1,
    "010011001001100111101": 1,
    "110010101110110110100": 1,
    "101111000000000101101": 1,
    "010000101101110100010": 1,
    "011110101101010001000": 1,
    "100101010000100000000": 1,
    "111111011110100111100": 1,
    "001000000001011010000": 1,
    "110001010111100010001": 1,
    "111010110110101111110": 1,
    "000011100000010101111": 1,
    "110001100011001111111": 1,
    "000000001101011011111": 1,
    "000011110000000100101": 1,
    "100000000100110111100": 1,
    "101111110101000010000": 1,
    "101000010000011100010": 1,
    "101011000010110111110": 1,
    "110111010001001000110": 1,
    "000000010010101111111": 1,
    "111001101011110001100": 1,
    "100001011010011011110": 1,
    "000010110001110000001": 1,
    "011001011011001101001": 1,
    "100000110011001100000": 1,
    "000101110000011010001": 1,
    "000101100101110111110": 1,
    "000001010011010111110": 1,
    "101100000010110000010": 1,
    "010100101100101101010": 1,
    "110100100111110110111": 1,
    "000000000110100010110": 1,
    "011111010110000111101": 1,
    "110001110010110000100": 1,
    "010001010000101111111": 1,
    "100000111000100110010": 1,
    "010010110111100100001": 1,
    "110101110000011100010": 1,
    "110001100100110000100": 1,
    "000000000111000001101": 1,
    "000011100110011101011": 1,
    "000000000011101011010": 1,
    "011001000001000100110": 1,
    "000000011010111001010": 1,
    "111010111110110111011": 1,
    "101000111101001100110": 1,
    "000110111010000001111": 1,
    "000001111011010011001": 1,
    "011000001011010101100": 1,
    "000001100000101111001": 1,
    "000000011001011101010": 1,
    "001111010110000000101": 1,
    "111110001100001000110": 1,
    "000000001001100100100": 1,
    "110111111110110000101": 1,
    "001100011001010111100": 1,
    "010110011010100101001": 1,
    "001011001001010010000": 1,
    "100000010000101010011": 1,
    "100011010011011100101": 1,
    "000000011011010000000": 1,
    "000001011111101111111": 1,
    "101101110110100011011": 1,
    "010000001011011011100": 1,
    "010000000100001110011": 1,
    "101110001010011001000": 1,
    "000111110001010100010": 1,
    "010000001011000100100": 1,
    "011101101000101111110": 1,
    "010111110010101000001": 1,
    "100111010111001101110": 1,
    "101000010111101011110": 1,
    "100101101110101001110": 1,
    "000000000110110110000": 1,
    "010110110000101111101": 1,
    "111011001010001111011": 1,
    "001001001101011000001": 1,
    "000000010111110111010": 1,
    "000110110001110101100": 1,
    "001110110011010111000": 1,
    "000010000000011010010": 1,
    "101010111011001000000": 1,
    "000001010100110000101": 1,
    "010101101011100111010": 1,
    "000101011110011111011": 1,
    "000001000001011110010": 1,
    "100000100010001010000": 1,
    "011000011000100111000": 1,
    "000100011011001110101": 1,
    "000011101000010011000": 1,
    "100101111111111001011": 1,
    "010000000011111101110": 1,
    "000000100000110010101": 1,
    "101011001011110110010": 1,
    "101000100001010000001": 1,
    "000000010010001001001": 1,
    "100000010000111000001": 1,
    "000011001110000110000": 1,
    "100000010011001000001": 1,
    "000100010110111001000": 1,
    "000010110111000000101": 1,
    "100001010000101100110": 1,
    "000000000110001110110": 1,
    "000110111110101010000": 1,
    "111101010111010001100": 1,
    "100000111000001011100": 1,
    "100000001000000100101": 1,
    "011111000010010111010": 1,
    "000000000100100110110": 1,
    "100010010011111101000": 1,
    "111000011110010110100": 1,
    "010011111000101000100": 1,
    "011011100110000011111": 1,
    "111110100010111011111": 1,
    "000111000010010110010": 1,
    "001010110000111011111": 1,
    "111011110110110010110": 1,
    "000010000010000110101": 1,
    "000010100001011101011": 1,
    "111001000111100001001": 1,
    "101000001100010011010": 1,
    "000001101001001100011": 1,
    "101111111111001111111": 1,
    "110100100110110010110": 1,
    "110000010100010101001": 1,
    "010100101101000111011": 1,
    "001011010100010100110": 1,
    "010111011000101001000": 1,
    "000110110011010100001": 1,
    "110111001011111100001": 1,
    "010001001101010100100": 1,
    "011000011101110101011": 1,
    "001000001110101101010": 1,
    "000010111010110100011": 1,
    "000110101001011000000": 1,
    "000101011000000101111": 1,
    "101010100101111101110": 1,
    "011010011110101101001": 1,
    "001000110001111100100": 1,
    "101011001110111100010": 1,
    "010011001110110101111": 1,
    "111111001100011010000": 1,
    "101000001000000010100": 1,
    "101000011001001101001": 1,
    "111101111010000110010": 1,
    "010111100000101010011": 1,
    "010100010011001100101": 1,
    "110000110110110100101": 1,
    "010001010100110010010": 1,
    "111001011101110110010": 1,
    "001110111101100001100": 1,
    "011000111001010101001": 1,
    "001101110001110100101": 1,
    "011000011010000101010": 1,
    "101000011110000010101": 1,
    "011000000100001010011": 1
  },
  "422_X+": {
    "101101001101": 1,
    "010101100110": 1,
    "010011101110": 1,
    "000001100001": 1,
    "000001110001": 2,
    "111001110010": 1,
    "001000010110": 1,
    "111111010101": 1,
    "000010000110": 1,
    "010110100101": 1,
    "000001011011": 2,
    "111111110100": 1,
    "101000011110": 1,
    "000010000001": 1,
    "110111001111": 1,
    "100101000010": 1,
    "000001011101": 1,
    "000000110010": 1,
    "000010100000": 2,
    "101100000001": 1,
    "000010011100": 2,
    "010110000010": 1,
    "001110110001": 1,
    "000010111110": 1,
    "000000111100": 1,
    "110011100111": 1,
    "000000100000": 2,
    "000000001110": 1,
    "000011101100": 1,
    "000011100001": 1,
    "000001000011": 1,
    "001110011000": 1,
    "101101010011": 1,
    "000000111110": 1,
    "000001010110": 1,
    "000000110101": 1,
    "000000010000": 1,
    "011101111000": 1,
    "000100111010": 1,
    "000000000110": 1,
    "011010010000": 1,
    "000001000010": 1,
    "011000010001": 1,
    "000010100100": 1,
    "110010111001": 1,
    "100010101010": 1,
    "000010011101": 1,
    "000001100111": 1,
    "110101000010": 1,
    "110011100101": 1,
    "111011010101": 1,
    "010010001011": 1,
    "011000101111": 1,
    "111010101111": 1,
    "000000010011": 1,
    "001110100111": 1,
    "110010011001": 1,
    "001101000011": 1,
    "000001010000": 2,
    "100101000001": 1,
    "101110010010": 1,
    "100000101101": 1,
    "100001111001": 1,
    "100001100110": 1,
    "101110100101": 1,
    "110101001110": 1,
    "100001111101": 1,
    "110000110101": 1,
    "101000011010": 1,
    "010001000010": 1,
    "101100001010": 1,
    "000011101000": 1,
    "001101010001": 1,
    "000001010100": 1,
    "000001111000": 1,
    "010110010011": 1,
    "000000000101": 1,
    "110111101000": 1,
    "000011001111": 1,
    "110000100011": 1,
    "100000100100": 2,
    "000001001011": 1,
    "000011011101": 1,
    "000100010000": 1,
    "110110111110": 1,
    "001100101110": 1,
    "000011011010": 2,
    "000000000000": 1,
    "000000111000": 1,
    "101000110111": 1,
    "011101000101": 1,
    "101110100011": 1,
    "010111100000": 1,
    "001100010001": 1,
    "100010100111": 1,
    "010010010010": 1,
    "010110001001": 1,
    "011100111011": 1,
    "000001100000": 1,
    "110001110000": 1,
    "000001100100": 1,
    "000010010101": 2,
    "110000000001": 1,
    "000001010010": 1,
    "101100001000": 1,
    "000010101000": 2,
    "110011000101": 1,
    "000001000110": 1,
    "000000111001": 1,
    "000010110110": 1,
    "000000001100": 1,
    "011110110001": 1,
    "000010001000": 1,
    "100000001000": 1,
    "000011100111": 1,
    "110110001000": 1,
    "010110000100": 1,
    "100000001110": 1,
    "101101011110": 1,
    "111110110111": 1,
    "001101000010": 1,
    "010010001000": 1,
    "110000111110": 1,
    "111100011010": 1,
    "011110100100": 1,
    "111011000000": 1,
    "100001100000": 1,
    "001110011001": 1,
    "100100111011": 1,
    "000011100010": 1,
    "111000001100": 1,
    "100001110001": 1,
    "000010111111": 1,
    "100011111000": 1,
    "010000000100": 1,
    "000011100000": 1,
    "000001000101": 1,
    "000011001011": 1,
    "110111001100": 1,
    "010011001001": 1,
    "000000001101": 1,
    "110101100011": 1,
    "010111011010": 1,
    "101000101110": 1,
    "100001000111": 1,
    "110000110110": 1,
    "001110010010": 1,
    "100010011001": 1,
    "100001101110": 1,
    "110100110100": 1,
    "010010010000": 1,
    "000010111101": 2,
    "110011011111": 1,
    "111110000101": 1,
    "001110111110": 1,
    "000011101011": 1,
    "000000101111": 1,
    "000001010011": 1,
    "010001001101": 1,
    "110101100000": 1,
    "001011001111": 1,
    "000010000101": 1,
    "001010111110": 1,
    "010000001100": 1,
    "000000110000": 1,
    "000111110001": 1,
    "000010001001": 1,
    "001110011101": 1,
    "111100000100": 1,
    "111011100101": 1,
    "000111100110": 1,
    "010110111010": 1,
    "000000110011": 1,
    "000001111100": 2,
    "101010110010": 1,
    "110010101000": 2,
    "001100001001": 1,
    "100100111101": 1,
    "110010110010": 1,
    "000011111111": 1,
    "000011100011": 1,
    "011000110111": 1,
    "000000110001": 1,
    "101110010000": 1,
    "011011111000": 1,
    "000010011001": 1,
    "110000000010": 1,
    "101100001011": 1,
    "001101010111": 1,
    "000110101111": 1,
    "000110110011": 1,
    "000011000010": 1,
    "001100101011": 1,
    "101100011000": 1,
    "001000101100": 1,
    "110001011000": 1,
    "000010000111": 1,
    "100011100011": 1,
    "011000000100": 1,
    "100000110000": 1,
    "101010110111": 1,
    "110011000110": 1,
    "000100101011": 1,
    "001011101001": 1,
    "000011111100": 1,
    "111000000000": 1,
    "000001110010": 1,
    "000011111010": 1,
    "000001111101": 1,
    "110011000100": 1,
    "001010110010": 1,
    "000011011111": 1,
    "110011111010": 1,
    "101010001010": 1,
    "010111011110": 1,
    "011011011110": 1,
    "000011111000": 1,
    "011001110110": 1,
    "010100010011": 1,
    "001111110001": 1,
    "010011000011": 1,
    "111110011110": 1,
    "001000011111": 1,
    "000111000101": 1,
    "100011000110": 1,
    "111110101000": 1,
    "001111000100": 1,
    "100011010000": 1,
    "110100100101": 1,
    "110010111000": 1,
    "111000111100": 1,
    "100000010110": 1,
    "000011000001": 1,
    "110111101001": 1,
    "000111100011": 1,
    "110001110110": 1,
    "011010010001": 1,
    "111101100010": 1,
    "110100100000": 1,
    "100000100010": 1,
    "100101111111": 1,
    "101000110010": 1,
    "000101010101": 1
  }
}
rows
{
  "steane_Z-": {
    "attempted": 256,
    "kept": 256,
    "correct": 175,
    "raw_correct": 145
  },
  "bare_Z+": {
    "attempted": 256,
    "kept": 256,
    "correct": 249,
    "raw_correct": 249
  },
  "bare_Z-": {
    "attempted": 256,
    "kept": 256,
    "correct": 239,
    "raw_correct": 239
  },
  "steane_Y+": {
    "attempted": 256,
    "kept": 256,
    "correct": 164,
    "raw_correct": 145
  },
  "422_Z-": {
    "attempted": 256,
    "kept": 116,
    "correct": 104,
    "raw_correct": 216
  },
  "bare_X-": {
    "attempted": 256,
    "kept": 256,
    "correct": 243,
    "raw_correct": 243
  },
  "steane_X-": {
    "attempted": 256,
    "kept": 256,
    "correct": 175,
    "raw_correct": 167
  },
  "422_Y+": {
    "attempted": 256,
    "kept": 130,
    "correct": 113,
    "raw_correct": 181
  },
  "422_Z+": {
    "attempted": 256,
    "kept": 127,
    "correct": 117,
    "raw_correct": 213
  },
  "bare_Y-": {
    "attempted": 256,
    "kept": 256,
    "correct": 235,
    "raw_correct": 235
  },
  "bare_Y+": {
    "attempted": 256,
    "kept": 256,
    "correct": 240,
    "raw_correct": 240
  },
  "bare_X+": {
    "attempted": 256,
    "kept": 256,
    "correct": 244,
    "raw_correct": 244
  },
  "steane_Y-": {
    "attempted": 256,
    "kept": 256,
    "correct": 162,
    "raw_correct": 127
  },
  "422_X-": {
    "attempted": 256,
    "kept": 137,
    "correct": 124,
    "raw_correct": 203
  },
  "steane_Z+": {
    "attempted": 256,
    "kept": 256,
    "correct": 185,
    "raw_correct": 157
  },
  "422_Y-": {
    "attempted": 256,
    "kept": 122,
    "correct": 104,
    "raw_correct": 181
  },
  "steane_X+": {
    "attempted": 256,
    "kept": 256,
    "correct": 184,
    "raw_correct": 165
  },
  "422_X+": {
    "attempted": 256,
    "kept": 114,
    "correct": 98,
    "raw_correct": 181
  }
}
totals
{
  "bare": {
    "attempted": 1536,
    "kept": 1536,
    "correct": 1450,
    "raw_correct": 1450
  },
  "422": {
    "attempted": 1536,
    "kept": 746,
    "correct": 660,
    "raw_correct": 1175
  },
  "steane": {
    "attempted": 1536,
    "kept": 1536,
    "correct": 1045,
    "raw_correct": 906
  }
}

Simulation & checks

These are the supplied simulator records and their preserved variants. Their model, seed, settings and results appear exactly as saved. Shared simulator references on fresh-map pages describe the ideal graph protocol, rather than a new hardware-matched calibration.

  • simulator.jsonThrough the Noise Wall.pdf / Kingston measurements and source.zip · 11,545 bytes
noise-wall/results/simulator.json · full record
{
  "shots_per_case": 256,
  "rows": {
    "bare_Z+_clean": {
      "attempted": 256,
      "kept": 256,
      "correct": 256,
      "raw_correct": 256
    },
    "bare_Z+_phase": {
      "attempted": 256,
      "kept": 256,
      "correct": 256,
      "raw_correct": 256
    },
    "bare_Z-_clean": {
      "attempted": 256,
      "kept": 256,
      "correct": 256,
      "raw_correct": 256
    },
    "bare_Z-_phase": {
      "attempted": 256,
      "kept": 256,
      "correct": 256,
      "raw_correct": 256
    },
    "bare_X+_clean": {
      "attempted": 256,
      "kept": 256,
      "correct": 256,
      "raw_correct": 256
    },
    "bare_X+_phase": {
      "attempted": 256,
      "kept": 256,
      "correct": 0,
      "raw_correct": 0
    },
    "bare_X-_clean": {
      "attempted": 256,
      "kept": 256,
      "correct": 256,
      "raw_correct": 256
    },
    "bare_X-_phase": {
      "attempted": 256,
      "kept": 256,
      "correct": 0,
      "raw_correct": 0
    },
    "bare_Y+_clean": {
      "attempted": 256,
      "kept": 256,
      "correct": 256,
      "raw_correct": 256
    },
    "bare_Y+_phase": {
      "attempted": 256,
      "kept": 256,
      "correct": 0,
      "raw_correct": 0
    },
    "bare_Y-_clean": {
      "attempted": 256,
      "kept": 256,
      "correct": 256,
      "raw_correct": 256
    },
    "bare_Y-_phase": {
      "attempted": 256,
      "kept": 256,
      "correct": 0,
      "raw_correct": 0
    },
    "422_Z+_clean": {
      "attempted": 256,
      "kept": 256,
      "correct": 256,
      "raw_correct": 256
    },
    "422_Z+_phase": {
      "attempted": 256,
      "kept": 0,
      "correct": 0,
      "raw_correct": 256
    },
    "422_Z-_clean": {
      "attempted": 256,
      "kept": 256,
      "correct": 256,
      "raw_correct": 256
    },
    "422_Z-_phase": {
      "attempted": 256,
      "kept": 0,
      "correct": 0,
      "raw_correct": 256
    },
    "422_X+_clean": {
      "attempted": 256,
      "kept": 256,
      "correct": 256,
      "raw_correct": 256
    },
    "422_X+_phase": {
      "attempted": 256,
      "kept": 0,
      "correct": 0,
      "raw_correct": 0
    },
    "422_X-_clean": {
      "attempted": 256,
      "kept": 256,
      "correct": 256,
      "raw_correct": 256
    },
    "422_X-_phase": {
      "attempted": 256,
      "kept": 0,
      "correct": 0,
      "raw_correct": 0
    },
    "422_Y+_clean": {
      "attempted": 256,
      "kept": 256,
      "correct": 256,
      "raw_correct": 256
    },
    "422_Y+_phase": {
      "attempted": 256,
      "kept": 0,
      "correct": 0,
      "raw_correct": 0
    },
    "422_Y-_clean": {
      "attempted": 256,
      "kept": 256,
      "correct": 256,
      "raw_correct": 256
    },
    "422_Y-_phase": {
      "attempted": 256,
      "kept": 0,
      "correct": 0,
      "raw_correct": 0
    },
    "steane_Z+_clean": {
      "attempted": 256,
      "kept": 256,
      "correct": 256,
      "raw_correct": 256
    },
    "steane_Z+_phase": {
      "attempted": 256,
      "kept": 256,
      "correct": 256,
      "raw_correct": 256
    },
    "steane_Z-_clean": {
      "attempted": 256,
      "kept": 256,
      "correct": 256,
      "raw_correct": 256
    },
    "steane_Z-_phase": {
      "attempted": 256,
      "kept": 256,
      "correct": 256,
      "raw_correct": 256
    },
    "steane_X+_clean": {
      "attempted": 256,
      "kept": 256,
      "correct": 256,
      "raw_correct": 256
    },
    "steane_X+_phase": {
      "attempted": 256,
      "kept": 256,
      "correct": 256,
      "raw_correct": 0
    },
    "steane_X-_clean": {
      "attempted": 256,
      "kept": 256,
      "correct": 256,
      "raw_correct": 256
    },
    "steane_X-_phase": {
      "attempted": 256,
      "kept": 256,
      "correct": 256,
      "raw_correct": 0
    },
    "steane_Y+_clean": {
      "attempted": 256,
      "kept": 256,
      "correct": 256,
      "raw_correct": 256
    },
    "steane_Y+_phase": {
      "attempted": 256,
      "kept": 256,
      "correct": 256,
      "raw_correct": 0
    },
    "steane_Y-_clean": {
      "attempted": 256,
      "kept": 256,
      "correct": 256,
      "raw_correct": 256
    },
    "steane_Y-_phase": {
      "attempted": 256,
      "kept": 256,
      "correct": 256,
      "raw_correct": 0
    }
  },
  "extra_fault_cases": 99,
  "injected_z_carrier_zero_based": {
    "bare": 0,
    "422": 1,
    "steane": 2
  },
  "fault_location": "after second SWAP, before Charlie decodes",
  "verified_snapshot": {
    "lanes": [
      [
        50,
        49,
        48,
        47,
        57
      ],
      [
        58,
        71,
        70,
        69,
        68
      ],
      [
        79,
        93,
        92,
        91,
        90
      ],
      [
        67,
        66,
        65,
        77,
        85
      ],
      [
        78,
        89,
        88,
        87,
        86
      ],
      [
        44,
        43,
        56,
        63,
        64
      ],
      [
        26,
        25,
        37,
        45,
        46
      ]
    ],
    "cases": {
      "bare_Z+": {
        "operations": {
          "sx": 18,
          "rz": 12,
          "cz": 8,
          "measure_2": 2,
          "if_else": 2,
          "measure": 1
        },
        "depth": 27,
        "physical_readout": [
          57
        ],
        "fast_mid_measure": true
      },
      "bare_Z-": {
        "operations": {
          "sx": 18,
          "rz": 12,
          "cz": 8,
          "measure_2": 2,
          "if_else": 2,
          "x": 1,
          "measure": 1
        },
        "depth": 27,
        "physical_readout": [
          57
        ],
        "fast_mid_measure": true
      },
      "bare_X+": {
        "operations": {
          "sx": 20,
          "rz": 16,
          "cz": 8,
          "measure_2": 2,
          "if_else": 2,
          "measure": 1
        },
        "depth": 30,
        "physical_readout": [
          57
        ],
        "fast_mid_measure": true
      },
      "bare_X-": {
        "operations": {
          "sx": 20,
          "rz": 16,
          "cz": 8,
          "measure_2": 2,
          "if_else": 2,
          "x": 1,
          "measure": 1
        },
        "depth": 30,
        "physical_readout": [
          57
        ],
        "fast_mid_measure": true
      },
      "bare_Y+": {
        "operations": {
          "sx": 20,
          "rz": 18,
          "cz": 8,
          "measure_2": 2,
          "if_else": 2,
          "measure": 1
        },
        "depth": 31,
        "physical_readout": [
          57
        ],
        "fast_mid_measure": true
      },
      "bare_Y-": {
        "operations": {
          "sx": 20,
          "rz": 18,
          "cz": 8,
          "measure_2": 2,
          "if_else": 2,
          "x": 1,
          "measure": 1
        },
        "depth": 31,
        "physical_readout": [
          57
        ],
        "fast_mid_measure": true
      },
      "422_Z+": {
        "operations": {
          "sx": 232,
          "cz": 111,
          "rz": 92,
          "measure_2": 8,
          "if_else": 8,
          "measure": 4
        },
        "depth": 151,
        "physical_readout": [
          69,
          66,
          68,
          67
        ],
        "fast_mid_measure": true
      },
      "422_Z-": {
        "operations": {
          "sx": 232,
          "cz": 111,
          "rz": 92,
          "measure_2": 8,
          "if_else": 8,
          "measure": 4,
          "x": 1
        },
        "depth": 151,
        "physical_readout": [
          69,
          66,
          68,
          67
        ],
        "fast_mid_measure": true
      },
      "422_X+": {
        "operations": {
          "sx": 234,
          "cz": 111,
          "rz": 96,
          "measure_2": 8,
          "if_else": 8,
          "measure": 4
        },
        "depth": 151,
        "physical_readout": [
          69,
          66,
          68,
          67
        ],
        "fast_mid_measure": true
      },
      "422_X-": {
        "operations": {
          "sx": 234,
          "cz": 111,
          "rz": 96,
          "measure_2": 8,
          "if_else": 8,
          "measure": 4,
          "x": 1
        },
        "depth": 152,
        "physical_readout": [
          69,
          66,
          68,
          67
        ],
        "fast_mid_measure": true
      },
      "422_Y+": {
        "operations": {
          "sx": 234,
          "cz": 111,
          "rz": 98,
          "measure_2": 8,
          "if_else": 8,
          "measure": 4
        },
        "depth": 153,
        "physical_readout": [
          69,
          66,
          68,
          67
        ],
        "fast_mid_measure": true
      },
      "422_Y-": {
        "operations": {
          "sx": 234,
          "cz": 111,
          "rz": 98,
          "measure_2": 8,
          "if_else": 8,
          "measure": 4,
          "x": 1
        },
        "depth": 154,
        "physical_readout": [
          69,
          66,
          68,
          67
        ],
        "fast_mid_measure": true
      },
      "steane_Z+": {
        "operations": {
          "sx": 560,
          "cz": 270,
          "rz": 184,
          "measure_2": 14,
          "if_else": 14,
          "measure": 7
        },
        "depth": 295,
        "physical_readout": [
          57,
          78,
          67,
          77,
          66,
          65,
          68
        ],
        "fast_mid_measure": true
      },
      "steane_Z-": {
        "operations": {
          "sx": 560,
          "cz": 270,
          "rz": 184,
          "measure_2": 14,
          "if_else": 14,
          "measure": 7,
          "x": 1
        },
        "depth": 295,
        "physical_readout": [
          57,
          78,
          67,
          77,
          66,
          65,
          68
        ],
        "fast_mid_measure": true
      },
      "steane_X+": {
        "operations": {
          "sx": 562,
          "cz": 270,
          "rz": 188,
          "measure_2": 14,
          "if_else": 14,
          "measure": 7
        },
        "depth": 295,
        "physical_readout": [
          57,
          78,
          67,
          77,
          66,
          65,
          68
        ],
        "fast_mid_measure": true
      },
      "steane_X-": {
        "operations": {
          "sx": 562,
          "cz": 270,
          "rz": 188,
          "measure_2": 14,
          "if_else": 14,
          "measure": 7,
          "x": 1
        },
        "depth": 296,
        "physical_readout": [
          57,
          78,
          67,
          77,
          66,
          65,
          68
        ],
        "fast_mid_measure": true
      },
      "steane_Y+": {
        "operations": {
          "sx": 562,
          "cz": 270,
          "rz": 190,
          "measure_2": 14,
          "if_else": 14,
          "measure": 7
        },
        "depth": 297,
        "physical_readout": [
          57,
          78,
          67,
          77,
          66,
          65,
          68
        ],
        "fast_mid_measure": true
      },
      "steane_Y-": {
        "operations": {
          "sx": 562,
          "cz": 270,
          "rz": 190,
          "measure_2": 14,
          "if_else": 14,
          "measure": 7,
          "x": 1
        },
        "depth": 298,
        "physical_readout": [
          57,
          78,
          67,
          77,
          66,
          65,
          68
        ],
        "fast_mid_measure": true
      }
    }
  }
}

Source code

Original experiment and verification programs are preserved byte for byte. These are historical listings; dependencies, authentication prompts and machine-specific input paths may need adjustment before a rerun.

  • charlie_codes.pyThrough the Noise Wall.pdf / Kingston measurements and source.zip · 15,720 bytes
noise-wall/source/charlie_codes.py · complete source
"""Encode a logical qubit, teleport every carrier, move it twice and decode."""
import argparse
import json
import os
import random
import sys
import time
import traceback
from collections import Counter
from pathlib import Path

import numpy as np
from qiskit import QuantumCircuit, transpile
from qiskit.circuit import CircuitInstruction, Measure
from qiskit.quantum_info import Clifford, Pauli
from qiskit.transpiler import CouplingMap
from qiskit_aer import AerSimulator
from qiskit_ibm_runtime import QiskitRuntimeService, SamplerV2
from qiskit_ibm_runtime.circuit import MidCircuitMeasure
from qiskit_ibm_runtime.fake_provider import FakeKingston

ROOT = Path(__file__).resolve().parent
SIM, HW, STATUS = [ROOT / (s + ".json") for s in ("simulator", "kingston", "status")]
TAG = "charlie-six-states-422-steane-20261121-v1"
SHOTS, SEED = 256, 903117
CODES = {"bare": 1, "422": 4, "steane": 7}
STATES = ("Z+", "Z-", "X+", "X-", "Y+", "Y-")
LOGICAL = {"bare": 0, "422": 1, "steane": 2}
CHECKS = {"bare": (), "422": (0, 3), "steane": (0, 1, 3, 4, 5, 6)}


def save(path, value):
    temp = path.with_suffix(".partial")
    temp.write_text(json.dumps(value, indent=2), encoding="utf8")
    temp.replace(path)


def encoder(code):
    q = QuantumCircuit(CODES[code])
    if code == "422":
        q.cx(1, 3)
        q.cx(2, 3)
        q.h(0)
        for t in (1, 2, 3):
            q.cx(0, t)
    elif code == "steane":
        # The logical X has support on Hamming columns 3, 5, 6 (XOR zero).
        q.cx(2, 4)
        q.cx(2, 5)
        for col in (1, 2, 4):
            q.h(col - 1)
            for j in range(1, 8):
                if j != col and j & col:
                    q.cx(col - 1, j - 1)
    return q


def error_table(code):
    # U-dagger P U is the error after unitary block decoding. Its X components
    # on initialized check wires flip their terminal Z measurements.
    n = CODES[code]
    cliff = Clifford(encoder(code))
    table = {}
    for x in [None, *range(n)]:
        for z in [None, *range(n)]:
            fx, fz = np.zeros(n, bool), np.zeros(n, bool)
            if x is not None:
                fx[x] = True
            if z is not None:
                fz[z] = True
            p = Pauli((fz, fx)).evolve(cliff, frame="h")
            key = sum(int(p.x[i]) << j for j, i in enumerate(CHECKS[code]))
            frame = (bool(p.x[LOGICAL[code]]), bool(p.z[LOGICAL[code]]))
            if code == "steane":
                assert key not in table
                table[key] = frame
            elif code == "422" and (x is None or z is None or x == z):
                assert bool(key) == (x is not None or z is not None)
    if code == "steane":
        assert len(table) == 64
    return table


STEANE = error_table("steane")
error_table("422")


def prepare(q, index, state):
    if state[1] == "-":
        q.x(index)
    if state[0] != "Z":
        q.h(index)
    if state[0] == "Y":
        q.s(index)


def rotate_readout(q, index, axis):
    if axis == "Y":
        q.sdg(index)
    if axis != "Z":
        q.h(index)


def circuit(code, state, lanes, width, before, after, fast=False, fault=None):
    # before/after are inverse encoders routed outwards from fixed terminals.
    # Reversing the source-side circuit guarantees each encoded carrier starts
    # on the correct physical site without a needless return permutation.
    n = CODES[code]
    src_decode, src_wires = before
    dst_decode, dst_wires = after
    q = QuantumCircuit(width, 3*n, name=f"{code}_{state}")
    prepare(q, src_wires[LOGICAL[code]], state)
    q.compose(src_decode.inverse(), inplace=True)
    for i, (src, alice, bob, relay, charlie) in enumerate(lanes):
        q.h(alice)
        q.cx(alice, bob)
        q.cx(src, alice)
        q.h(src)
    for i, lane in enumerate(lanes):
        for j in (0, 1):
            if fast:
                q.append(MidCircuitMeasure(), [lane[j]], [2*i+j])
            else:
                q.measure(lane[j], 2*i+j)
    for i, (_, _, bob, relay, charlie) in enumerate(lanes):
        with q.if_test((q.clbits[2*i+1], 1)):
            q.x(bob)
        with q.if_test((q.clbits[2*i], 1)):
            q.z(bob)
        q.swap(bob, relay)
        q.swap(relay, charlie)
    if fault:
        kind, site = fault
        getattr(q, kind)(lanes[site][4])
    q.compose(dst_decode, inplace=True)
    rotate_readout(q, dst_wires[LOGICAL[code]], state[0])
    for i, wire in enumerate(dst_wires):
        q.measure(wire, 2*n+i)
    return q


def logical_setup(code):
    n = CODES[code]
    lanes = [list(range(5*i, 5*i+5)) for i in range(n)]
    def at(role):
        wires = [p[role] for p in lanes]
        q = QuantumCircuit(5*n)
        q.compose(encoder(code).inverse(), qubits=wires, inplace=True)
        return q, wires
    return lanes, 5*n, at(0), at(4)


def score(code, state, counts):
    correct = kept = raw = 0
    n = CODES[code]
    for key, times in counts.items():
        assert len(key) == 3*n and set(key) <= {"0", "1"}
        word = int(key, 2) >> (2*n)
        check = sum(((word >> i) & 1) << j for j, i in enumerate(CHECKS[code]))
        observed = (word >> LOGICAL[code]) & 1
        expected = int(state[1] == "-")
        raw += times * (observed == expected)
        if code == "422" and check:
            continue
        if code == "steane":
            x, z = STEANE[check]
            observed ^= {"X": z, "Y": x ^ z, "Z": x}[state[0]]
        kept += times
        correct += times * (observed == expected)
    return dict(attempted=sum(counts.values()), kept=kept, correct=correct, raw_correct=raw)


def pick_lanes(backend):
    props = backend.properties()
    bad = set(props.faulty_qubits())
    blocked = {tuple(sorted(g.qubits)) for g in props.faulty_gates() if len(g.qubits) == 2}
    adj = {i: {} for i in range(backend.num_qubits)}
    for edge, data in backend.target["cz"].items():
        a, b = edge
        if bad.isdisjoint(edge) and tuple(sorted(edge)) not in blocked and data and data.error is not None:
            adj[a][b] = adj[b][a] = data.error
    cmap = CouplingMap([(a, b) for a in adj for b in adj[a]])
    while cmap.size() < backend.num_qubits:
        cmap.add_physical_qubit(cmap.size())
    dist = cmap.distance_matrix
    def extend(path):
        if len(path) == 5:
            yield path
        else:
            for b in adj[path[-1]]:
                if b not in path:
                    yield from extend(path + (b,))
    paths = np.array([p for a in adj for p in extend((a,))], dtype=int)
    costs = np.array([sum(w*adj[a][b] for w,a,b in zip((1,1,3,3),p,p[1:]))
                      + sum(props.readout_error(int(p[i])) for i in (0,1,4)) for p in paths])
    best = None
    for seed in np.argsort(costs)[:60]:
        chosen = []
        penalty = np.zeros(len(paths))
        valid = np.ones(len(paths), dtype=bool)
        idx = seed
        for k in range(7):
            chosen.append(int(idx))
            p = paths[idx]
            valid &= ~np.isin(paths, p).any(axis=1)
            penalty += dist[p[0], paths[:,0]] + dist[p[4], paths[:,4]]
            if k < 6:
                idx = np.argmin(np.where(valid, penalty/(k+1) + 40*costs, np.inf))
        cluster = paths[chosen]
        distances = sum(dist[p[0],q[0]]+dist[p[4],q[4]] for i,p in enumerate(cluster) for q in cluster[:i])
        value = distances/21 + 40*costs[chosen].mean()
        if best is None or value < best[0]:
            best = value, cluster.tolist()
    assert len({q for lane in best[1] for q in lane}) == 35
    return best[1], cmap


def physical_setup(backend, cmap, lanes, code):
    n = CODES[code]
    lanes = lanes[:n]
    def at(role):
        wires = [p[role] for p in lanes]
        if n == 1:
            return QuantumCircuit(backend.num_qubits), wires
        logical = encoder(code).inverse()
        best = None
        for seed in (9, 31, 75):
            q = transpile(logical, coupling_map=cmap, initial_layout=wires, routing_method="sabre",
                          optimization_level=0, num_processes=1, seed_transpiler=seed)
            final = q.layout.final_index_layout()
            cost = 3*q.count_ops().get("swap", 0) + q.count_ops().get("cx", 0)
            if best is None or cost < best[0]:
                best = cost, q, final
        return best[1], best[2]
    return lanes, backend.num_qubits, at(0), at(4)


def aer_run(circuits, shots):
    sim = AerSimulator(method="stabilizer", max_parallel_threads=4)
    res = sim.run(circuits, shots=shots, seed_simulator=SEED).result()
    assert res.success
    return [res.get_counts(i) for i in range(len(circuits))]


def compile_all(backend, verify=False):
    lanes, cmap = pick_lanes(backend)
    info, circuits = {}, {}
    for code,n in CODES.items():
        setup = physical_setup(backend, cmap, lanes, code)
        fast = all(backend.target.instruction_supported("measure_2", (p[i],))
                   for p in lanes[:n] for i in (0, 1))
        for state in STATES:
            name = f"{code}_{state}"
            physical = circuit(code, state, *setup, fast=fast)
            assert physical.count_ops()["swap"] >= 2*n
            # Fixed layout and no SWAP optimization preserve the explicit journey.
            isa = transpile(physical, backend, initial_layout=list(range(backend.num_qubits)),
                            routing_method="none", optimization_level=0, num_processes=1,
                            seed_transpiler=SEED)
            backend.check_faulty(isa)
            meas = {isa.find_bit(op.clbits[0]).index: isa.find_bit(op.qubits[0]).index
                    for op in isa.data if op.operation.name in ("measure", "measure_2")}
            assert meas == {**{2*i+j:p[j] for i,p in enumerate(lanes[:n]) for j in (0,1)},
                            **{2*n+i:q for i,q in enumerate(setup[3][1])}}
            circuits[name] = isa
            info[name] = dict(operations=dict(isa.count_ops()), depth=isa.depth(),
                              physical_readout=setup[3][1], fast_mid_measure=fast)
    if verify:
        native = []
        for isa in circuits.values():
            check = isa.copy()
            for i,op in enumerate(check.data):
                if op.operation.name == "measure_2":
                    check.data[i] = CircuitInstruction(Measure(), op.qubits, op.clbits)
            native.append(check)
        for name, counts in zip(circuits, aer_run(native, 32), strict=True):
            assert score(*name.split("_"), counts)["correct"] == 32, name
    return circuits, dict(lanes=lanes, cases=info)


def simulate():
    cases = [(code, state, fault) for code in CODES for state in STATES
             for fault in (None, ("z", LOGICAL[code]))]
    circuits = [circuit(code,state,*logical_setup(code),fault=fault) for code,state,fault in cases]
    report = {}
    for (code,state,fault), counts in zip(cases, aer_run(circuits, SHOTS), strict=True):
        row = score(code,state,counts)
        keep = 0 if fault and code == "422" else SHOTS
        success = 0 if fault and code == "bare" and state[0] != "Z" else keep
        assert (row["correct"], row["kept"]) == (success, keep)
        if fault and state[0] == "X":
            assert row["raw_correct"] == 0
        report[f"{code}_{state}_{'phase' if fault else 'clean'}"] = row
    # Check every physical location and sign convention using independent shot simulations.
    tests = [(c,s,(p,i)) for c in ("422","steane") for i in range(CODES[c])
             for p in ("x","y","z") for s in ("Z-","X+","Y-")]
    packets = [circuit(c,s,*logical_setup(c),fault=e) for c,s,e in tests]
    for (c,s,e), counts in zip(tests,aer_run(packets, 8),strict=True):
        expect = 8 if c == "steane" else 0
        row = score(c,s,counts)
        assert (row["correct"], row["kept"]) == (expect, expect), (c,s,e,row)
    result = dict(shots_per_case=SHOTS, rows=report, extra_fault_cases=len(tests),
                  injected_z_carrier_zero_based=LOGICAL, fault_location="after second SWAP, before Charlie decodes")
    save(SIM, result)
    print("Phase flip on X+:", {c:report[c+"_X+_phase"] for c in CODES}, flush=True)
    _, details = compile_all(FakeKingston(), verify=True)
    save(SIM, dict(**result, verified_snapshot=details))
    print("All 18 native circuits passed the Kingston snapshot simulation.", flush=True)


def credentials():
    if "QISKIT_IBM_TOKEN" in os.environ or QiskitRuntimeService.saved_accounts():
        return QiskitRuntimeService(channel="ibm_quantum_platform", region="us-east", plans_preference=["open"])
    from tkinter import Tk, simpledialog
    root = Tk()
    root.withdraw()
    root.attributes("-topmost", True)
    save(STATUS, {"stage":"waiting for private IBM login"})
    token = simpledialog.askstring("IBM Quantum – Kingston", "IBM Cloud API key for the 18-case Charlie experiment",
                                   show="*", parent=root)
    root.destroy()
    if not token or not token.strip():
        raise RuntimeError("Private login cancelled")
    return QiskitRuntimeService(channel="ibm_quantum_platform", token=token.strip(),
                                region="us-east", plans_preference=["open"])


def hardware():
    assert "verified_snapshot" in json.loads(SIM.read_text())
    record = json.loads(HW.read_text()) if HW.exists() else {}
    if record.get("stage") == "done":
        return
    service = credentials()
    save(STATUS, {"stage":"connecting to Kingston"})
    backend = service.backend("ibm_kingston")
    if not record:
        circuits, details = compile_all(backend, verify=True)
        order = list(circuits)
        random.Random(SEED).shuffle(order)
        sampler = SamplerV2(mode=backend, options={"environment":{"job_tags":[TAG]},
                            "twirling":{"enable_measure":False,"enable_gates":False},
                            "dynamical_decoupling":{"enable":False}, "max_execution_time":30})
        record = dict(stage="submitting", tag=TAG, backend=backend.name, order=order,
                      shots_per_case=SHOTS, live_compile=details)
        with HW.open("x", encoding="utf8") as f:
            json.dump(record,f)
        job = sampler.run([circuits[k] for k in order], shots=SHOTS)
    elif record.get("job_id"):
        job = service.job(record["job_id"])
    else:
        matches = service.jobs(job_tags=[TAG], limit=2)
        if len(matches) != 1:
            raise RuntimeError("Prior submission needs reconciliation before any retry")
        job = matches[0]
    record.update(stage="submitted", job_id=job.job_id())
    save(HW,record)
    save(STATUS, {"stage":"submitted", "job_id":job.job_id()})
    pubs = job.result()
    counts = {k:p.data.c.get_counts() for k,p in zip(record["order"],pubs,strict=True)}
    rows = {k:score(*k.split("_"),v) for k,v in counts.items()}
    assert len(rows)==18 and all(r["attempted"]==SHOTS for r in rows.values())
    totals = {c:dict(sum((Counter(rows[f"{c}_{s}"]) for s in STATES),Counter())) for c in CODES}
    record.update(stage="done", counts=counts, rows=rows, totals=totals)
    save(HW,record)
    save(STATUS, {"stage":"done", "job_id":job.job_id()})
    record["metrics"] = job.metrics()
    save(HW,record)


if __name__ == "__main__":
    parser = argparse.ArgumentParser()
    parser.add_argument("mode", choices=["simulate","hardware"])
    mode = parser.parse_args().mode
    if mode == "simulate":
        simulate()
    else:
        try:
            hardware()
        except Exception as exc:
            save(STATUS, {"stage":"error", "type":type(exc).__name__,
                          "frames":[[f.name,f.lineno] for f in traceback.extract_tb(exc.__traceback__)]})
            sys.exit(1)

Personal comments

Personal comments will be added here.