deskmerc/ quantum

Byte protection / KINGSTON

Quantum Field Report

Moving the protected byte beyond Bob

Measure the cost of extending the route two sites farther to Charlie.

IBM job ID
dc0g4nlhdvas73bjffe0
Submitted
20 Nov 2026 · 20:30 CST
QPU charge
2 seconds
Backend
ibm_kingston
Sampling
256 shots per recorded setting/case
Provenance
Quantum Field Report, page 13.

The question

Measure the cost of extending the route two sites farther to Charlie.

Circuit & method

Compare the Bob receiver with two additional physical SWAPs per path to Charlie in the same job. Hamming transport uses 24 CZ gates to Bob and 96 to Charlie.

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

Results

Bob recovered 228/256 decoded bytes; Charlie recovered 202/256. Raw-byte counts were 161 and 134. The decoded difference was 26 shots, or 10.2 percentage points.

Measured outcomesAll-shot success; each bar runs from 0% to 100%.
Bob decoded228/256 · 89.1%
Charlie decoded202/256 · 78.9%

What this supports

The longer arm changes duration, sites and readout as well as adding gates. The difference cannot isolate the contribution of either SWAP.

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.

backend
ibm_kingston
receivers
[
  "Bob",
  "Charlie"
]
paths_by_hamming_position
[
  [
    122,
    123,
    136,
    143,
    144
  ],
  [
    60,
    61,
    62,
    63,
    56
  ],
  [
    48,
    49,
    50,
    51,
    58
  ],
  [
    68,
    69,
    78,
    89,
    88
  ],
  [
    106,
    105,
    117,
    125,
    126
  ],
  [
    148,
    149,
    150,
    151,
    152
  ],
  [
    108,
    109,
    118,
    129,
    128
  ],
  [
    90,
    91,
    98,
    111,
    110
  ],
  [
    55,
    59,
    75,
    74,
    73
  ],
  [
    40,
    41,
    42,
    43,
    44
  ],
  [
    93,
    94,
    95,
    99,
    115
  ],
  [
    4,
    5,
    6,
    7,
    17
  ]
]
native_counts
[
  {
    "rz": 144,
    "sx": 72,
    "cz": 24,
    "measure_2": 24,
    "if_else": 24,
    "measure": 12,
    "x": 3,
    "barrier": 1
  },
  {
    "sx": 216,
    "rz": 144,
    "cz": 96,
    "measure_2": 24,
    "if_else": 24,
    "measure": 12,
    "x": 3,
    "barrier": 1
  }
]
stage
done
tag
charlie-two-swaps-ascii-a-kingston-20261120
shots_per_circuit
256
job_id
dc0g4nlhdvas73bjffe0
counts
[
  {
    "010000000100110000000010011000010111": 1,
    "010000000100010011111111110100110011": 1,
    "010010100100000100101111111001101010": 1,
    "010010001100100110010110010001001011": 1,
    "010010000110001000010100101101000101": 1,
    "000010000100000111101100010001001111": 1,
    "010010000100100000010010000011100000": 1,
    "010010000100010010000000110100101111": 1,
    "010001000100000111001010011010111000": 1,
    "010010000100101100011111001100000101": 1,
    "010010000100110100101011000100111111": 1,
    "010010000100100011101111100101010110": 1,
    "010010010100001100011001001111111011": 1,
    "010010000100010100100000001111101010": 1,
    "011010000100110100010011000011101111": 1,
    "010000000101101010111011101000111000": 1,
    "010010100000010110001000111001101001": 1,
    "010010000100001010100100011110110100": 1,
    "010010000110000101100110010101110010": 1,
    "010010000000011010000010000101110001": 1,
    "010010000100011001101011010001001011": 1,
    "010010000100001010110000100010100001": 1,
    "010010000101110101001011001101111000": 1,
    "010010000100110000100000100100110101": 1,
    "010010000100110000101011101000110001": 1,
    "010010001100110100010010011111111101": 1,
    "011010000100101000111101111010000111": 1,
    "010010000100010101100000101111110000": 1,
    "010010000100100110110100001100100011": 1,
    "010010000100000011110101110110110011": 1,
    "010010100100100100001111110101010010": 1,
    "010010000100111010000110011100010010": 1,
    "000010000000000010110010000001101101": 1,
    "010010000100100010011000011110011000": 1,
    "010010000100101110101010110110100010": 1,
    "010110000100001101010101010001111001": 1,
    "010110000100010101110111011010100111": 1,
    "010010000100010101100100011011111111": 1,
    "010010000100100000111111100101000100": 1,
    "010010000100110111010110001100101110": 1,
    "110010000100000000110110100100110010": 1,
    "010010000100010111000100100010110000": 1,
    "010010000100111111000100011000111110": 1,
    "010010100100001100101101010000010100": 1,
    "011010000100110101010011111101111001": 1,
    "010010000100110100110000111010010111": 1,
    "010011000100001011100011011000011000": 1,
    "010010000100111100001110000001101011": 1,
    "011010010100111000011100111011111001": 1,
    "010010000100110011100110000000111001": 1,
    "010010000100010101101111010101101111": 1,
    "010010100100000000010111011001111000": 1,
    "010010110100000101011110110011011011": 1,
    "010010000000011111000001011101100000": 1,
    "110010000100111000100000101010110010": 1,
    "010010000100011000011111000011110001": 1,
    "010010100100011101001001010001001111": 1,
    "010010000100111010100100011000011000": 1,
    "000010000100110111000111001011111110": 1,
    "010010000101010110010011011101001011": 1,
    "010010100100111101010100010111111000": 1,
    "010010000100100000100010101100001000": 1,
    "010010000100110000001001110001101000": 1,
    "011010000100000101110110110111000110": 1,
    "010010000100111100100111001101000100": 1,
    "010010000100110000110111000000100100": 1,
    "010010000100011011101111001110010111": 1,
    "000000000100101001111101011110010001": 1,
    "010000000100110000110001000001111001": 1,
    "010010000100111010111101011101101010": 1,
    "000010000100110010101101011010011001": 1,
    "010010000100011100111010000011010000": 1,
    "010010010100101011100000100100110101": 1,
    "011010000100110100000001000100100110": 1,
    "010010000100000001001001010100110010": 1,
    "010010000100110001110011111110100001": 1,
    "000010000100000111110100110001010111": 1,
    "010010000000100000111101011111100101": 1,
    "000000000100010111101011100111110110": 1,
    "010110000000010101111011011000111010": 1,
    "010010000100000101011000000010010010": 1,
    "000010000100101100101110010011111010": 1,
    "010010000000000000110001110000101001": 1,
    "010010000100110011000100010110100100": 1,
    "010010000100011010011111111111100101": 1,
    "010010000100111010001100010000110010": 1,
    "000010001100000001010110010101010001": 1,
    "010010000100001011100011000001000100": 1,
    "010010000100110001001100000000111111": 1,
    "010010000100101111001000100111000100": 1,
    "010010010100001100010001111001110101": 1,
    "000010000100110011010111001010101001": 1,
    "010011000100110100000100010111010100": 1,
    "010010000100110010000000111101010010": 1,
    "010010000100100010011100110010000011": 1,
    "010010000001100111101111000010101011": 1,
    "010010000100110111111000110100001010": 1,
    "010011000100001110001111110100101111": 1,
    "010010100100101100011101000000110111": 1,
    "010010000100011001100011011101111101": 1,
    "010010000100110101001101100001011010": 1,
    "110000010100101110011011001100101111": 1,
    "010010000110110111100101011110110111": 1,
    "010010000100100100000001010000110011": 1,
    "010011000100111100011000000100000010": 1,
    "010010000110100101101100001101110001": 1,
    "000010000110001110010001000001000000": 1,
    "010010001100000010010000001101011110": 1,
    "010010000100011000101111101011010100": 1,
    "010010000100100111101001001001101001": 1,
    "010010000100001110111010011101100010": 1,
    "010010000100000110101011001010011001": 1,
    "010010000100000000111011011000111101": 1,
    "010010000100100111110101000011000101": 1,
    "010010000100010100000101001011010011": 1,
    "010010000100111111001011101011110000": 1,
    "011010001100011011110101000011101010": 1,
    "010010000110110100100011010000100001": 1,
    "010010000000101000000111011111001000": 1,
    "010000000100101010011000110011100011": 1,
    "000010000100010010001000110001011101": 1,
    "010010000000000000111110101100100010": 1,
    "010010000100111100101010110000010001": 1,
    "000000000100011101101111100000000000": 1,
    "010010000100111101011010101101100111": 1,
    "010010000100011110000110111000001110": 1,
    "010010000100101000110000100001010000": 1,
    "010010000100100100110011101111100000": 1,
    "000010000100010010110111011100001110": 1,
    "010010000100111110110010011010110111": 1,
    "010010000100010010000110110100010011": 1,
    "010010100100001110111000100100101111": 1,
    "010010000100000000010100001111100111": 1,
    "010010000100001100011101011010101001": 1,
    "010010000100111111111010111010100001": 1,
    "010010000100111100110101011110101110": 1,
    "010010000100000110111100110111010110": 1,
    "010010100100001101100000011101100011": 1,
    "000010000100001011101101100011001000": 1,
    "010010000100010111100001011010001000": 1,
    "010010000000010001110011100110001001": 1,
    "010010000100000001110100110110111100": 1,
    "010011000100001010001101011101101111": 1,
    "010010000100101111100100110010101000": 1,
    "010010000100111000101000000110011010": 1,
    "010010000100011010000111010110000110": 1,
    "011010000100111100011011010111110000": 1,
    "010010000000001100010001001011011011": 1,
    "010010000100111101111100011000010001": 1,
    "010010000100101000101001110010101111": 1,
    "010010000100101001111111010111100101": 1,
    "010000000100101010110000101111001001": 1,
    "010010000100001100111000100100001011": 1,
    "010010000100010000010111010011100100": 1,
    "010010000100111101101110111000111010": 1,
    "010010010100100011001110101111011011": 1,
    "010010000100011011000100110001101100": 1,
    "010010000100001001101100100100110111": 1,
    "010011000100001100111111011101100100": 1,
    "010010000100100100001101001001011101": 1,
    "010010100100011001101010101000011111": 1,
    "010010001100111111010101010111101010": 1,
    "010000010100111010011110001111100111": 1,
    "010010000100110001111111011001100111": 1,
    "110010000100110010011111100001110100": 1,
    "010010000100011100000001000000100010": 1,
    "010010000100100010111111111101111110": 1,
    "000000000100110000100111101110000011": 1,
    "000010000100100000111100101001110100": 1,
    "110010000100100010100101110010101001": 1,
    "010010000100011111110100000111110000": 1,
    "010010000100000111001110101011101000": 1,
    "010010000100111101001001011101111100": 1,
    "010010001000000001011011001110011010": 1,
    "010010000100011100011110110100001010": 1,
    "010010100100000011001001111100100011": 1,
    "000010000100101000110111101011111011": 1,
    "010111000000001010101001010110011111": 1,
    "010010000100011100111101101000010011": 1,
    "000010000100101010011111010010010110": 1,
    "011010000100000011101000111001101100": 1,
    "110010000100101101100011110110111100": 1,
    "010010000100110001111110111001110010": 1,
    "010010000100110100001000011101000110": 1,
    "000000000100011110011011011001111111": 1,
    "010010000100100010110111110110111011": 1,
    "000010000100000101001110001100100000": 1,
    "000010000100111011111101101011000101": 1,
    "110010000100000101000101000000100011": 1,
    "010000000110100111000001001111101011": 1,
    "010000010100101110111111000101110001": 1,
    "010010000100100010100000011010111101": 1,
    "010010010100101011111000100001001001": 1,
    "010010000100000010011111100111011100": 1,
    "010000000100010111011001111100111010": 1,
    "010010001100011010010011000010001110": 1,
    "000010000100100010000000010110010000": 1,
    "010000000100001001011111011010101110": 1,
    "010010000100111100100100111111100100": 1,
    "100010010100111011110000101101010100": 1,
    "010000000100110010010011101010010001": 1,
    "000010000100000010011101001110011010": 1,
    "010010000100011110000000100101100001": 1,
    "010010000100001000101000100001111101": 1,
    "010010000100111101011100100111011111": 1,
    "010010000100100111010111000100001001": 1,
    "010010000100011110010001011000110111": 1,
    "010010000100100000111000100011000000": 1,
    "010010000100111000010011111111011011": 1,
    "010010001100011001101000110001110001": 1,
    "100000000100110011111101010101101111": 1,
    "110010000100110000001001011110010111": 1,
    "010010000100101111000001110001010001": 1,
    "010010000100011111011001111000010110": 1,
    "010000000100110001011101110110010010": 1,
    "010000000100000111100110111110010110": 1,
    "010010100100100010110100111101000010": 1,
    "010010000100100011010100011110000000": 1,
    "000010000100111100100001001110101100": 1,
    "111010100100010011110000111100001000": 1,
    "110010000100010000000110110010011001": 1,
    "010000000100001111101111000011011100": 1,
    "010000000100111000000101110100000111": 1,
    "011010000100001010110101000011101111": 1,
    "010000000100000101000100111100100101": 1,
    "110010000100110010111000110110000101": 1,
    "010010000100010000000001000010100101": 1,
    "010000010100010011110110101111111110": 1,
    "010010000100011010110111011101001011": 1,
    "010000000100000111001010000111000000": 1,
    "010010000100001110010100110001001101": 1,
    "010010000100000000111011100101011010": 1,
    "011010100100100000000101101001010011": 1,
    "000010000000001100101100001000110111": 1,
    "010010000100100111100010110100110001": 1,
    "010010000100011010110101110110000011": 1,
    "010010000100001011011111001110111000": 1,
    "010010000100001100000100110010011010": 1,
    "010010000100100000011101010010100111": 1,
    "010010000100101010010011001111100000": 1,
    "010010000100001011110110111011011111": 1,
    "010010000100110100010111000111100001": 1,
    "010010000100000010101010000010100001": 1,
    "010010000100110010110011001000111011": 1,
    "110010000100100101111010100011111100": 1,
    "010000000100111001100001100100100001": 1,
    "010010000100010110010110001101001010": 1,
    "010010000100011100001010100101010100": 1,
    "010010100100001000000010100010100110": 1,
    "010000000100001100111110010100110111": 1,
    "010010000100010001100101000011101110": 1,
    "010010000100111101111100110110000100": 1,
    "010010000100100101011000100001110110": 1,
    "010010000100011101100110001010110001": 1,
    "010010000100001000011001101001011100": 1,
    "010010000100110011101111011111110100": 1
  },
  {
    "010010000100110101001111001011111010": 1,
    "010010000100000111101000000101010100": 1,
    "001011000100111111001111111101100011": 1,
    "010010010100001110010110011011101100": 1,
    "110010000100101001001100011101100011": 1,
    "000010000100101110100000011000110000": 1,
    "010011000100001010010111100001011101": 1,
    "010010000100001001100011001111000011": 1,
    "010010000000110101011001111101101110": 1,
    "000010000100010001111001100110000111": 1,
    "010010000100010100100010100110101101": 1,
    "000010000100111011010000100111101010": 1,
    "010011000100100110101111100111101001": 1,
    "010010000100000111110010110000100111": 1,
    "010000000110000101111100110011100010": 1,
    "010010000100111001000000000111111000": 1,
    "010010000101011001101100000101101111": 1,
    "010010000100011011101100101011111001": 1,
    "010010100100100010110011001111100000": 1,
    "110010000100101100001101101011100010": 1,
    "001010000100101101111111010110101100": 1,
    "010010000110001100101111011101101101": 1,
    "010010000100110000110111100011100101": 1,
    "010010000100000111011011100011001111": 1,
    "010000000100110110101101011000111100": 1,
    "010010000100010100011001111011000000": 1,
    "110010001000101000101111100001001010": 1,
    "000010000100110010010101011110110000": 1,
    "010010000100010101001011011111010110": 1,
    "010000000100010111001101101001011000": 1,
    "000010000100101100101000110110100010": 1,
    "000010000100111101101011010100110100": 1,
    "010010000000111101111100011001011000": 1,
    "000010000100001010101111100011000101": 1,
    "010010000100100011100001101110001100": 1,
    "010010000100001110110000110000111010": 1,
    "010010000100001101010100100010111010": 1,
    "010010000100011000000110000101001010": 1,
    "010000010100001100111000101000010010": 1,
    "010001000100110000111011000001110101": 1,
    "010010000100010000111011011011101101": 1,
    "010000000100000000110000101100011100": 1,
    "010010010100100011100111001001011100": 1,
    "010000000100110110000110001000001000": 1,
    "000010000000011000000111000111011111": 1,
    "010010000100010000111110101111010110": 1,
    "010110000000111001001110000101001110": 1,
    "010010000100011100110001011010100000": 1,
    "011010000100100001101101101001010010": 1,
    "010010000000011110000001101011110001": 1,
    "010010000100011010001001011100111110": 1,
    "010010000100100000000110001010100011": 1,
    "010010000100100101100011101011101010": 1,
    "010010000100110001011000011000100001": 1,
    "000010000100100000000101101100000110": 1,
    "110010000100111100101011000111010111": 1,
    "000010001000000111011011110011110010": 1,
    "011010000100101000101011010011000111": 1,
    "010010000110000110010101001010111000": 1,
    "000011000000100111101000001110000110": 1,
    "110010000100111010011111000111111000": 1,
    "010000000100010101011010010000011011": 1,
    "010010001100111001010111011101100100": 1,
    "000000000100111011101001111000101110": 1,
    "111010000100010100010010111001100100": 1,
    "010010000100010001000001010011001010": 1,
    "010010000000001010001111100000000001": 1,
    "010011000100011110001110110111100101": 1,
    "010010000100101000111010110111101100": 1,
    "000010000100000000000100101101101010": 1,
    "010010000100100001101111000011100101": 1,
    "010000000100010111101100100110110100": 1,
    "000110000100010100001100011110100000": 1,
    "010010000100001101000010111110110100": 1,
    "010010000101011111000101000110000010": 1,
    "010010000100101001111100001000001100": 1,
    "010010000100100001010110110000101001": 1,
    "110010000101010110111101000101011111": 1,
    "010000100101001101010000101100001110": 1,
    "010010000000111000101010100011000111": 1,
    "010010000100011101111110111110010010": 1,
    "010010000110000110110100000001010010": 1,
    "010010100100110111000111111101001010": 1,
    "010010000000001000110111001110000011": 1,
    "010010000100010111100110001010111101": 1,
    "010011001100110111010111011010011001": 1,
    "000010000100001101110110001010001111": 1,
    "010000100100001111110011101101011001": 1,
    "110010000100001110101010101011001100": 1,
    "110010000100101110000010100010001101": 1,
    "010000000100010001001001010100110110": 1,
    "000010000100111000010101011100000110": 1,
    "011010000100001001100011011101001000": 1,
    "010010000100001111010110000100011000": 1,
    "010010000100001011000100111101111010": 1,
    "110010010101010110100010100110011010": 1,
    "010010000100110000000110100010001010": 1,
    "110010000100101000011000010110001101": 1,
    "010010000100110010010100010100110001": 1,
    "110010000100100001001101100001001000": 1,
    "000110000101111101010001110010011011": 1,
    "010010000100001011101001000100000110": 1,
    "000010000000100001000111000111101100": 1,
    "010010000100100000110111001001101001": 1,
    "010010000100101100000000101111100111": 1,
    "000000000100100010111100000111101001": 1,
    "100010000100001110111101100000110101": 1,
    "010010000000101011111010110010000010": 1,
    "010010000100001110110110010101010010": 1,
    "010010000100100110111111011110011000": 1,
    "010010000100010110010110111110100011": 1,
    "010010000111111101010000101001100010": 1,
    "000010000100100000101110001001010101": 1,
    "010010000100001111111101001010011000": 1,
    "010010000100111100111100011101010001": 1,
    "010010000100001011010110011000110111": 1,
    "010010000100100010111100101000010001": 1,
    "010010000100101111101011011011011100": 1,
    "010010000100101100111110110000100010": 1,
    "010010000110100001100011100001001001": 1,
    "010010001100001001110101000110101000": 1,
    "010010000100000001110110110101100001": 1,
    "000010000100111101110100001010010001": 1,
    "011010010100011100111111010001101110": 1,
    "010010000100101110010011010100110011": 1,
    "000110000100110000001010110001010111": 1,
    "011010000100000011110001010110111011": 1,
    "010010100100110011010000000011000101": 1,
    "000010010000010010100001111010000100": 1,
    "010000000100010010111001000100011001": 1,
    "000010000100010000111001101011011010": 1,
    "010010000100000010010101000010001110": 1,
    "010001000100011110110110001101011111": 1,
    "010110001110000010011010100011001010": 1,
    "010000000010111010101100111101101000": 1,
    "010010000100011011010010011000110101": 1,
    "001000000100101111011000110000010110": 1,
    "010010000100101000111011101010011010": 1,
    "010010000100011100001101010100000010": 1,
    "010010000100010110111111101000001010": 1,
    "010010000000000100000101010001010000": 1,
    "000000000100010101101010011111101001": 1,
    "010010000110000101000000011001000001": 1,
    "010010000100101001100001001000011100": 1,
    "010010000100010001111110101010111011": 1,
    "010010000100001000111001000010110100": 1,
    "011010010100000101111011101011000100": 1,
    "010010000100101110110101110110100011": 1,
    "010000000100110011110010011011000101": 1,
    "010010000100101110100100101111001110": 1,
    "000000000100010101010001111100100111": 1,
    "000000000100011111100010001011110100": 1,
    "010010000100010100101000011010110010": 1,
    "000010000100100110111011100101010101": 1,
    "010010101000000100011110101010001010": 1,
    "010010010110000101000100100101011110": 1,
    "010010000100000111000100110011100111": 1,
    "011010000100011111111011110000101011": 1,
    "010010000100100000110010100010111011": 1,
    "010010000100000000001010100001010000": 1,
    "010010000100001111110101110110101001": 1,
    "010010000100101000111111110111111100": 1,
    "010000000100010011000011001111010100": 1,
    "010010000100111000100111001100101111": 1,
    "010010000100011110010110011100011000": 1,
    "000010000100110100001011111011000000": 1,
    "010010010100100010001001111000000110": 1,
    "010010000100001101111100100101011100": 1,
    "000010000100100011010111011010011000": 1,
    "000010010100000110001011011101000111": 1,
    "010010000100100111111100000010101010": 1,
    "010010000100101011101010101011000101": 1,
    "010010000000110111010101111100010111": 1,
    "010011000100010001001010011111011110": 1,
    "010010000100100001110101101101110101": 1,
    "000011000100111101011000011111101001": 1,
    "000010000100010001000110110001100110": 1,
    "010010000100110011010100001100001100": 1,
    "010110010100011101100010101000011101": 1,
    "010010000100100011001101100101101100": 1,
    "000010000100101101011110100000110110": 1,
    "010010101100010100110111101001000101": 1,
    "010010000100001100110011100101100001": 1,
    "010000000100101110000001011111001110": 1,
    "010010000110110010111101110100010111": 1,
    "010010000100010110100010000011010100": 1,
    "010010000100111101110101000000001111": 1,
    "000010000100000101110101100111101110": 1,
    "010010000100000010000110110110100110": 1,
    "010010000100110000010001101110100111": 1,
    "000010000100001000011111000111110100": 1,
    "010011000100111000010011000001001110": 1,
    "010011000110000010111010001001010100": 1,
    "010000000100010001000111110011101100": 1,
    "010010000100110101000001111010010101": 1,
    "000010000100011101011111000100000001": 1,
    "010010000100001101010101101010000010": 1,
    "010000000100011000001001000001110000": 1,
    "010010010100010100110001111110001010": 1,
    "010010000100101111111001001011100110": 1,
    "010010000100110101100011110110000001": 1,
    "010100100100000101001001111001101100": 1,
    "010010000100001011110110101101100010": 1,
    "000000000100100100101010011011110010": 1,
    "010010000000011110100010001010000010": 1,
    "010000000100010110010111111111000110": 1,
    "010010000100011011111001010101111011": 1,
    "000000100100110000110011110100111001": 1,
    "010010000100101100011101111110011001": 1,
    "010011000100011100001001010001111001": 1,
    "010010000000011100010000000000000110": 1,
    "011010000100101100110001101010100101": 1,
    "010000000100110011100111100011011000": 1,
    "000010000110100100100001111001010100": 1,
    "010010100100101111000100011011110110": 1,
    "010010000100001111100110011011110111": 1,
    "010010000100100111010111100110010100": 1,
    "011010000100000010010111101000011101": 1,
    "010010000100100100000011010110101010": 1,
    "000010000100001110100111000011110110": 1,
    "010010000100001010010000110001101110": 1,
    "010001000100100001010000011000011101": 1,
    "000110000100001111001101001011100101": 1,
    "011110001100100110001111010110101101": 1,
    "001010100110100111110010101100010010": 1,
    "110010001100101010000011101001111111": 1,
    "010000000100011101111000011101111000": 1,
    "010010000100111011101001100011111101": 1,
    "010010000100110011001000111110111000": 1,
    "010010000100011110011011000101001000": 1,
    "010010000100101010011000100011010010": 1,
    "110010000100101001110000001011101110": 1,
    "010000000110100100110110111011111100": 1,
    "010000110100011011101000100101010111": 1,
    "010010000100101010011110001110111101": 1,
    "010010000100000111010000010100001111": 1,
    "010010100100101111101011000100101100": 1,
    "010010000100001101100011010101011000": 1,
    "010010000100010001101101111011100011": 1,
    "010010000100100000110111101001111101": 1,
    "010010000100001100100101001111000001": 1,
    "010010000100010100000011100100110110": 1,
    "010010000101010101101000000101000110": 1,
    "010010100110110010110001100111001011": 1,
    "010010000100111111100100000010101001": 1,
    "000010000100100100010111101111010010": 1,
    "110010000100110001110100110101000010": 1,
    "110010000100101010110100111010100001": 1,
    "010010000100110010001000110010000011": 1,
    "010010000100100110000001001001110010": 1,
    "110010000100110010100001000101010111": 1,
    "010010010100111101000001111111000000": 1,
    "110010000100011100001111001111000010": 1,
    "010010000100111100100010100001001110": 1,
    "000000000100001100011110111010001001": 1,
    "010000000100100111111011011010011010": 1
  }
]
metrics
{
  "caller": "qiskit",
  "qiskit_version": "qiskit_ibm_runtime-0.52.1,qiskit-2.6.2*,qiskit_aer-0.17.2*",
  "timestamps": {
    "created": "2026-11-21T02:30:54.384445Z",
    "finished": "2026-11-21T02:31:01.206291Z",
    "running": "2026-11-21T02:30:56.146732Z"
  },
  "usage": {
    "qpu_charge_time_seconds": 2,
    "value": 0.030651,
    "unit": "resource_units",
    "status": "complete",
    "details": [
      {
        "value": 0.030651,
        "unit": "resource_units",
        "metric": {
          "id": "caffe3ca-729c-5750-8777-df63bbf8bfd9",
          "value": 2
        }
      }
    ]
  },
  "circuits_execution_time_ns": 134986240
}
analysis
{
  "Bob": {
    "raw_byte_exact": 161,
    "decoded_byte_exact": 228,
    "rescued": 69,
    "lost": 2,
    "uncorrectable_flags": 9,
    "wrong_returned": 19,
    "received_words": {
      "010000000100": 16,
      "010010100100": 13,
      "010010001100": 6,
      "010010000110": 5,
      "000010000100": 17,
      "010010000100": 130,
      "010001000100": 1,
      "010010010100": 5,
      "011010000100": 8,
      "010000000101": 1,
      "010010100000": 1,
      "010010000000": 8,
      "010010000101": 2,
      "000010000000": 2,
      "010110000100": 2,
      "110010000100": 10,
      "010011000100": 6,
      "011010010100": 1,
      "010010110100": 1,
      "000000000100": 5,
      "010110000000": 1,
      "000010001100": 1,
      "010010000001": 1,
      "110000010100": 1,
      "000010000110": 1,
      "011010001100": 1,
      "010000010100": 3,
      "010010001000": 1,
      "010111000000": 1,
      "010000000110": 1,
      "100010010100": 1,
      "100000000100": 1,
      "111010100100": 1,
      "011010100100": 1
    },
    "codeword_bit_errors": {
      "0": 130,
      "1": 98,
      "2": 23,
      "3": 5
    }
  },
  "Charlie": {
    "raw_byte_exact": 134,
    "decoded_byte_exact": 202,
    "rescued": 71,
    "lost": 3,
    "uncorrectable_flags": 13,
    "wrong_returned": 41,
    "received_words": {
      "010010000100": 103,
      "001011000100": 1,
      "010010010100": 5,
      "110010000100": 13,
      "000010000100": 24,
      "010011000100": 6,
      "010010000000": 11,
      "010000000110": 2,
      "010010000101": 3,
      "010010100100": 5,
      "001010000100": 1,
      "010010000110": 6,
      "010000000100": 17,
      "110010001000": 1,
      "010000010100": 1,
      "010001000100": 3,
      "000010000000": 2,
      "010110000000": 1,
      "011010000100": 7,
      "000010001000": 1,
      "000011000000": 1,
      "010010001100": 2,
      "000000000100": 7,
      "111010000100": 1,
      "000110000100": 3,
      "110010000101": 1,
      "010000100101": 1,
      "010011001100": 1,
      "010000100100": 1,
      "110010010101": 1,
      "000110000101": 1,
      "100010000100": 1,
      "010010000111": 1,
      "011010010100": 2,
      "000010010000": 1,
      "010110001110": 1,
      "010000000010": 1,
      "001000000100": 1,
      "010010101000": 1,
      "010010010110": 1,
      "000010010100": 1,
      "000011000100": 1,
      "010110010100": 1,
      "010010101100": 1,
      "010011000110": 1,
      "010100100100": 1,
      "000000100100": 1,
      "000010000110": 1,
      "011110001100": 1,
      "001010100110": 1,
      "110010001100": 1,
      "010000110100": 1,
      "010010100110": 1
    },
    "codeword_bit_errors": {
      "0": 103,
      "1": 99,
      "2": 37,
      "3": 16,
      "4": 1
    }
  }
}

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.

