Chilzer Quantum Lab

Sign in

One chilzer.com account works here, on chilzer.com and on Project White Hole. Signed in, your Intent ticks also count toward your account.

Chilzer QPU Doctor

Checks every qubit of a quantum chip in one short job, finds why a flagged qubit fails, and lists the qubits to keep circuits off. Version 0.1.1, pre-release. Free for research and other non-commercial use.

Try it

cqd demo runs on a simulated chip with no account. On real hardware the doctor shows the cost and asks before submitting.

pip install "chilzer-qpu-doctor[ibm] @ git+https://github.com/tchilzer2/rotational-relationship-lab-3@v0.1.1"
cqd demo
cqd check ibm_kingston
cqd avoid ibm_kingston

Ran it on a chip? Submitting reports to this site is coming soon. Until then, share results as a GitHub issue.

Per-qubit health and frequency-drift monitoring for quantum processors, built on the Chilzer State Engine.

Version 0.1.1 (pre-release) · command: cqd · free for research and non-commercial use · by Thomas Michael Chilzer Jr., written with Claude (Anthropic)


Why you might want this

If you run circuits on a quantum processor, you choose (or let the compiler choose) which physical qubits to use. You usually decide from the provider's listed calibration: readout error, T1, T2, gate errors. Those numbers come from the provider's last calibration run, and they mostly test qubits one at a time, at rest.

Your circuit does not run at rest. Its qubits wait while other qubits are being driven, often for microseconds. A qubit can pass every listed number and still lose its state in exactly that situation. On 2026-12-04 we watched it happen on three IBM Heron r2 processors:

  • On ibm_fez, qubit 82 had a readout error of 0.2%. Prepared in a superposition and left alone for 1.5 µs, it came back flipped 95% of the time; at 3.1 µs it was nearly right again; at 4.6 µs it was flipped 83% of the time. It was running about 290 kHz off its expected frequency. Any circuit that let it idle was getting a wrong answer.
  • Across the three chips, 34 qubits with clean readout failed this way. About half (18) were steady frequency drifts like qubit 82; the rest were noise or crosstalk from neighbouring gates.
  • On ibm_kingston, four qubits that were fine at 17:15 went bad at 18:50 and were fine again by 19:31. Nine others were bad all afternoon. Three of those nine had listed readout errors under 5%.

The Chilzer QPU Doctor finds these qubits for you, on the chip you are about to use, in one short job, and tells you which ones to keep your circuits away from.

What it does

CommandWhat it does for youQPU time (156-qubit Heron)
cqd check <backend>Tests every qubit of the chip in one job: readout, and whether it keeps its phase while gates run next to it. Compares with your previous check automatically.about 11–12 s
cqd diagnose <backend>For each flagged qubit, finds why: frequency drift (with the offset in kHz), noise, crosstalk, or a fault that shows even without waiting.about 15–20 s (estimated; grows with the number of flagged qubits)
cqd avoid <backend>Prints the qubits to keep circuits off, using the two-check rule (below).none (reads reports)
cqd monitor <backend> --every 6hRuns check on a schedule and reports what changed.11–12 s per check
cqd compare OLD.json NEW.jsonWhat changed between two checks.none
cqd demoRuns everything on a simulated chip with planted faults. No account needed.none

Everything is saved in ./cqd_reports/<backend>/: a JSON record (with the job ID and the full job plan), a text summary, a chip map (PNG) and the raw counts.

Install

pip install "chilzer-qpu-doctor[ibm] @ git+https://github.com/tchilzer2/rotational-relationship-lab-3"

Or clone the repository and run python -m cqd ... from its folder. Needs Python 3.10+, numpy, qiskit ≥ 1.3 and matplotlib, plus qiskit-ibm-runtime for real hardware.

