deskmerc/ quantum

Transport controls / KINGSTON

Quantum Field Report

Repeat the route without the puzzle

Check whether a difficult puzzle path has a persistent problem with known zeros or ones.

IBM job ID
dc0fie6q4uuc73a2hs3g
Submitted
20 Nov 2026 · 19:51 CST
QPU charge
3 seconds
Backend
ibm_kingston
Sampling
256 shots per recorded setting/case
Provenance
Quantum Field Report, page 11.

The question

Check whether a difficult puzzle path has a persistent problem with known zeros or ones.

Circuit & method

Prepare known bits on the earlier top and typical routes. Compare direct readout with teleportation for 256 shots per case.

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

Results

For zero, top and typical teleportation passed 245/256 and 240/256; for one they passed 238/256 and 249/256. The ordering reversed with the input.

Measured outcomesAll-shot success; each bar runs from 0% to 100%.
best direct 1256/256 · 100.0%
best teleport 0245/256 · 95.7%
typical teleport 1249/256 · 97.3%
best teleport 1238/256 · 93.0%
typical direct 0251/256 · 98.0%
typical teleport 0240/256 · 93.8%
best direct 0256/256 · 100.0%
typical direct 1250/256 · 97.7%

What this supports

This control gives little support to a persistent zero-specific defect on the top route. It cannot identify the cause of the earlier puzzle losses.

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
paths
{
  "best": [
    57,
    47,
    48
  ],
  "typical": [
    136,
    143,
    142
  ]
}
settings
[
  {
    "chain": "best",
    "bit": 1,
    "mode": "direct",
    "fast_mid_measure": false
  },
  {
    "chain": "best",
    "bit": 0,
    "mode": "teleport",
    "fast_mid_measure": true
  },
  {
    "chain": "typical",
    "bit": 1,
    "mode": "teleport",
    "fast_mid_measure": true
  },
  {
    "chain": "best",
    "bit": 1,
    "mode": "teleport",
    "fast_mid_measure": true
  },
  {
    "chain": "typical",
    "bit": 0,
    "mode": "direct",
    "fast_mid_measure": false
  },
  {
    "chain": "typical",
    "bit": 0,
    "mode": "teleport",
    "fast_mid_measure": true
  },
  {
    "chain": "best",
    "bit": 0,
    "mode": "direct",
    "fast_mid_measure": false
  },
  {
    "chain": "typical",
    "bit": 1,
    "mode": "direct",
    "fast_mid_measure": false
  }
]
prior_job
dc0fgc2nj2vs73ddum40
primary
top minus typical probability of reporting one given a teleported zero
bit_order
Bob, Alice X flag, Alice Z flag
stage
done
tag
kingston-fixed-chains-known-bits-20261120
shots_per_circuit
256
job_id
dc0fie6q4uuc73a2hs3g
counts
[
  {
    "100": 256
  },
  {
    "011": 58,
    "100": 2,
    "000": 61,
    "001": 68,
    "010": 58,
    "111": 5,
    "110": 2,
    "101": 2
  },
  {
    "101": 60,
    "110": 61,
    "100": 73,
    "111": 55,
    "010": 3,
    "001": 2,
    "011": 1,
    "000": 1
  },
  {
    "100": 58,
    "111": 65,
    "101": 56,
    "010": 4,
    "110": 59,
    "000": 5,
    "001": 5,
    "011": 4
  },
  {
    "000": 251,
    "100": 5
  },
  {
    "001": 56,
    "000": 60,
    "011": 59,
    "010": 65,
    "110": 5,
    "111": 4,
    "101": 5,
    "100": 2
  },
  {
    "000": 256
  },
  {
    "100": 250,
    "000": 6
  }
]
metrics
{
  "caller": "qiskit",
  "qiskit_version": "qiskit_ibm_runtime-0.52.1,qiskit-2.6.2*,qiskit_aer-0.17.2*",
  "timestamps": {
    "created": "2026-11-21T01:51:52.402865Z",
    "finished": "2026-11-21T01:53:22.036612Z",
    "running": "2026-11-21T01:52:39.336224Z"
  },
  "usage": {
    "qpu_charge_time_seconds": 3,
    "value": 0.037551,
    "unit": "resource_units",
    "status": "complete",
    "details": [
      {
        "value": 0.037551,
        "unit": "resource_units",
        "metric": {
          "id": "caffe3ca-729c-5750-8777-df63bbf8bfd9",
          "value": 3
        }
      }
    ]
  },
  "circuits_execution_time_ns": 536958208
}
rows
[
  {
    "chain": "best",
    "bit": 1,
    "mode": "direct",
    "fast_mid_measure": false,
    "wrong": 0
  },
  {
    "chain": "best",
    "bit": 0,
    "mode": "teleport",
    "fast_mid_measure": true,
    "wrong": 11
  },
  {
    "chain": "typical",
    "bit": 1,
    "mode": "teleport",
    "fast_mid_measure": true,
    "wrong": 7
  },
  {
    "chain": "best",
    "bit": 1,
    "mode": "teleport",
    "fast_mid_measure": true,
    "wrong": 18
  },
  {
    "chain": "typical",
    "bit": 0,
    "mode": "direct",
    "fast_mid_measure": false,
    "wrong": 5
  },
  {
    "chain": "typical",
    "bit": 0,
    "mode": "teleport",
    "fast_mid_measure": true,
    "wrong": 16
  },
  {
    "chain": "best",
    "bit": 0,
    "mode": "direct",
    "fast_mid_measure": false,
    "wrong": 0
  },
  {
    "chain": "typical",
    "bit": 1,
    "mode": "direct",
    "fast_mid_measure": false,
    "wrong": 6
  }
]