field-report/outputs/Charlie-A-simulator.json · full record
{
  "shots": 256,
  "analysis": {
    "Bob": {
      "raw_byte_exact": 256,
      "decoded_byte_exact": 256,
      "rescued": 0,
      "lost": 0,
      "uncorrectable_flags": 0,
      "wrong_returned": 0,
      "received_words": {
        "010010000100": 256
      },
      "codeword_bit_errors": {
        "0": 256
      }
    },
    "Charlie": {
      "raw_byte_exact": 256,
      "decoded_byte_exact": 256,
      "rescued": 0,
      "lost": 0,
      "uncorrectable_flags": 0,
      "wrong_returned": 0,
      "received_words": {
        "010010000100": 256
      },
      "codeword_bit_errors": {
        "0": 256
      }
    }
  },
  "verified_native_cz": [
    24,
    96
  ]
}
noise-wall/results/Charlie-A-simulator.json · full record
{
  "shots": 256,
  "analysis": {
    "Bob": {
      "raw_byte_exact": 256,
      "decoded_byte_exact": 256,
      "rescued": 0,
      "lost": 0,
      "uncorrectable_flags": 0,
      "wrong_returned": 0,
      "received_words": {
        "010010000100": 256
      },
      "codeword_bit_errors": {
        "0": 256
      }
    },
    "Charlie": {
      "raw_byte_exact": 256,
      "decoded_byte_exact": 256,
      "rescued": 0,
      "lost": 0,
      "uncorrectable_flags": 0,
      "wrong_returned": 0,
      "received_words": {
        "010010000100": 256
      },
      "codeword_bit_errors": {
        "0": 256
      }
    }
  },
  "verified_native_cz": [
    24,
    96
  ]
}

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_ascii.pyQuantum Field Report.pdf / Experiment-source.zip · 6,714 bytes
  • charlie_ascii.pyThrough the Noise Wall.pdf / Kingston measurements and source.zip · 6,714 bytes
