Metraipolis › archive › dc_d19b5965f8d9

Qupertino: Pure MLX Array Kernels versus Hand-Tuned Metal Shaders for Quantum Circuit Simulation on Apple Silicon — arXiv:2609.19147

Source
arXiv (en)
Original
https://arxiv.org/abs/2609.19147
License (as archived)
CC0-1.0
Archived
2026-10-10T05:48:20.345Z
SHA-256 of the archived text
8eb8c04b21a8278d89dacedcc86151880c1ac2116fad44f4e38253c43320ac17
Stable URL of this page
https://metraipolis.com/documento/dc_d19b5965f8d9

How to cite

Qupertino: Pure MLX Array Kernels versus Hand-Tuned Metal Shaders for Quantum Circuit Simulation on Apple Silicon — arXiv:2609.19147 — arXiv (en), https://arxiv.org/abs/2609.19147 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_d19b5965f8d9 (Metraipolis archive dc_d19b5965f8d9, sha256 8eb8c04b21a8278d89dacedcc86151880c1ac2116fad44f4e38253c43320ac17)
BibTeX
@misc{dcd19b5965f8d9,
  title = {Qupertino: Pure MLX Array Kernels versus Hand-Tuned Metal Shaders for Quantum Circuit Simulation on Apple Silicon — arXiv:2609.19147},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2609.19147},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_d19b5965f8d9; sha256 8eb8c04b21a8278d89dacedcc86151880c1ac2116fad44f4e38253c43320ac17},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.19147. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

We present Qupertino, an open-source quantum circuit simulator for Apple Silicon, and use it to ask how far a simulator written purely in MLX array operations can go and what remains for hand-tuned Metal shaders. The framework ships two measured tiers. The pure tier dispatches structured gates to specialized MLX kernels: diagonal gates run as broadcast phase multiplies, controlled gates as masked half-state updates, and SWAP as an axis permutation; a paired dense-path ablation attributes a 25-33x speedup to this dispatch alone. The opt-in shader tier adds hand-written Metal kernels for every structured layer family in our benchmarks, including phase-LUT diagonals, GF(2) affine permutation gathers, fused tensor-product single-qubit layers, radix-4 QFT and Walsh-Hadamard butterflies, and basis-conjugated XX/YY Trotter layers; runtime fusion detectors route work to them while preserving circuit semantics exactly, confirmed by parity tests. In a four-way interleaved campaign on M1 Max (two warmups, ten measured repeats per cell), the shader tier is fastest by mean runtime in all 18 comparison cells against same-machine Qiskit Aer CPU and PennyLane this http URL . At 25 qubits, gate-stream QFT runs in 0.0591 +/- 0.0029 s (paired 47.2x over Aer, 95.3x over PennyLane) and TFIM Trotter evolution in 0.495 +/- 0.035 s (36.2x and 67.2x). Across a 29-workload suite, the shader tier's paired speedup over pure MLX reaches 25x, with 25 of 29 workloads accelerating above parity. The framework also supports variational ansatz workloads, QAOA, QCBM, Trotter-Suzuki Hamiltonian simulation, and OpenQASM 2.0 import (unitary subset); a preliminary MPS backend reaches 150 qubits on limited-entanglement workloads. Correctness rests on 253 Python tests, independent complex128 checks, and a Trotter-error curve against exact diagonalization. State-vector memory remains exponential in qubit count.

Tema degli esploratori: fisica e astronomia (retro-catalogo arXiv: annunci del 2026-09-18 in quant-ph).
Categorie arXiv: Quantum Physics (quant-ph).
Pagina del lavoro: https://arxiv.org/abs/2609.19147 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-10T05:18:18.855Z dalla pagina https://arxiv.org/catchup/quant-ph/2026-09-18?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).