Your IBM account. The doctor uses the account you have already saved with QiskitRuntimeService.save_account(...) (IBM's quick-start shows how). It never asks for, reads or stores your key.

A first session, step by step

cqd demo                                   # 1. see what a report looks like (simulated chip, free)
cqd check ibm_kingston --dry-run           # 2. build and verify the circuits for your chip; submits nothing
cqd check ibm_kingston                     # 3. the real check; it shows the cost and asks before submitting
cqd diagnose ibm_kingston                  # 4. (optional) why the flagged qubits fail
cqd check ibm_kingston                     # 5. later (an hour or more): a second check confirms the flags
cqd avoid ibm_kingston                     # 6. the qubits to keep your circuits off

Before anything is submitted, the doctor prints the estimated QPU time and your plan's remaining time and asks submit? [y/N]. Add --yes to skip the question (for scripts), and --keep-seconds 60 to refuse any job that would leave you under 60 s.

Reading a report

This is the real report from our final hardware test (ibm_kingston, 2026-12-04 19:49 UTC, job dc9hiaso36ts73d2mge0):

Chilzer QPU Doctor - check of ibm_kingston
  qubits checked as sentinels : 156 of 156
  known answer (class number 2): 157 of 161 clean patches, median distance from exact 0.054
  median sentinel leak        : 0.037 (flag at 0.100)
  healthy                     : 147
  readout faults (3)         : [113, 121, 146]
  phase faults (3)           : [130, 131, 149]
  borderline (3)             : [92, 112, 127]  (just over the line; may not repeat)
  not visible in the listed calibration: [127, 130, 149]
  compared with the previous check (2026-12-04T18:50:38Z):
    confirmed (9) : [92, 112, 113, 121, 127, 130, 131, 146, 149]
    new since then : []
    cleared        : [6, 73, 87, 102]

Line by line:

  • qubits checked as sentinels: 156 of 156. Every qubit was tested. (A sentinel is the qubit being tested in a patch; see "How it works".)
  • known answer: 157 of 161 clean patches. The chip computed a result known exactly in advance, in 161 places at once, and got it right in 157. This tells you the whole job ran properly: gates, compilation and readout. If this number is low, distrust the rest of the report. ("Clean" patches are those whose four qubits all have good readout; 161 > 156 because some qubits are read twice.)
  • median sentinel leak: 0.037 (flag at 0.100). A leak is how often a tested qubit gave an answer that is impossible for a healthy qubit. On this chip the typical qubit did so 3.7% of the time. A qubit is flagged at 0.10, or at twice the chip's median if that is higher, so a noisy chip is judged against itself.
  • healthy: 147. Use these freely.
  • readout faults. The qubit misreads a prepared 0 or 1 at least 15% of the time (measured in the same job).
  • phase faults. The readout is fine, but the qubit loses its state while it waits next to running gates. This is the kind of fault listed calibration does not show. Run cqd diagnose to learn why.
  • borderline. Flagged, but only just: a leak between the flag line and 0.15 (or the line + 0.05), or a readout error between 10% and 15%. In our tests these often did not repeat in a later check, so they are reported separately.
  • not visible in the listed calibration. Flagged qubits whose listed readout error is under 5%. Choosing qubits by listed numbers alone would have picked these.
  • compared with the previous check. If an earlier report of the same chip is in cqd_reports/, the doctor compares automatically:
    • confirmed: not healthy in both checks, or firmly faulty now. These are the ones to avoid.
    • new since then: flagged now, healthy before.
    • cleared: flagged before, healthy now. Here, the four qubits that had spiked at 18:50.

Then cqd avoid ibm_kingston gives:

# ibm_kingston: 9 qubits to avoid, from two checks (2026-12-04T18:50:38Z and 2026-12-04T19:49:14Z)
avoid = [92, 112, 113, 121, 127, 130, 131, 146, 149]
watch = []   # flagged once or only just over the line

The chip map

Each check also draws the chip (true layout for 156-qubit Heron chips). Darker blue means a higher leak; rings mark faults (orange: readout, green: phase, grey dashed: borderline).

chip map of ibm_kingston, 2026-12-04 19:49 UTC

The two-check rule (why one check is not enough)

A qubit's health changes within the hour. On ibm_kingston we ran four whole-chip checks in 2.6 hours:

The kingston timeline: the same 17 qubits in four checks

  • 9 qubits were faulty in all four;
  • 8 were flagged in only one or two, including four (6, 73, 87, 102) that were bad at 18:50 and fine 40 minutes later. Qubit 73's readout error went 2% → 20% → 2%.

If you avoided everything one check flags, you would sometimes throw away good qubits; if you trusted one check completely, a passing spike could mislead you. So cqd avoid uses two checks: avoid a qubit if both checks flag it, or if the latest check finds it firmly faulty. Qubits flagged once, or only just over the line, go on a watch list. In our final hardware test this rule kept exactly the 9 persistent qubits and dropped all 4 transient ones.

With only one check, cqd avoid lists the firm faults and puts borderline qubits on the watch list, and reminds you to check again.

Diagnosis: why a qubit fails

cqd diagnose re-tests the flagged and borderline qubits of your last check (add --qubits 3,17 for others):

  • quiet waits: each qubit is put in a superposition and left alone for 0, 1.5 and 3.1 µs while every neighbour rests in |0⟩ (the chip is split into two groups of non-neighbours, tested one group at a time);
  • a spin echo: the same wait with a flip in the middle, which cancels a steady frequency offset;
  • its patch again, with and without the echo.
Cause it reportsWhat it sawWhat it means for you
frequency drift, with an offset in kHzclean with no wait; grows with waiting; the echo cancels itthe qubit runs off frequency. Avoid it for circuits with idle time, or use dynamical decoupling, which is a train of echoes.
noisethe echo cannot cancel itunstable qubit; avoid it
crosstalk from neighbouring gatesclean when alone, flips next to live gatesfine alone; avoid it next to busy neighbours
readout or gate errorfails even with no waitavoid it

The frequency offsets are fitted from the waits with the law of a steady offset, flip rate = c + a·sin²(π·Δf·W). Offsets above about 325 kHz alias into that range; offsets below about 30 kHz also absorb ordinary dephasing, so treat them as upper bounds.

Monitoring

cqd monitor ibm_kingston --every 6h --runs 4 --keep-seconds 60

runs a check every 6 hours, 4 times, prints what changed after each, and appends to cqd_reports/ibm_kingston/monitor_log.jsonl. It runs in the foreground (keep the window open). For unattended monitoring, schedule cqd check ibm_kingston --yes --keep-seconds 60 with your system's scheduler (Task Scheduler on Windows, cron on Linux or macOS), always started in the same folder: reports are kept in ./cqd_reports/, and each check compares itself with the one before it there.

At about 11–12 s per check, every 10 minutes of QPU time covers roughly 50 checks.

How it works

A full explanation, with worked examples from real hardware, is in docs/HOW_IT_WORKS.md. In short:

  1. A known answer. The repeating digits of 1/17 (16 of them, and 16 = 2⁴) mark a pattern of signs across 4 qubits. Read with an inverse quantum Fourier transform, it gives an output distribution known exactly in advance; one of its numbers is the class number h(−51) = 2.
  2. Forbidden outcomes. A theorem on these patterns (Theorem 2, Thomas Michael Chilzer Jr.) makes the pattern repeat after half a turn. As a result, every odd outcome is impossible, and the top qubit is never acted on.
  3. A sentinel. So each 4-qubit patch splits exactly into a 3-qubit block that does the computation and one qubit, the sentinel, that is put in a superposition, waits while the block runs (1.5 µs), and is brought back. A healthy sentinel always reads 0. When it reads 1, the error is that qubit's own: lost phase during the wait, or a 0 → 1 readout error.
  4. Tiling. Six rounds of patches, side by side, let every qubit of a 156-qubit chip take the sentinel role. The same job runs the standard readout check (all qubits in 0, all in 1).

How we know it works

Built and tested in Phase 7 of the Rotational Relationship Lab on three IBM Heron r2 processors (ibm_fez, ibm_kingston, ibm_marrakesh), 2026-12-04. Every prediction was committed to git before its job (checked against IBM's job records). Full record: RESULTS_PHASE7.md.

  • In 8 whole-chip scans, 96.4–100% of clean patches read the known answer.
  • Every qubit with a 0 → 1 readout error of 10% or more was caught, in every scan that measured it (6 scans).
  • Repeat readings of the same qubit in one job agreed (r = 0.984–0.998); running patches side by side did not disturb them.
  • The flagged qubits with clean readout were traced on hardware: 18 of 34 frequency drifts (18.5–290.5 kHz), 9 noise, 6 crosstalk, 1 failing without a wait.
  • The packaged cqd check ran on ibm_kingston twice (versions 0.1.0 and 0.1.1); the two-check rule then confirmed exactly the 9 qubits that were faulty in all four of that afternoon's scans and cleared all 4 transient ones.

What has and has not been run on real hardware: check was run as packaged. diagnose uses the same measurements as the Phase 7 hardware tests E48 and E49, which were run with the experiment scripts; the packaged diagnose command has been tested on the simulated chip only. monitor repeats check. avoid and compare read saved reports.

An open invitation: confirm it and benchmark it

Our IBM Quantum time for this phase is used up, so the next hardware results have to come from you. If you run circuits on real machines, you can help settle what is still open:

  • Run cqd diagnose on hardware after a check, and see whether the causes and offsets it reports hold up (for example, whether a qubit it calls a drift is fixed by dynamical decoupling, and whether the offset is stable).
  • Run cqd check on other chips: other IBM machines, other Heron revisions, other layouts. Does the known answer still come out right (known answer near 100%), and does a second check confirm the same qubits?
  • Benchmark it against your own experience: do the qubits on the avoid list match the qubits that hurt your circuits? Does keeping your layout off them improve your results, and by how much?
  • Time it: QPU seconds charged per check on your plan and machine.

Every run leaves a report in cqd_reports/<backend>/ (the JSON includes the job ID, so anyone can check it against the provider's records). Share it, together with what you saw, as a GitHub issue at https://github.com/tchilzer2/rotational-relationship-lab-3/issues or in #chip-reports on the community server (https://discord.gg/TWa6tRzSux). Results that disagree with ours are just as welcome as results that agree: they are how the tool gets better. Every contributor is credited by name (or anonymously, if you prefer) in CONTRIBUTIONS.md and in the next release's notes.

Limits (please read)

  • Tested on 156-qubit IBM Heron r2 chips. Other chips are planned from their coupling map but untested on hardware; the quiet tests need a coupling graph that splits into two groups of non-neighbours (heavy-hex does).
  • The sentinel sees phase errors and 0 → 1 readout errors; 1 → 0 readout errors come from the readout check in the same job.
  • A reading describes the qubit in its patch. Next to a badly faulty qubit it can be inflated: on ibm_kingston, qubit 131 read 0.45 beside faulty qubit 130 and 0.12 elsewhere. In bulk this did not matter (changing the patch plan moved a typical reading by 0.005).
  • A check is a snapshot: qubits change within the hour. Use two checks, or monitor.
  • QPU-time figures are IBM's charged seconds on the Open plan; other plans may differ.
  • The answer the chip computes is known in advance. That is what makes this a test; it is not a quantum-advantage claim.

License

Free for research, study and other non-commercial use: software under the PolyForm Noncommercial License 1.0.0, documents and data under CC BY-NC 4.0, both with the Stewardship & Peace Clause (LICENSE.md, LICENSE-DOCS.md, STEWARDSHIP.md). Any commercial use, or income derived from this work, requires a private written agreement with the author.

Credits and contact

The Chilzer State Engine, its planes and nodes, Theorem 2 and the direction of this work: Thomas Michael Chilzer Jr. Code, analysis and documentation: written with Claude (Anthropic, Claude Opus 5.5), directed and reviewed by the author. Builds on standard tools: the quantum Fourier transform, phase oracles, Ramsey and spin-echo measurements, tensored readout mitigation, symmetry verification, and Qiskit.

Contact: https://github.com/tchilzer2 · tchilzer2@gmail.com · Discord: lightsoldier1779 · community server: https://discord.gg/TWa6tRzSux

Cite: Chilzer, Thomas Michael Jr., Rotational Relationship Lab, part 3: the Chilzer State Engine (Phase 7) and the Chilzer QPU Doctor, v0.1.1, Zenodo, 2026, https://doi.org/10.5281/zenodo.24847073. Earlier parts: https://doi.org/10.5281/zenodo.24737534 and https://doi.org/10.5281/zenodo.24791734.

Source: cqd/README.md at v0.1.1 · DOI 10.5281/zenodo.24847073

How it works, step by step: How the Chilzer QPU Doctor works.