field-report/outputs/charlie_ascii.py · complete source
"""Compare reading the teleported Hamming word at Bob and two SWAPs beyond Bob."""
import getpass
import logging
import sys
from collections import Counter, defaultdict

from qiskit import QuantumCircuit, transpile
from qiskit_aer import AerSimulator
from qiskit_ibm_runtime import QiskitRuntimeService
from qiskit_ibm_runtime.fake_provider import FakeKingston

from graph156 import save
from hamming_ascii import VALUE, WIDTH, analyze, encode
from run_switch_puzzles import ROOT, SHOTS, execute, load
from teleport_ascii_a import SEED, circuit

HW = ROOT / "Charlie-A-Kingston.json"
SIM = ROOT / "Charlie-A-simulator.json"
STATUS = ROOT.parent / "work" / "charlie-status.json"
TAG = "charlie-two-swaps-ascii-a-kingston-20261120"
RECEIVERS = ("Bob", "Charlie")


def paths_for(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}
    links = defaultdict(dict)
    for (a, b), gate in backend.target["cz"].items():
        if not (bad & {a, b}) and tuple(sorted((a, b))) not in blocked and gate and gate.error is not None:
            links[a][b] = links[b][a] = gate.error

    def extend(path):
        if len(path) == 5:
            yield path
        else:
            for nxt in links[path[-1]]:
                if nxt not in path:
                    yield from extend((*path, nxt))

    def cost(p):
        readout = sum(props.readout_error(q) for q in (p[0], p[1], p[2], p[4]))
        return readout + sum(weight * links[a][b] for weight, a, b in zip((1, 1, 3, 3), p, p[1:]))

    choices = sorted((p for q in links for p in extend((q,))), key=cost)
    previous = load(ROOT / "Hamming-A-Kingston.json")["triples_by_position"]
    selected = {}
    used = set()
    # Prefer an extension of the previous triple when the extra sites are free.
    for i, triple in enumerate(previous):
        candidates = (p for p in choices if p[:3] == tuple(triple) and used.isdisjoint(p))
        path = next(candidates, None)
        if path:
            selected[i] = path
            used.update(path)
    for i in range(WIDTH):
        if i not in selected:
            path = next(p for p in choices if used.isdisjoint(p))
            selected[i] = path
            used.update(path)
    return [selected[i] for i in range(WIDTH)]


