Gate G26 · Preprint
The AQFT crossover law k*(n, p)
A. Nadarasa · Nadarasa Reduction · artifact recorded 2026-08-23T06:18:19Z
Abstract
The approximate quantum Fourier transform drops every controlled-phase rotation beyond a band width K. Truncation always costs accuracy in an ideal machine and always saves two-qubit gates in a real one, so there exists a band width k* below which the approximate circuit is the better circuit. We measure that surface directly: 24 cells across n = 4, 6, 8, 10 qubits and a 6-step depolarizing ladder anchored on published H2 error rates, with an exact statevector oracle at every point so approximation error is never confused with noise. In 24 of 24 cells a truncated band matches the full QFT inside the statistical envelope while saving up to 72 two-qubit gates; in 2 cells the truncated circuit is strictly more accurate than the exact one. The claim rests on four independent legs: an exact NumPy oracle, the Selene emulator, an offline pytket compilation against the H2-2 device model, and three Nexus cloud emulator lanes. This is emulator-only evidence (L2 on our trust ladder). No hardware shots were taken and none are claimed.
Method
- Circuit
- phase-state prep + band-limited inverse QFT + bit reversal
- Metric
- P(measured == j), averaged over fixed targets
- Oracle
- exact NumPy statevector (quantum/aqft_law/oracle.py)
- Noise
- DepolarizingErrorModel scaled off published H2 numbers
- Envelope
4*sqrt(0.5/(shots*|targets|))— a 4σ binomial rule. A difference inside the envelope is reported as agreement, never as a win.- Statistics
- 512 shots per target, seed 7
Leg 1 — the certified truncation bound
|p_K - p_full| <= 2 * sum_{d>K} 2*pi/2^d. Dropping a diagonal rotation of angle θ perturbs the state by at most |θ| in 2-norm and perturbations compose sub-additively, so the sum of dropped angles certifies the worst-case movement of any measurement probability. This is a certificate, not a prediction. Criterion: exact oracle deviation <= certified bound, every (n, K) cell. Result: 24/24 cells satisfy it; the tightest cell reaches 0.626 of the bound, so the measured curve sits well inside it. This is what separates approximation error from noise error in the headline.
| n | K | dropped | 2q gates | exact deviation | certified bound | ratio | verdict |
|---|---|---|---|---|---|---|---|
| 4 | 1 | 3 | 12 | 0.255923 | 1.000000 | 0.256 | PASS |
| 4 | 2 | 1 | 16 | 0.038060 | 1.000000 | 0.038 | PASS |
| 4 | 3 | 0 | 18 | 0.000000 | 0.000000 | 0.000 | PASS |
| 6 | 1 | 10 | 19 | 0.464761 | 1.000000 | 0.465 | PASS |
| 6 | 2 | 6 | 27 | 0.124079 | 1.000000 | 0.124 | PASS |
| 6 | 3 | 3 | 33 | 0.018305 | 1.000000 | 0.018 | PASS |
| 6 | 4 | 1 | 37 | 0.002408 | 0.392699 | 0.006 | PASS |
| 6 | 5 | 0 | 39 | 0.000000 | 0.000000 | 0.000 | PASS |
| 8 | 1 | 21 | 26 | 0.570668 | 1.000000 | 0.571 | PASS |
| 8 | 2 | 15 | 38 | 0.212871 | 1.000000 | 0.213 | PASS |
| 8 | 3 | 10 | 48 | 0.044655 | 1.000000 | 0.045 | PASS |
| 8 | 4 | 6 | 56 | 0.008342 | 1.000000 | 0.008 | PASS |
| 8 | 5 | 3 | 62 | 0.001154 | 0.490874 | 0.002 | PASS |
| 8 | 6 | 1 | 66 | 0.000151 | 0.098175 | 0.002 | PASS |
| 8 | 7 | 0 | 68 | 0.000000 | 0.000000 | 0.000 | PASS |
| 10 | 1 | 36 | 33 | 0.625887 | 1.000000 | 0.626 | PASS |
| 10 | 2 | 28 | 49 | 0.287369 | 1.000000 | 0.287 | PASS |
| 10 | 3 | 21 | 63 | 0.072940 | 1.000000 | 0.073 | PASS |
| 10 | 4 | 15 | 75 | 0.015749 | 1.000000 | 0.016 | PASS |
| 10 | 5 | 10 | 85 | 0.002877 | 1.000000 | 0.003 | PASS |
| 10 | 6 | 6 | 93 | 0.000524 | 0.417243 | 0.001 | PASS |
| 10 | 7 | 3 | 99 | 0.000072 | 0.122718 | 0.001 | PASS |
| 10 | 8 | 1 | 103 | 0.000009 | 0.024544 | 0.000 | PASS |
| 10 | 9 | 0 | 105 | 0.000000 | 0.000000 | 0.000 | PASS |
Legs 2–4 — independent corroboration
Selene
24 noisy cells across the depolarizing ladder — the measured surface itself.
pytket · H2-2 · opt 2
72/72 circuits pass the global-phase-free unitary oracle; 20/20 savings survive a production compiler's own pass at both forms.
Nexus cloud lanes
15/15 cells agree with the oracle inside 0.125 on H2-1LE, H2-Emulator, Helios-1E-lite, at 0.0000 HQC.
A saving a good optimiser can also find in the full QFT is not a saving; that is why the compiler leg exists. A result one engine produces is not a measurement; that is why the cloud leg exists.
Threats to validity
- The depolarizing ladder is a scaled stand-in for H-series noise, not a device-calibrated model; absolute error rates should not be read off it.
- k* is measured for this circuit family and target set, not proved in general.
- Every engine is an emulator. Agreement between emulators bounds implementation error, not hardware behaviour.
- Shot noise sets the resolution: differences smaller than the envelope are reported as agreement, so k* is a statistical, not exact, threshold.
What is not claimed
- No hardware shots. Emulator only (Selene + Nexus emulator lanes) — L2 on the trust ladder, never L3.
- The depolarizing model is a scaled stand-in for H-series noise, not a device-calibrated model.
- k* is measured on this circuit family and target set; it is not proved for arbitrary inputs.
- The bound is a worst-case certificate, not a prediction of the deviation.
- It bounds approximation error only; noise error is measured, never bounded here.
Reproduce
Install the pins in quantum/requirements.txt, then run the four legs in order. Each is resumable from a per-cell cache; 0.0000 HQC — the Nexus leg re-attaches to cached job ids rather than resubmitting.
PYTHONPATH=.pydeps python3 -m quantum.aqft_law.reproduce
- ok · analytic_leg · quantum.aqft_law.bound
- ok · cells · quantum.aqft_law.sweep
- ok · tket · quantum.aqft_law.tket_leg
- ok · nexus_leg · quantum.aqft_law.nexus_leg
Python 3.13.12; declared pins guppylang>=1.0, numpy>=1.26, scipy>=1.11, pytket>=2.18, pytket-quantinuum>=0.59.
Cite
The citation pins a content hash of the dataset. whole document with the provenance block removed, JSON canonicalised (sorted keys, no whitespace). If the hash moves, the dataset moved.
@misc{nadarasa2026aqft,
author = {Nadarasa, Arun},
title = {The AQFT crossover law k*(n, p): a four-leg emulator study},
year = {2026},
note = {Nadarasa Reduction, gate G26. Artifact src/data/demos/aqft_crossover_law.json,
sha256 55a663a3ef4232345ed32df3acb7424163d978af2b1d28af7709d9788c7ea46f},
url = {https://arunquantum.lovable.app/nadarasa/g26}
}