Simulation & checks

Gap in the supplied files. No standalone simulator record was recovered for this job. The source and any verification described above remain available.

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.

field-report/outputs/kingston_known_bits.py · complete source
"""Fixed-chain known-state teleportation and Bob-only direct readout controls."""
import getpass
import logging
import random
import sys
import traceback
from pathlib import Path

from qiskit import QuantumCircuit, transpile
from qiskit_aer import AerSimulator
from qiskit_ibm_runtime import QiskitRuntimeService

from fez_teleportation import circuit as teleport
from graph156 import save
from run_switch_puzzles import ROOT, SHOTS, execute, load

RESULT = ROOT/"Kingston-known-bits.json"
TAG = "kingston-fixed-chains-known-bits-20261120"
SEED = 25031


def circuit(bit,mode,fast=False):
    if mode=="teleport":
        return teleport("-Z" if bit else "+Z",fast)
    q=QuantumCircuit(3,3,name=f"bob_direct_{bit}")
    if bit:
        q.x(2)
    q.measure(2,2)
    return q


def errors(counts,bit):
    assert sum(counts.values())==SHOTS and all(len(s)==3 for s in counts)
    return sum(n for s,n in counts.items() if int(s[0])!=bit)


def validate():
    sim=AerSimulator(method="stabilizer")
    for bit in (0,1):
        for mode in ("teleport","direct"):
            counts=sim.run(circuit(bit,mode),shots=SHOTS,seed_simulator=SEED).result().get_counts()
            assert errors(counts,bit)==0
            if mode=="teleport":
                assert len({s[1:] for s in counts})==4


def prepare(backend,path,bit,mode):
    fast=mode=="teleport" and all(backend.target.instruction_supported("measure_2",(p,)) for p in path[:2])
    q=transpile(circuit(bit,mode,fast),backend,initial_layout=path,routing_method="none",
                optimization_level=1,seed_transpiler=SEED)
    backend.check_faulty(q)
    measured={}
    flags=[]
    edges=[]
    for inst in q.data:
        g=inst.operation
        qubits=[q.find_bit(w).index for w in inst.qubits]
        if g.name!="barrier":
            assert set(qubits)<=set(path if mode=="teleport" else [path[2]])
        if g.name in ("measure","measure_2"):
            measured[q.find_bit(inst.clbits[0]).index]=qubits[0]
        if g.name=="if_else":
            key,v=g.condition
            flag=q.find_bit(key).index
            assert v==1 and flag in measured and qubits==[path[2]]
            flags.append(flag)
        if g.name=="cz":
            edges.append(sorted(qubits))
    assert measured==({i:p for i,p in enumerate(path)} if mode=="teleport" else {2:path[2]})
    assert flags==([1,0] if mode=="teleport" else [])
    assert sorted(edges)==(sorted([sorted(path[:2]),sorted(path[1:])]) if mode=="teleport" else [])
    return q,fast