def make(receiver, fast=False):
    template = circuit("teleport", fast, encode(VALUE), WIDTH)
    # Keep Alice's measurements, even though she never uses those wires again.
    for i in reversed(range(len(template.data))):
        inst = template.data[i]
        if inst.operation.name == "measure" and template.find_bit(inst.clbits[0]).index >= 2*WIDTH:
            del template.data[i]
    q = QuantumCircuit(5 * WIDTH, 3 * WIDTH, name=receiver)
    original = [5*i+j for i in range(WIDTH) for j in range(3)]
    q.compose(template, qubits=original, clbits=list(range(template.num_clbits)), inplace=True)
    for i in range(WIDTH):
        bob = 5*i+2
        endpoint = bob
        if receiver == "Charlie":
            q.swap(bob, bob+1)
            q.swap(bob+1, bob+2)
            endpoint = bob+2
        q.measure(endpoint, 2*WIDTH+i)
    return q


def compile_pair(backend, paths):
    fast = all(backend.target.instruction_supported("measure_2", (q,)) for p in paths for q in p[:2])
    layout = [q for p in paths for q in p]
    assert len(set(layout)) == 5*WIDTH
    result = []
    for receiver in RECEIVERS:
        q = transpile(make(receiver, fast), backend, initial_layout=layout, optimization_level=0,
                      routing_method="none", seed_transpiler=SEED, num_processes=1)
        backend.check_faulty(q)
        measured = {}
        edges = Counter()
        for inst in q.data:
            physical = tuple(q.find_bit(w).index for w in inst.qubits)
            if inst.operation.name in ("measure", "measure_2"):
                measured[q.find_bit(inst.clbits[0]).index] = physical[0]
            if inst.operation.name == "cz":
                edges[tuple(sorted(physical))] += 1
        expected = {2*i+j: p[j] for i, p in enumerate(paths) for j in (0, 1)}
        expected.update({2*WIDTH+i: p[2 if receiver == "Bob" else 4] for i, p in enumerate(paths)})
        expected_edges = Counter()
        for p in paths:
            for j, n in enumerate((1, 1) if receiver == "Bob" else (1, 1, 3, 3)):
                expected_edges[tuple(sorted(p[j:j+2]))] = n
        assert measured == expected and edges == expected_edges
        result.append(q)
    return result


