Case study · Quantum machine learning

I built a quantum ML lab and the honest answer is: quantum mostly ties or loses today — and I can prove it

Every quantum model raced against an ordinary classical one on the same data. Two of them flown to two real quantum computers. Then I pushed on the state of the art — and reproduced a published quantum advantage, only to erase it three separate ways. Eleven experiments, every one an honest tie-or-loss, reported proudly. This case study doesn't sell you quantum. It sells the person who will tell you the truth about whether quantum helps you.

11 experiments, each vs a classical baseline 5 state-of-the-art techniques, all tested honestly 2 real QPUs (superconducting + trapped-ion) local-first on one RTX 5090 every number reproducible from a job id

The one-line finding — the strongest version

Five independent state-of-the-art techniques, each tested honestly, all hit the same wall: whatever makes a quantum ML model usable — trainable, non-concentrated, plateau-free — tends to be exactly what makes it classically reproducible. The single most compelling proof: I reproduced a published quantum-kernel advantage (0.900 vs a weak classical 0.730) — then a fairly-tuned classical model beat it (0.910), a classical dequantization matched it (0.900), and device noise erased the rest. Same wall, five different roads to it.


The problem

Quantum computing is the most over-marketed idea in tech. Vendors publish the cherry-picked win, the pretty error-mitigated bar, the "quantum advantage" headline — and almost nobody publishes the honest baseline sitting next to it. So a founder, a fund, or a lab lead who is asked "should we invest in quantum for this?" has no neutral read to go on. The demos all say yes. The physics, quietly, mostly says not yet.

The usual sources are both compromised. A vendor sells you a machine. A consultant bills by the roadmap slide. Neither is incentivised to say the one sentence that saves you the most money: "for your problem, a classical computer still wins — here's the measurement."

The quantum result is not the deliverable. The classical baseline standing beside it is the deliverable — and that's the part the whole industry leaves out.

The approach: a lab built to disprove its own hype

I built QLAB — a local-first quantum-ML lab whose core rule is a quantum number is never shown alone. Every quantum model is raced against ordinary classical methods (logistic regression, an MLP, an RBF-SVM) on the identical data split. Two trained circuits were sent to real quantum hardware over the internet. Everything runs on one RTX 5090; the only thing that ever leaves the machine is a circuit small enough to fit on a real QPU. And every single number on this page traces back to a saved run you can reproduce.

QLAB publishing pipeline: an experiment folder becomes an honest, visual, reproducible result with a classical baseline beside every quantum number
How every QLAB result is built — an experiment folder becomes an honest, visual, reproducible finding: a classical baseline beside every quantum number, caveats auto-included, a job id you can re-run.
The one rule that makes this trustworthy

Design constraint D1: a quantum-advantage claim is permanently out of scope. Design constraint D2: the classical baseline is mandatory on every experiment. Those two rules are why the findings below are believable — the lab is structurally incapable of quietly hiding a loss.

The evidence: seven honest findings

Here is the foundational arc, sharpest first. Every one is a quantum-ties-or-loses result — and stating that plainly, with the number, is the entire point. Each links its full write-up (with the reproduce-it job id). Then, below these, comes the harder test: the four state-of-the-art techniques — capped by reproducing a published quantum advantage and erasing it.

Finding 1 · the dilemma at the heart of QML

I watched a quantum model become untrainable — the barren plateau, measured

A quantum model trains by feeling which way is downhill. A barren plateau is when the landscape flattens into a featureless desert — and it gets exponentially flatter as the circuit grows. I measured the gradient variance of a hardware-efficient circuit from 2 to 14 qubits: the global-cost signal collapsed 1,436× (clean exponential fit, α ≈ 0.64, r² = 0.99). A local cost decayed 7.1× slower — the known escape, quantified.

Gradient variance vs qubit count on a log axis: the global cost plunges 1436x (barren plateau), the local cost barely moves (the escape)
The flat desert — gradient variance vs qubits (log axis). Global cost (gold) plunges 1,436×; local cost (green) barely moves.

The sting is the honest 2025 dilemma, measured on my own machine: the trainable (shallow, plateau-free) regime is exactly the one a classical computer can cheaply copy. Trainable ⇒ not special; special ⇒ not trainable. That is the real reason "just scale it up" doesn't work yet — and almost no marketing deck will tell you.

Full post: the barren plateau, measured

Finding 2 · two real quantum computers

Superconducting vs trapped-ion: the same circuit on two machines — and a mitigation that backfired

I took one trained circuit and ran it on two physically different quantum computers: IBM's superconducting ibm_fez and IonQ's trapped-ion forte-1. Against the perfect simulator answer (⟨Z₀⟩ = +0.724), the trapped-ion raw result landed closer to the truth (+0.60, off by 0.124) than superconducting (+0.49, off by 0.238) — on far fewer shots (100 vs 2048).