def run():
    if not sys.stdin.isatty():
        raise RuntimeError("Use a private key window")
    rec=load(RESULT)
    if rec.get("rows"):
        return
    token=getpass.getpass("IBM Cloud API key (hidden): ").strip()
    if not token:
        return
    service=QiskitRuntimeService(channel="ibm_quantum_platform",token=token,plans_preference=["open"],region="us-east")
    prior=load(ROOT/"Switch-puzzles-hardware.json")
    assert prior["backend"]=="ibm_kingston"
    backend=service.backend(prior["backend"])
    circuits=[]
    if not rec:
        paths={label:item["path"][2:] for label,item in prior["selected"].items()}
        order=[(label,bit,mode) for label in paths for bit in (0,1) for mode in ("teleport","direct")]
        random.Random(SEED).shuffle(order)
        settings=[]
        for label,bit,mode in order:
            qc,fast=prepare(backend,paths[label],bit,mode)
            circuits.append(qc)
            settings.append(dict(chain=label,bit=bit,mode=mode,fast_mid_measure=fast))
        rec=dict(backend=backend.name,paths=paths,settings=settings,prior_job=prior["job_id"],
                 primary="top minus typical probability of reporting one given a teleported zero",
                 bit_order="Bob, Alice X flag, Alice Z flag")
    rec=execute(service,backend,RESULT,TAG,rec,lambda:circuits)
    assert len(rec["settings"])==len(rec["counts"])==8
    rec["rows"]=[dict(s,wrong=errors(c,s["bit"])) for s,c in zip(rec["settings"],rec["counts"])]
    save(RESULT,rec)


if __name__=="__main__":
    if sys.argv[1:]==["validate"]:
        validate()
        print("Both preparations and readout methods passed ideal simulation.")
    elif sys.argv[1:]==["hardware"]:
        logging.disable(logging.CRITICAL)
        try:
            run()
        except Exception as e:
            frames=[[Path(f.filename).name,f.lineno,f.name] for f in traceback.extract_tb(e.__traceback__)]
            save(ROOT.parent/"work"/"known-bits-error.json",{"type":type(e).__name__,"frames":frames})
            print(type(e).__name__)
        input("Press Enter to close.")
field-report/work/verify_known_bits.py · complete source
import json
import math
from pathlib import Path
from scipy.stats import fisher_exact

p=Path(__file__).resolve().parents[1]/"outputs"/"Kingston-known-bits.json"
rec=json.loads(p.read_text())
n=rec["shots_per_circuit"]
data={}
for row,counts in zip(rec["rows"],rec["counts"]):
    errors=sum(count for bits,count in counts.items() if (int(bits,2)>>2)!=row["bit"])
    assert errors==row["wrong"] and sum(counts.values())==n
    data[row["chain"],row["bit"],row["mode"]]=errors
print(sorted(data.items()),rec["metrics"]["usage"],rec["job_id"])


def wilson(p):
    z=1.95996398454
    den=1+z*z/n
    c=(p+z*z/(2*n))/den
    h=z*math.sqrt(p*(1-p)/n+z*z/(4*n*n))/den
    return c-h,c+h


for bit in (0,1):
    for mode in ("teleport","direct"):
        a,b=[data[chain,bit,mode] for chain in ("best","typical")]
        x,y=a/n,b/n
        lx,ux=wilson(x)
        ly,uy=wilson(y)
        diff=x-y
        ci=(diff-math.hypot(x-lx,uy-y),diff+math.hypot(ux-x,y-ly))
        print(bit,mode,100*x,100*y,"delta & CI",100*diff,[100*v for v in ci],
              "two-sided Fisher",fisher_exact([[a,n-a],[b,n-b]]).pvalue)

Personal comments

Personal comments will be added here.