def simulate():
    sim = AerSimulator(method="stabilizer")
    results = sim.run([make(r) for r in RECEIVERS], shots=SHOTS, seed_simulator=SEED).result()
    rows = {r: analyze(results.get_counts(i)) for i, r in enumerate(RECEIVERS)}
    assert all(v["raw_byte_exact"] == v["decoded_byte_exact"] == SHOTS for v in rows.values())
    device = FakeKingston()
    compiled = compile_pair(device, paths_for(device))
    save(SIM, dict(shots=SHOTS, analysis=rows, verified_native_cz=[q.count_ops()["cz"] for q in compiled]))
    print({r: row["decoded_byte_exact"] for r, row in rows.items()})


def hardware():
    rec = load(HW)
    if rec.get("analysis"):
        return
    assert SIM.exists()
    save(STATUS, {"stage": "waiting for private key"})
    key = getpass.getpass("IBM Cloud API key for Kingston (hidden): ").strip()
    if not key:
        save(STATUS, {"stage": "cancelled before login"})
        return
    save(STATUS, {"stage": "connecting"})
    service = QiskitRuntimeService(channel="ibm_quantum_platform", token=key, plans_preference=["open"], region="us-east")
    backend = service.backend("ibm_kingston")
    circuits = []
    if not rec:
        paths = paths_for(backend)
        circuits = compile_pair(backend, paths)
        rec = dict(backend=backend.name, receivers=RECEIVERS, paths_by_hamming_position=paths,
                   native_counts=[dict(q.count_ops()) for q in circuits])
    rec = execute(service, backend, HW, TAG, rec, lambda: circuits)
    rec["analysis"] = {r: analyze(counts) for r, counts in zip(RECEIVERS, rec["counts"], strict=True)}
    save(HW, rec)
    save(STATUS, {"stage": "finished"})