Grouped bars: simulator truth line, then raw and mitigated Z0 for superconducting and trapped-ion; the trapped-ion mitigated bar overshoots past the truth line
Same circuit, two machines — the shared simulator truth (gold line), then each backend's raw and error-mitigated ⟨Z₀⟩. The trapped-ion raw sits closest; its mitigated bar overshoots past the truth.

Then the honest twist: the same cheap error-mitigation trick that helped on superconducting backfired on trapped-ion — at 100 shots the noise-scaled points came out non-monotonic, so the extrapolation ran the wrong way and pushed the answer to +0.32, further from truth. Mitigation is a tool with a failure mode, not a free "make it better" button. Most write-ups only show you the run where it worked.

Full post: two quantum computers, one circuit

Finding 3 · the counter-intuitive engineering result

How many qubits fit in 32 GB? I simulated until the GPU refused — and it was 60× slower

Two surprises from throwing a GPU at simulating a quantum computer. First, the memory wall: the statevector doubles every qubit, so a 32 GB card holds the simulation to 28 qubits, and at 30 the over-commit guard refused the run rather than crash. Second, and more useful: for the small circuits this lab actually trains, the GPU was about 60× slower than the CPU — kernel-launch overhead dominates, and the card only earns its keep near the memory wall.

Statevector VRAM vs qubit count on a log axis, climbing a straight line until the 30-qubit run is refused past the 32GB ceiling
Where the 5090 dies — statevector VRAM doubles every qubit, a straight line on the log axis until the 30-qubit run is refused past the 32 GB ceiling.

The model itself — a hybrid net telling a handwritten 0 from a 1 — landed at 99.5%, a hair behind logistic regression's 99.6%. The expected, spec-sanctioned loss, reported straight. The "just use the GPU" instinct is wrong at this scale, and knowing that saves real money.

Full post: the memory wall & the GPU surprise

Finding 4 · the honest tie

A quantum classifier that ties a neural net — and why that's the honest result

A re-uploading quantum classifier hit 97.8% on the two-moons test — dead even with a small neural net (97.8%) and well above logistic regression (85.3%). The framework genuinely trains. But nobody won: it ties the classical net, and I show that side by side rather than quoting the quantum number alone. A tie, stated as a tie, is a more useful data point than a manufactured win.

The quantum classifier's learned decision boundary carving the two interleaving crescents of two-moons apart
Training curve: loss falling as the quantum circuit's parameters are tuned over epochs

Full post: the honest tie

Finding 5 · the honest loss

The quantum kernel that got worse as I added qubits

A quantum kernel measures "how similar do these two things look through a quantum lens?" It lost to a classical RBF-SVM on every dataset here (0.787 vs 0.973 on two-moons). Worse, its off-diagonal similarities concentrated 64× as qubits grew — the kernel version of the barren plateau, where everything starts looking equally similar so it can no longer tell points apart. Adding qubits made it worse. A clean negative result, reported plainly.

Off-diagonal Gram-matrix variance collapsing 64x as qubits grow — the kernel analogue of the barren plateau
Everything starts to look the same — off-diagonal kernel-similarity spread collapsing 64× as qubits grow.

Full post: the kernel that got worse

Finding 6 · real hardware, honestly costed

I ran a trained circuit on a real IBM quantum computer — here's the noise

A simulator-trained circuit, run on real superconducting silicon (ibm_fez). The clean value (+0.72) got dragged to +0.49 by hardware noise, then error-mitigation pulled it back to +0.87 — but that cleanup cost 3× the shots, and I report the cost, not just the prettier point estimate. The whole job used 5 s of QPU time against a hard 240 s budget cap that can't be overridden, so it's structurally impossible to overspend.

Bar chart: simulator clean Z0, noise-dragged raw hardware value, and error-mitigated value pulled back near clean, at the cost of 3x the shots
Noise, then cleanup — the simulator's clean ⟨Z₀⟩, the hardware's noise-dragged value, and where mitigation pulls it back, bought with 3× the shots.

Full post: real hardware noise, honestly costed

Finding 7 · autonomy under a hard sandbox

I let an LLM agent design quantum circuits in a sandbox for 10 cycles

An LLM proposed circuit variants and ran each one — inside a locked, no-network sandbox that structurally can't touch real hardware or overspend the QPU budget (every denial proven before any model-written code runs; the loop fails closed). Over 10 cycles it explored, hit a collapse (a bad ansatz cratered to 0.48), recovered, and edged the baseline by +0.0044 — which is within its own seed-to-seed noise. So the honest reading is a tie, and the agent's own report says so. The story isn't the number; it's the safe autonomy and the written rationale per cycle.

