Quantum Primes: Irreducible Primitives for Hardware-Agnostic Quantum Compilation
Michael Bieg, Claude Fable 5.2
Abstract
Version 4.1 corrects: (i) the statement of which primes are compositions: besides Q2, Q4 and Q6, also Q1, Q7 and Q8 are compositions, since CNOT (Q3) together with arbitrary single-qubit rotations (Q5) is already exactly universal (Barenco et al. 1995); (ii) the per-prime counts in the summary row of the factorization table and in Table 1, which did not match the table entries (Q3 in 6, Q5 in 4, Q7 in 11, Q10 in 7 of 15 algorithms; the mean of 5.0 primes per algorithm is unchanged), and the statements derived from them (Q5 and Q10 co-occur in the three variational algorithms but not exclusively); (iii) the benchmark wording: prime-guided and tunable-basis circuits have identical two-qubit counts on the all-to-all platforms (agreement within 6 % overall) but are not identical circuits; their circuit depths are now reported (the prime-guided circuits are shallower on QAOA-8, which was not the test metric); a rerun of the published bench.py with Qiskit 2.4.2 reproduces every count; (iv) the statements on post-selection: PostBQP = PP (Aaronson 2005), and PP is a classical complexity class, so post-selection is not placed beyond classical computation; (v) the cross-domain correspondence with the classical primes, now stated as a role analogy rather than a structural isomorphism, as in the other papers of the series, with counts from their current versions (114 algorithms; 4 observables per race); (vi) the native two-qubit gates in the hardware table: CZ on Google Willow (the fSim family was native on the earlier Sycamore processor; Cirq device documentation) and ZZ(θ) on IonQ Forte (the Mølmer–Sørensen gate is native on Aria-class systems, which is what the benchmark's IonQ model uses; IonQ native-gate documentation, Chen et al., Quantum 8, 1516, 2024), with the dependent statements on native Hamiltonian evolution; the ion species of IonQ Forte (171Yb+), the citations for randomized benchmarking (Magesan et al. 2011) and BQSKit (Younis et al. 2021), and the location of the benchmark harness, which is included with this record (README.md updated with depths). All other results, the factorization table entries and the other hardware-table entries are unchanged. Previous version: 10.5281/zenodo.21139519. 12 quantum computational roles (Q1-Q12) for cross-platform quantum compilation, with native realizations tabulated on 6 hardware platforms. Paper revision v2 (record version 4) added a falsification benchmark of the framework's central operational claim and two corrections. Benchmark (Qiskit, QFT/QPE/QAOA/GHZ, three platform models: IBM heavy-hex, IonQ Aria-class, Quantinuum; all circuits verified unitarily equivalent): role-level 'structure-preserving' compilation does NOT beat rebase-then-optimize -- the ~2x two-qubit-gate reduction over the fixed-CNOT pipeline is fully attributable to the tunable native entangler; standard Qiskit O3 told about rzz/rxx matches the prime-guided circuits in two-qubit gate count (identical counts on all-to-all platforms). Reported openly as a negative result; the primes are re-scoped as a cross-platform taxonomy. Corrections: the primes are a generating role set {Q1,Q3,Q5,Q7}, not mutually irreducible operations (Q2, Q4, Q6, and Q1, Q7, Q8, are compositions); and quantum measurement 'information utilization' is the Holevo bound, not an efficiency defect. The benchmark harness (bench.py, with README.md) is included with this record.