if __name__ == "__main__":
    if sys.argv[1:] == ["simulate"]:
        simulate()
    elif sys.argv[1:] == ["hardware"]:
        logging.disable(logging.CRITICAL)
        try:
            hardware()
        except Exception as exc:
            import traceback
            save(STATUS, {"stage": "error", "type": type(exc).__name__,
                          "frames": [f.name for f in traceback.extract_tb(exc.__traceback__)]})
            print(type(exc).__name__)
            input("Press Enter to close.")
noise-wall/source/charlie_ascii.py · complete source
"""Compare reading the teleported Hamming word at Bob and two SWAPs beyond Bob."""
import getpass
import logging
import sys
from collections import Counter, defaultdict

from qiskit import QuantumCircuit, transpile
from qiskit_aer import AerSimulator
from qiskit_ibm_runtime import QiskitRuntimeService
from qiskit_ibm_runtime.fake_provider import FakeKingston

from graph156 import save
from hamming_ascii import VALUE, WIDTH, analyze, encode
from run_switch_puzzles import ROOT, SHOTS, execute, load
from teleport_ascii_a import SEED, circuit

HW = ROOT / "Charlie-A-Kingston.json"
SIM = ROOT / "Charlie-A-simulator.json"
STATUS = ROOT.parent / "work" / "charlie-status.json"
TAG = "charlie-two-swaps-ascii-a-kingston-20261120"
RECEIVERS = ("Bob", "Charlie")


