The question
Can two physical qubits keep the expected correlation in two measurement bases?
Circuit & method
Prepare a Bell pair on Fez qubits 22 and 23 with a Hadamard and controlled-X. Measure both qubits in Z, then in X, with 256 shots per setting.
Results
The qubits agreed on 245/256 Z measurements and 249/256 X measurements: 494/512 checks overall (96.5%). The ideal simulation passed every check.
What this supports
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.
- Fez-Bell-results.jsonQuantum Field Report.pdf / Experiment-results.zip · 6,720 bytes
backend
ibm_fez
physical_qubits
[ 22, 23 ]
shots_per_setting
256
basis_order
[ "ZZ", "XX" ]
created_utc
2026-11-19T23:25:55.979590+00:00
versions
{
"qiskit": "2.6.2",
"qiskit-ibm-runtime": "0.52.1"
}calibration_updated
2026-11-19 14:38:27-06:00
status_at_submission
{
"backend_name": "ibm_fez",
"backend_version": "",
"operational": true,
"pending_jobs": 0,
"status_msg": "active"
}compiled_instructions
{
"ZZ": [
{
"gate": "rz",
"qubits": [
22
],
"clbits": [],
"params": [
1.5707963267948966
]
},
{
"gate": "sx",
"qubits": [
22
],
"clbits": [],
"params": []
},
{
"gate": "rz",
"qubits": [
22
],
"clbits": [],
"params": [
1.5707963267948966
]
},
{
"gate": "rz",
"qubits": [
23
],
"clbits": [],
"params": [
1.5707963267948966
]
},
{
"gate": "sx",
"qubits": [
23
],
"clbits": [],
"params": []
},
{
"gate": "rz",
"qubits": [
23
],
"clbits": [],
"params": [
1.5707963267948966
]
},
{
"gate": "cz",
"qubits": [
22,
23
],
"clbits": [],
"params": []
},
{
"gate": "rz",
"qubits": [
23
],
"clbits": [],
"params": [
1.5707963267948966
]
},
{
"gate": "sx",
"qubits": [
23
],
"clbits": [],
"params": []
},
{
"gate": "rz",
"qubits": [
23
],
"clbits": [],
"params": [
1.5707963267948966
]
},
{
"gate": "barrier",
"qubits": [
22,
23
],
"clbits": [],
"params": []
},
{
"gate": "measure",
"qubits": [
22
],
"clbits": [
0
],
"params": []
},
{
"gate": "measure",
"qubits": [
23
],
"clbits": [
1
],
"params": []
}
],
"XX": [
{
"gate": "rz",
"qubits": [
22
],
"clbits": [],
"params": [
1.5707963267948966
]
},
{
"gate": "sx",
"qubits": [
22
],
"clbits": [],
"params": []
},
{
"gate": "rz",
"qubits": [
22
],
"clbits": [],
"params": [
1.5707963267948966
]
},
{
"gate": "rz",
"qubits": [
23
],
"clbits": [],
"params": [
1.5707963267948966
]
},
{
"gate": "sx",
"qubits": [
23
],
"clbits": [],
"params": []
},
{
"gate": "rz",
"qubits": [
23
],
"clbits": [],
"params": [
1.5707963267948966
]
},
{
"gate": "cz",
"qubits": [
22,
23
],
"clbits": [],
"params": []
},
{
"gate": "rz",
"qubits": [
23
],
"clbits": [],
"params": [
1.5707963267948966
]
},
{
"gate": "sx",
"qubits": [
23
],
"clbits": [],
"params": []
},
{
"gate": "rz",
"qubits": [
23
],
"clbits": [],
"params": [
1.5707963267948966
]
},
{
"gate": "barrier",
"qubits": [
22,
23
],
"clbits": [],
"params": []
},
{
"gate": "rz",
"qubits": [
22
],
"clbits": [],
"params": [
1.5707963267948966
]
},
{
"gate": "sx",
"qubits": [
22
],
"clbits": [],
"params": []
},
{
"gate": "rz",
"qubits": [
22
],
"clbits": [],
"params": [
1.5707963267948966
]
},
{
"gate": "rz",
"qubits": [
23
],
"clbits": [],
"params": [
1.5707963267948966
]
},
{
"gate": "sx",
"qubits": [
23
],
"clbits": [],
"params": []
},
{
"gate": "rz",
"qubits": [
23
],
"clbits": [],
"params": [
1.5707963267948966
]
},
{
"gate": "measure",
"qubits": [
22
],
"clbits": [
0
],
"params": []
},
{
"gate": "measure",
"qubits": [
23
],
"clbits": [
1
],
"params": []
}
]
}job_tag
fez-bell-22-23-20261119-first
stage
done
job_id
dbvob1thdvas73bie1pg
counts
{
"ZZ": {
"00": 118,
"01": 6,
"10": 5,
"11": 127
},
"XX": {
"00": 127,
"01": 6,
"10": 1,
"11": 122
}
}metrics
{
"caller": "qiskit",
"qiskit_version": "qiskit_ibm_runtime-0.52.1,qiskit-2.6.2*",
"timestamps": {
"created": "2026-11-19T23:25:59.298761Z",
"finished": "2026-11-19T23:26:05.614766Z",
"running": "2026-11-19T23:26:00.93244Z"
},
"usage": {
"qpu_charge_time_seconds": 2,
"value": 0.030604,
"unit": "resource_units",
"status": "complete",
"details": [
{
"value": 0.030604,
"unit": "resource_units",
"metric": {
"id": "caffe3ca-729c-5750-8777-df63bbf8bfd9",
"value": 2
}
}
]
},
"circuits_execution_time_ns": 132175360
}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.
- Bell-simulator.jsonQuantum Field Report.pdf / Experiment-results.zip · 314 bytes
field-report/outputs/Bell-simulator.json · full record
{
"simulator": "Qiskit StatevectorSampler",
"qiskit": "2.6.2",
"seed": 221123,
"shots_per_setting": 256,
"counts": {
"ZZ": {
"00": 105,
"01": 0,
"10": 0,
"11": 151
},
"XX": {
"00": 131,
"01": 0,
"10": 0,
"11": 125
}
}
}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.
- fez_bell.pyQuantum Field Report.pdf / Experiment-source.zip · 6,760 bytes
field-report/outputs/fez_bell.py · complete source
"""Run the local Bell check, then one IBM Fez job; reruns resume the saved job."""
import getpass
import json
import logging
import sys
import time
import traceback
from datetime import datetime, timezone
from importlib.metadata import version
from pathlib import Path
import numpy as np
from qiskit import QuantumCircuit
from qiskit.primitives import StatevectorSampler
from qiskit.transpiler import generate_preset_pass_manager
from qiskit_ibm_runtime import QiskitRuntimeService, SamplerV2
ROOT = Path(__file__).resolve().parent
RESULT = ROOT / "Fez-Bell-results.json"
LOCAL = ROOT / "Bell-simulator.json"
SHOTS = 256
PAIR = [22, 23]
BASES = ["ZZ", "XX"]
SEED = 221123
TAG = "fez-bell-22-23-20261119-first"
def save(path, record):
temp = path.with_suffix(".tmp")
temp.write_text(json.dumps(record, indent=2, default=str), encoding="utf-8")
temp.replace(path)
def circuits():
settings = []
for basis in BASES:
qc = QuantumCircuit(2, 2, name=basis)
qc.h(0)
qc.cx(0, 1)
qc.barrier()
if basis == "XX":
qc.h([0, 1])
qc.measure([0, 1], [0, 1])
settings.append(qc)
return settings
def counts(results):
if len(results) != len(BASES):
raise ValueError("Missing measurement setting")
output = {}
for basis, pub in zip(BASES, results):
raw = pub.data.c.get_counts()
if sum(raw.values()) != SHOTS or raw.keys() - {"00", "01", "10", "11"}:
raise ValueError("Unexpected shots or bit strings")
output[basis] = {bits: raw.get(bits, 0) for bits in ("00", "01", "10", "11")}
return output
def simulate():
sampler = StatevectorSampler(seed=np.random.default_rng(SEED))
data = counts(sampler.run(circuits(), shots=SHOTS).result())
if any(row["01"] or row["10"] or not (row["00"] and row["11"]) for row in data.values()):
raise ValueError("Ideal Bell-pair simulation failed")
save(LOCAL, {"simulator": "Qiskit StatevectorSampler", "qiskit": version("qiskit"),
"seed": SEED, "shots_per_setting": SHOTS, "counts": data})
print(data)
def prepare(backend):
compiler = generate_preset_pass_manager(backend=backend, initial_layout=PAIR,
optimization_level=1, seed_transpiler=SEED)
compiled = compiler.run(circuits(), num_processes=1)
instructions = {}
for basis, qc in zip(BASES, compiled):
backend.check_faulty(qc)
ops = [{"gate": inst.operation.name,
"qubits": [qc.find_bit(q).index for q in inst.qubits],
"clbits": [qc.find_bit(c).index for c in inst.clbits],
"params": [float(v) for v in inst.operation.params]} for inst in qc.data]
measured = {op["clbits"][0]: op["qubits"][0] for op in ops if op["gate"] == "measure"}
active = {q for op in ops if op["gate"] != "barrier" for q in op["qubits"]}
if active != set(PAIR) or measured != dict(enumerate(PAIR)):
raise ValueError("Compiled circuit changed the physical pair")
instructions[basis] = ops
return compiled, instructions
def hardware():
if not LOCAL.exists():
raise RuntimeError("Run the simulator first")
if not sys.stdin.isatty():
raise RuntimeError("Open the hardware step in an interactive console")
print("IBM Quantum | Fez qubits 22 and 23 | 256 shots in Z and 256 in X")
key = getpass.getpass("IBM Cloud API key (hidden): ").strip()
if not key:
return
service = QiskitRuntimeService(channel="ibm_quantum_platform", token=key,
plans_preference=["open"], region="us-east")
backend = service.backend("ibm_fez")
if RESULT.exists():
record = json.loads(RESULT.read_text(encoding="utf-8"))
if "job_id" in record:
job = service.job(record["job_id"])
else:
matches = service.jobs(job_tags=[TAG], backend_name="ibm_fez", limit=2)
if len(matches) != 1:
raise RuntimeError("Prior submission needs reconciliation")
job = matches[0]
else:
status = backend.status()
if backend.name != "ibm_fez" or backend.is_mock or not status.operational:
raise RuntimeError("Fez is unavailable")
props = backend.properties(refresh=True)
compiled, instructions = prepare(backend)
record = {"backend": backend.name, "physical_qubits": PAIR,
"shots_per_setting": SHOTS, "basis_order": BASES,
"created_utc": datetime.now(timezone.utc).isoformat(),
"versions": {p: version(p) for p in ("qiskit", "qiskit-ibm-runtime")},
"calibration_updated": props.last_update_date if props else None,
"status_at_submission": status.to_dict(), "compiled_instructions": instructions,
"job_tag": TAG, "stage": "submitting"}
sampler = SamplerV2(mode=backend, options={"environment": {"job_tags": [TAG]},
"twirling": {"enable_gates": False, "enable_measure": False},
"dynamical_decoupling": {"enable": False}})
# Exclusive reservation prevents simultaneous launches from submitting twice.
with RESULT.open("x", encoding="utf-8") as out:
json.dump(record, out, indent=2, default=str)
job = sampler.run(compiled, shots=SHOTS)
record.update(job_id=job.job_id(), stage="submitted")
save(RESULT, record)
print(f"IBM job {job.job_id()}", flush=True)
record.update(counts=counts(job.result()), stage="measured")
save(RESULT, record)
for _ in range(180):
metrics = job.metrics()
usage = metrics.get("usage", {})
if usage.get("status", "pending") != "pending" and usage.get("qpu_charge_time_seconds") is not None:
break
time.sleep(5)
record.update(metrics=metrics, stage="done")
save(RESULT, record)
print(record["counts"], flush=True)
if __name__ == "__main__":
if sys.argv[1:] == ["simulate"]:
simulate()
elif sys.argv[1:] == ["hardware"]:
logging.disable(logging.CRITICAL)
try:
hardware()
except Exception as exc:
# Keep credential-bearing request bodies and headers out of local logs.
trace = traceback.extract_tb(exc.__traceback__)
issue = {"type": type(exc).__name__, "frames": [[Path(f.filename).name, f.lineno, f.name] for f in trace]}
save(ROOT.parent / "work" / "bell-error.json", issue)
print(f"Hardware step stopped ({type(exc).__name__}).")
input("Press Enter to close.")
else:
raise SystemExit("Use simulate or hardware.")
Personal comments
Personal comments will be added here.