Per-cycle accuracy of the agent's proposed circuits against a fixed classical baseline; a collapse mid-run, then recovery to just above baseline
The agent's search path — per-cycle accuracy vs the fixed baseline (green). It edged it late; the end dip is the agent discovering more depth started to hurt.

Full post: the agent in the sandbox

The point

Seven experiments. Zero manufactured wins. Two runs on real quantum computers. Every quantum number sitting next to the classical one that ties or beats it — because that discrimination is the service. A vendor would have shown you the one mitigated bar that looked good and called it advantage. The judgment to tell you it isn't — and to prove it — is what you're actually paying for.

Then I went after the state of the art

The seven findings above are the foundation. But a fair critic asks the harder question: those are the easy cases — what happens when you use the newest, cleverest techniques the field invented specifically to beat classical? So I ran four of them, honestly, on my own machine. Each one is a technique published to rescue quantum ML. Each one hit the same wall.

SOTA capstone · the strongest honest result on this page

I reproduced a published quantum advantage — then erased it three ways

In 2021 a landmark paper (Huang et al., Nature Communications) showed a projected quantum kernel beating classical methods on a carefully constructed dataset. I reproduced it faithfully: on their engineered split, the quantum kernel scored 0.900 against the weak classical baseline's 0.730 — a real, large gap. The advantage is genuine. It is also manufactured — and it does not survive a fair fight:

Bar chart: the engineered PQK at 0.900, weak classical at 0.730, then a fairly-tuned classical at 0.910, RFF dequantization at 0.900, and PQK under noise at 0.885 — three green bars matching or beating the gold quantum bar
The advantage, erased — gold is the reproduced “quantum” result; every green bar is a classical method matching or beating it, and noise takes the rest. A quantum-favouring benchmark measures the benchmark, not quantum machine learning.

Reproduced honestly, then falsified honestly — the whole point of the lab, on the field's own flagship example.

The three supporting SOTA probes

Line chart: as qubits grow, the fidelity kernel's similarity signal collapses while the projected kernel holds flat — it resists concentration but still loses to classical
S-2 · projected quantum kernels — resist the concentration collapse 35× better than the old kernel… and still lose to a classical RBF. Necessary, not sufficient.
Line chart of gradient variance vs qubit count for several barren-plateau escape techniques; the ones that stay flat only do so at initialisation or by landing in the simulable local-cost regime
S-3 · barren-plateau escapes — the tricks that keep gradients alive only work at init, or by dropping back into the classically-simulable corner. No escape for the circuit that would actually be hard.

The whole SOTA arc, one line each

Each row is a state-of-the-art technique the field built to give quantum the edge. Each links its reproduce-it experiment folder. Every verdict is the same shape.

TechniqueWhat it promisedThe honest finding
S-1 · agentic search of the “grail” An LLM agent hunts for a circuit that is trainable AND classically hard at once. The trainable-and-hard corner is near-empty — the dilemma holds. The agent nearly faked a win; the sandbox harness caught it.
S-2 · projected quantum kernels A new read-out that cures the kernel “everything-looks-the-same” collapse. Resists concentration 35× — and still loses to a classical RBF. Necessary, not sufficient.
S-3 · barren-plateau escapes Init & training tricks to keep a deep quantum model trainable. Escape only at initialisation, or by landing back in the classically-simulable regime. The hard circuit stays untrainable.
S-4 · reproduce a published advantage The projected-kernel “quantum advantage” from Huang 2021. Reproduced (0.900 vs 0.730) — then erased three ways: fair-classical 0.910, dequantization 0.900, noise 0.885.

Two more supporting probes back these up: two independent simulability surrogates that disagree on one circuit (so shipping both is strictly more honest than either alone), and a map of exactly when error-mitigation helps versus hurts. Both live in the repo.

Five independent state-of-the-art techniques, each tested honestly, all hit the same wall: whatever makes a quantum ML model usable — trainable, non-concentrated, plateau-free — tends to make it classically reproducible. That convergence, measured five different ways, is the real finding.

What this does not claim

Stated up front, because the honesty is the product:

Why local-first & reproducible

Everything runs on one RTX 5090; only a circuit small enough to fit on a real QPU ever leaves the box. Every accuracy traces to a seed_summary.csv, every hardware number to a job id and an equivalence.json proving the flown circuit matched the trained model. You don't have to trust the write-up — you can re-run it.

Wondering whether quantum is worth it for you?

If someone is pitching you quantum — for optimisation, ML, chemistry, "advantage" — the most valuable thing you can buy is a neutral read: does it actually beat the classical baseline for your problem, measured? That's what this lab does. Baseline beside every number, real hardware where it matters, failures reported proudly.

Ask for an honest read → Back to case studies The lab, the code & the reproduce-it experiments

There is no "quantum advantage" on this page on purpose — because there wasn't any, and I won't sell you one. The methodology, every experiment, and the honest benchmarks (losses included) live in the repository.