def paths_for(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}
    links = defaultdict(dict)
    for (a, b), gate in backend.target["cz"].items():
        if not (bad & {a, b}) and tuple(sorted((a, b))) not in blocked and gate and gate.error is not None:
            links[a][b] = links[b][a] = gate.error

    def extend(path):
        if len(path) == 5:
            yield path
        else:
            for nxt in links[path[-1]]:
                if nxt not in path:
                    yield from extend((*path, nxt))

    def cost(p):
        readout = sum(props.readout_error(q) for q in (p[0], p[1], p[2], p[4]))
        return readout + sum(weight * links[a][b] for weight, a, b in zip((1, 1, 3, 3), p, p[1:]))

    choices = sorted((p for q in links for p in extend((q,))), key=cost)
    previous = load(ROOT / "Hamming-A-Kingston.json")["triples_by_position"]
    selected = {}
    used = set()
    # Prefer an extension of the previous triple when the extra sites are free.
    for i, triple in enumerate(previous):
        candidates = (p for p in choices if p[:3] == tuple(triple) and used.isdisjoint(p))
        path = next(candidates, None)
        if path:
            selected[i] = path
            used.update(path)
    for i in range(WIDTH):
        if i not in selected:
            path = next(p for p in choices if used.isdisjoint(p))
            selected[i] = path
            used.update(path)
    return [selected[i] for i in range(WIDTH)]


def make(receiver, fast=False):
    template = circuit("teleport", fast, encode(VALUE), WIDTH)
    # Keep Alice's measurements, even though she never uses those wires again.
    for i in reversed(range(len(template.data))):
        inst = template.data[i]
        if inst.operation.name == "measure" and template.find_bit(inst.clbits[0]).index >= 2*WIDTH:
            del template.data[i]
    q = QuantumCircuit(5 * WIDTH, 3 * WIDTH, name=receiver)
    original = [5*i+j for i in range(WIDTH) for j in range(3)]
    q.compose(template, qubits=original, clbits=list(range(template.num_clbits)), inplace=True)
    for i in range(WIDTH):
        bob = 5*i+2
        endpoint = bob
        if receiver == "Charlie":
            q.swap(bob, bob+1)
            q.swap(bob+1, bob+2)
            endpoint = bob+2
        q.measure(endpoint, 2*WIDTH+i)
    return q


def compile_pair(backend, paths):
    fast = all(backend.target.instruction_supported("measure_2", (q,)) for p in paths for q in p[:2])
    layout = [q for p in paths for q in p]
    assert len(set(layout)) == 5*WIDTH
    result = []
    for receiver in RECEIVERS:
        q = transpile(make(receiver, fast), backend, initial_layout=layout, optimization_level=0,
                      routing_method="none", seed_transpiler=SEED, num_processes=1)
        backend.check_faulty(q)
        measured = {}
        edges = Counter()
        for inst in q.data:
            physical = tuple(q.find_bit(w).index for w in inst.qubits)
            if inst.operation.name in ("measure", "measure_2"):
                measured[q.find_bit(inst.clbits[0]).index] = physical[0]
            if inst.operation.name == "cz":
                edges[tuple(sorted(physical))] += 1
        expected = {2*i+j: p[j] for i, p in enumerate(paths) for j in (0, 1)}
        expected.update({2*WIDTH+i: p[2 if receiver == "Bob" else 4] for i, p in enumerate(paths)})
        expected_edges = Counter()
        for p in paths:
            for j, n in enumerate((1, 1) if receiver == "Bob" else (1, 1, 3, 3)):
                expected_edges[tuple(sorted(p[j:j+2]))] = n
        assert measured == expected and edges == expected_edges
        result.append(q)
    return result


def simulate():
    sim = AerSimulator(method="stabilizer")
    results = sim.run([make(r) for r in RECEIVERS], shots=SHOTS, seed_simulator=SEED).result()
    rows = {r: analyze(results.get_counts(i)) for i, r in enumerate(RECEIVERS)}
    assert all(v["raw_byte_exact"] == v["decoded_byte_exact"] == SHOTS for v in rows.values())
    device = FakeKingston()
    compiled = compile_pair(device, paths_for(device))
    save(SIM, dict(shots=SHOTS, analysis=rows, verified_native_cz=[q.count_ops()["cz"] for q in compiled]))
    print({r: row["decoded_byte_exact"] for r, row in rows.items()})


def hardware():
    rec = load(HW)
    if rec.get("analysis"):
        return
    assert SIM.exists()
    save(STATUS, {"stage": "waiting for private key"})
    key = getpass.getpass("IBM Cloud API key for Kingston (hidden): ").strip()
    if not key:
        save(STATUS, {"stage": "cancelled before login"})
        return
    save(STATUS, {"stage": "connecting"})
    service = QiskitRuntimeService(channel="ibm_quantum_platform", token=key, plans_preference=["open"], region="us-east")
    backend = service.backend("ibm_kingston")
    circuits = []
    if not rec:
        paths = paths_for(backend)
        circuits = compile_pair(backend, paths)
        rec = dict(backend=backend.name, receivers=RECEIVERS, paths_by_hamming_position=paths,
                   native_counts=[dict(q.count_ops()) for q in circuits])
    rec = execute(service, backend, HW, TAG, rec, lambda: circuits)
    rec["analysis"] = {r: analyze(counts) for r, counts in zip(RECEIVERS, rec["counts"], strict=True)}
    save(HW, rec)
    save(STATUS, {"stage": "finished"})


if __name__ == "__main__":
    if sys.argv[1:] == ["simulate"]:
        simulate()
    elif sys.argv[1:] == ["hardware"]:
        logging.disable(logging.CRITICAL)
        try:
            hardware()
        except Exception as exc:
            import traceback
            save(STATUS, {"stage": "error", "type": type(exc).__name__,
                          "frames": [f.name for f in traceback.extract_tb(exc.__traceback__)]})
            print(type(exc).__name__)
            input("Press Enter to close.")

Personal comments

Personal comments will be added here.