IQPopt: Fast optimization of instantaneous quantum polynomial circuits in JAX
Pith reviewed 2026-05-23 05:33 UTC · model grok-4.3
The pith
Large instantaneous quantum polynomial circuits can be optimized on classical hardware when objectives depend on Pauli-Z observables.
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
Core claim
IQPopt exploits an efficient classical simulation algorithm for expectation value estimation of Pauli-Z observables in IQP circuits, enabling optimization of circuits with thousands of qubits and millions of gates on classical hardware provided the objective function has an efficient description in terms of such observables. This supplies a practical route to locate powerful circuit instances prior to deployment and sampling on quantum hardware where computational advantages may exist.
What carries the argument
Efficient classical simulation algorithm for Pauli-Z expectation values in IQP circuits, combined with JAX automatic differentiation.
If this is right
- Optimized circuits can be transferred to quantum hardware for sampling where classical hardness may confer advantage.
- The MMD module permits training and evaluation of quantum generative models on the same classical infrastructure.
- Hardware accelerators such as GPUs can further speed up the optimization process.
- Users can tune million-gate circuits classically before quantum execution.
Where Pith is reading between the lines
- The same simulation technique could be adapted to other circuit families that admit efficient Pauli observable evaluation.
- This classical preprocessor could help benchmark claims of quantum advantage by supplying high-quality starting points.
- Extensions to additional observable classes would broaden the range of objective functions that become classically tractable.
Load-bearing premise
An efficient classical simulation algorithm exists for estimating expectation values of Pauli-Z observables in IQP circuits at the scale of thousands of qubits.
What would settle it
A demonstration that simulation time or memory for Pauli-Z expectation values grows exponentially with qubit number in some IQP circuit, or that the optimizer cannot reach claimed scale within feasible classical resources.
Figures
read the original abstract
IQPopt is a software package designed to optimize large-scale instantaneous quantum polynomial circuits on classical hardware. By exploiting an efficient classical simulation algorithm for expectation value estimation, circuits with thousands of qubits and millions of gates can be optimized, provided the relevant objective function has an efficient description in terms of Pauli-Z type observables. Since sampling from instantaneous quantum polynomial circuits is widely believed to be hard for classical computers, this provides a method to identify powerful circuit instances before deployment and sampling on quantum hardware, where computational advantages may exist. The package leverages automatic differentiation in JAX, can be accelerated with access to hardware accelerators such as graphics processing units, and contains a dedicated module that can be used to train and evaluate quantum generative models via the maximum mean discrepancy.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The manuscript introduces IQPopt, a JAX-based software package for optimizing large-scale instantaneous quantum polynomial (IQP) circuits on classical hardware. It exploits an efficient classical simulation algorithm for estimating expectation values of Pauli-Z observables to optimize circuits with thousands of qubits and millions of gates when the objective function admits an efficient description as a linear combination of such observables. The package supports automatic differentiation, GPU acceleration, and includes a dedicated module for training and evaluating quantum generative models via maximum mean discrepancy.
Significance. If the claimed efficient classical simulation for Pauli-Z expectations holds at the stated scales, the work provides a practical tool for pre-optimizing IQP circuit instances prior to quantum sampling, where computational advantages may appear. The JAX implementation with autodiff and hardware acceleration is a useful engineering contribution, and the MMD module for generative models adds direct applicability to quantum machine learning tasks.
major comments (2)
- [Abstract] Abstract: the claim that circuits with thousands of qubits and millions of gates can be optimized rests on the existence of a poly(n, gates) classical algorithm for Pauli-Z expectation estimation, yet no derivation, complexity bound, error analysis, or scaling verification is supplied.
- [Simulation method (implied in abstract and package description)] The assertion of an efficient path for Pauli-Z observables (distinct from #P-hard sampling) is load-bearing, but the text provides no explicit gate-structure restrictions, handling of growing observable support, or benchmarks confirming sub-exponential scaling at n~1000 with 10^6 gates.
minor comments (1)
- [Package description] Specify the precise mapping from objective functions to Pauli-Z observables and any restrictions on the diagonal phase gates to support reproducibility.
Simulated Author's Rebuttal
We thank the referee for their careful reading of the manuscript and for highlighting the need for greater technical detail on the simulation method. We address each major comment below and will revise the manuscript to incorporate the requested clarifications, derivations, and benchmarks.
read point-by-point responses
-
Referee: [Abstract] Abstract: the claim that circuits with thousands of qubits and millions of gates can be optimized rests on the existence of a poly(n, gates) classical algorithm for Pauli-Z expectation estimation, yet no derivation, complexity bound, error analysis, or scaling verification is supplied.
Authors: We agree that the abstract's claim requires supporting technical detail in the main text. The underlying simulation exploits the commuting diagonal structure of IQP circuits to reduce Pauli-Z expectation estimation to a classical computation whose cost is polynomial in n and the number of gates when the objective is a linear combination of Pauli-Z observables with bounded support. In the revision we will add an explicit derivation of the algorithm, its complexity bound, error analysis for the estimator, and scaling benchmarks that confirm the claimed regime. revision: yes
-
Referee: [Simulation method (implied in abstract and package description)] The assertion of an efficient path for Pauli-Z observables (distinct from #P-hard sampling) is load-bearing, but the text provides no explicit gate-structure restrictions, handling of growing observable support, or benchmarks confirming sub-exponential scaling at n~1000 with 10^6 gates.
Authors: The method applies specifically to IQP circuits (Hadamard layers sandwiching commuting diagonal gates) and to objectives whose Pauli-Z decomposition has support that does not grow exponentially with circuit size; under these restrictions the observable support remains tractable and the cost stays polynomial. We will expand the manuscript to state these restrictions explicitly, describe how growing support is avoided or truncated, and add numerical scaling results up to the stated sizes. revision: yes
Circularity Check
No circularity; software package implements stated simulation technique
full rationale
The manuscript presents a JAX-based optimization tool for IQP circuits that exploits an efficient classical algorithm for Pauli-Z expectation values when the objective admits an efficient description in those observables. No derivation of the simulation algorithm itself is claimed, no parameters are fitted to data and then relabeled as predictions, and no self-citation chain is invoked to justify a uniqueness result or ansatz. The work is therefore a self-contained implementation description whose central capability rests on the pre-existing simulation method rather than on any internal reduction to its own inputs.
Axiom & Free-Parameter Ledger
Forward citations
Cited by 1 Pith paper
-
Parity Supervision as a Driver of Generalization in Quantum Generative Modeling
Parity supervision improves exact KL fit and recovery of unseen high-value states in IQP Born machines beyond MSE training or max-entropy controls via parity-moment evidence transfer.
Reference graph
Works this paper leans on
-
[1]
Quan- tum supremacy using a programmable superconducting processor
Frank Arute, Kunal Arya, Ryan Babbush, Dave Bacon, Joseph C Bardin, Rami Barends, Rupak Biswas, Sergio Boixo, Fernando GSL Brandao, David A Buell, et al. “Quan- tum supremacy using a programmable superconducting processor”. In:Nature 574.7779 (2019), pp. 505–510 (page 2)
work page 2019
-
[2]
Strategies for running the QAOA at hundreds of qubits
Brandon Augustino, Madelyn Cain, Edward Farhi, Swati Gupta, Sam Gutmann, Daniel Ranard, Eugene Tang, and Katherine Van Kirk. “Strategies for running the QAOA at hundreds of qubits”. In:arXiv preprint arXiv:2410.03015(2024) (page 2)
-
[3]
Sparsematrixmultiplicationpackage(SMMP)
RandolphEBankandCraigCDouglas.“Sparsematrixmultiplicationpackage(SMMP).” In: Adv. Comput. Math.1.1 (1993), pp. 127–137 (page 24)
work page 1993
-
[4]
Daniel Basilewitsch, João F Bravo, Christian Tutschku, and Frederick Struckmeier. “Quantum Neural Networks in Practice: A Comparative Study with Classical Models from Standard Data Sets to Industrial Images”. In:arXiv preprint arXiv:2411.19276 (2024) (page 9)
-
[5]
PennyLane: Automatic differentiation of hybrid quantum-classical computations
VilleBergholm,Josh Izaac,MariaSchuld, Christian Gogolin, ShahnawazAhmed,Vishnu Ajith, M Sohaib Alam, Guillermo Alonso-Linaje, B AkashNarayanan, Ali Asadi, et al. “Pennylane: Automatic differentiation of hybrid quantum-classical computations”. In: arXiv preprint arXiv:1811.04968(2018) (page 12)
work page internal anchor Pith review Pith/arXiv arXiv 2018
-
[6]
Efficient and Modular Im- plicit Differentiation
Mathieu Blondel, Quentin Berthet, Marco Cuturi, Roy Frostig, Stephan Hoyer, Felipe Llinares-López, Fabian Pedregosa, and Jean-Philippe Vert. “Efficient and Modular Im- plicit Differentiation”. In:arXiv preprint arXiv:2105.15183(2021) (page 8)
-
[7]
Logical quantum processor based on reconfigurable atom arrays
Dolev Bluvstein, Simon J Evered, Alexandra A Geim, Sophie H Li, Hengyun Zhou, Tom Manovitz, Sepehr Ebadi, Madelyn Cain, Marcin Kalinowski, Dominik Hangleiter, et al. “Logical quantum processor based on reconfigurable atom arrays”. In:Nature 626.7997 (2024), pp. 58–65 (pages 1, 2)
work page 2024
-
[8]
Better than classical? the subtle artofbenchmarkingquantummachinelearningmodels
Joseph Bowles, Shahnawaz Ahmed, and Maria Schuld. “Better than classical? the subtle artofbenchmarkingquantummachinelearningmodels”.In: arXiv preprint arXiv:2403.07059 (2024) (page 9)
-
[9]
James Bradbury, Roy Frostig, Peter Hawkins, Matthew James Johnson, Chris Leary, Dougal Maclaurin, George Necula, Adam Paszke, Jake VanderPlas, Skye Wanderman- Milne, and Qiao Zhang.JAX: composable transformations of Python+NumPy programs. Version 0.3.13. 2018.url: http://github.com/jax-ml/jax (pages 2, 8)
work page 2018
-
[10]
Michael J Bremner, Richard Jozsa, and Dan J Shepherd. “Classical simulation of com- muting quantum computations implies collapse of the polynomial hierarchy”. In:Proceed- ings of the Royal Society A: Mathematical, Physical and Engineering Sciences467.2126 (2011), pp. 459–472 (page 1)
work page 2011
-
[11]
Average-case complex- ity versus approximate simulation of commuting quantum computations
Michael J Bremner, Ashley Montanaro, and Dan J Shepherd. “Average-case complex- ity versus approximate simulation of commuting quantum computations”. In:Physical review letters117.8 (2016), p. 080501 (page 1)
work page 2016
-
[12]
Achieving quantum supremacy with sparse and noisy commuting quantum computations
Michael J Bremner, Ashley Montanaro, and Dan J Shepherd. “Achieving quantum supremacy with sparse and noisy commuting quantum computations”. In:Quantum 1 (2017), p. 8 (page 1)
work page 2017
-
[13]
CVXPY: A Python-embedded modeling language for convex optimization
Steven Diamond and Stephen Boyd. “CVXPY: A Python-embedded modeling language for convex optimization”. In:Journal of Machine Learning Research17.83 (2016), pp. 1– 5 (page 17). 22
work page 2016
-
[14]
Quantum supremacy through the quantum approx- imate optimization algorithm
Edward Farhi and Aram W Harrow. “Quantum supremacy through the quantum approx- imate optimization algorithm”. In:arXiv preprint arXiv:1602.07674(2016) (page 2)
-
[15]
Enrico Fontana, Manuel S Rudolph, Ross Duncan, Ivan Rungger, and Cristina Cirstoiu. “Classicalsimulationsofnoisyvariationalquantumcircuits”.In: arXiv preprint arXiv:2306.05400 (2023) (page 9)
-
[16]
Large sample analysis of the median heuristic
Damien Garreau, Wittawat Jitkrittum, and Motonobu Kanagawa. “Large sample anal- ysis of the median heuristic”. In:arXiv preprint arXiv:1707.07269(2017) (page 15)
work page internal anchor Pith review Pith/arXiv arXiv 2017
-
[17]
ArthurGretton,KarstenM.Borgwardt,MalteJ.Rasch,BernhardSchölkopf,andAlexan- der Smola. “A Kernel Two-Sample Test”. In:Journal of Machine Learning Research13.25 (2012), pp. 723–773.url: http://jmlr.org/papers/v13/gretton12a.html (page 15)
work page 2012
-
[18]
Quantum approximate optimization with hard and soft constraints
Stuart Hadfield, Zhihui Wang, Eleanor G Rieffel, Bryan O’Gorman, Davide Venturelli, and Rupak Biswas. “Quantum approximate optimization with hard and soft constraints”. In: Proceedings of the Second International Workshop on Post Moores Era Supercomput- ing. 2017, pp. 15–21 (page 2)
work page 2017
-
[19]
Fault-tolerant compilingofclassicallyhardIQPcircuitsonhypercubes
DominikHangleiter,MarcinKalinowski,DolevBluvstein,MadelynCain,NishadMaskara, Xun Gao, Aleksander Kubica, Mikhail D Lukin, and Michael J Gullans. “Fault-tolerant compilingofclassicallyhardIQPcircuitsonhypercubes”.In: arXiv preprint arXiv:2404.19005 (2024) (page 1)
-
[20]
Quantum computations: algorithms and error correction
A Yu Kitaev. “Quantum computations: algorithms and error correction”. In:Russian Mathematical Surveys52.6 (1997), p. 1191 (page 21)
work page 1997
-
[21]
Protocols for trainable and differentiable quantum generative modeling
Oleksandr Kyriienko, Annie E Paine, and Vincent E Elfving. “Protocols for trainable and differentiable quantum generative modeling”. In:Physical Review Research6.3 (2024), p. 033291 (page 2)
work page 2024
-
[22]
Improved separation between quantum and classical computers for sampling and functional tasks
Simon C Marshall, Scott Aaronson, and Vedran Dunjko. “Improved separation between quantum and classical computers for sampling and functional tasks”. In:arXiv preprint arXiv:2410.20935 (2024) (page 1)
-
[23]
Additive-errorfine-grainedquantumsupremacy
TomoyukiMorimaeandSuguruTamaki.“Additive-errorfine-grainedquantumsupremacy”. In: Quantum 4 (2020), p. 329 (page 1)
work page 2020
-
[24]
Simulating quantum computers with probabilistic methods
M. Van den Nest.Simulating quantum computers with probabilistic methods. 2010. arXiv: 0911.1624 [quant-ph]. url: https://arxiv.org/abs/0911.1624 (pages 2, 5)
work page internal anchor Pith review Pith/arXiv arXiv 2010
-
[25]
NVIDIA Corporation. NVIDIA cuSPARSE. https://developer.nvidia.com/cusparse. 2024 (page 20)
work page 2024
-
[26]
Ryan O’Donnell. “Analysis of boolean functions”. In:arXiv preprint arXiv:2105.10386 (2021) (page 4)
-
[27]
Robust sparse IQP sampling in constant depth
Louis Paletta, Anthony Leverrier, Alain Sarlette, Mazyar Mirrahimi, and Christophe Vuillot. “Robust sparse IQP sampling in constant depth”. In:Quantum 8 (2024), p. 1337 (page 1)
work page 2024
-
[28]
From estimation of quantum probabilities to simulation of quantum circuits
Hakop Pashayan, Stephen D Bartlett, and David Gross. “From estimation of quantum probabilities to simulation of quantum circuits”. In:Quantum 4 (2020), p. 223 (page 2)
work page 2020
-
[29]
Understanding Deep Generative Models with Generalized Empirical Likelihoods
Suman Ravuri, Mélanie Rey, Shakir Mohamed, and Marc Deisenroth. Understanding Deep Generative Models with Generalized Empirical Likelihoods. 2023. arXiv: 2306.09780 [cs.LG]. url: https://arxiv.org/abs/2306.09780 (pages 3, 17)
-
[30]
Training large-scale gen- erative quantum machine learning models on classical hardware
Erik Recio Armengol, Shahnawaz Ahmed, and Joseph Bowles. “Training large-scale gen- erative quantum machine learning models on classical hardware”. In:in preparation (2025) (pages 3, 15, 17). 23
work page 2025
-
[31]
Trainability barriers and opportunities in quantum generative modeling
Manuel S Rudolph, Sacha Lerch, Supanut Thanasilp, Oriel Kiss, Oxana Shaya, Sofia Vallecorsa, Michele Grossi, and Zoë Holmes. “Trainability barriers and opportunities in quantum generative modeling”. In:npj Quantum Information 10.1 (2024), p. 116 (pages 2, 15)
work page 2024
-
[32]
Classical surrogates for quantum learning models
Franz J Schreiber, Jens Eisert, and Johannes Jakob Meyer. “Classical surrogates for quantum learning models”. In:Physical Review Letters131.10 (2023), p. 100803 (page 9)
work page 2023
-
[33]
Binary Matroids and Quantum Probability Distributions
Dan Shepherd. “Binary matroids and quantum probability distributions”. In:arXiv preprint arXiv:1005.1744 (2010) (page 2)
work page internal anchor Pith review Pith/arXiv arXiv 2010
-
[34]
Potential and limitations of random fourier features for dequan- tizing quantum machine learning
Ryan Sweke, Erik Recio, Sofiene Jerbi, Elies Gil-Fuster, Bryce Fuller, Jens Eisert, and Johannes Jakob Meyer. “Potential and limitations of random fourier features for dequan- tizing quantum machine learning”. In:arXiv preprint arXiv:2309.11647(2023) (page 9)
-
[35]
Pauli Virtanen, Ralf Gommers, Travis E. Oliphant, Matt Haberland, Tyler Reddy, David Cournapeau, Evgeni Burovski, Pearu Peterson, Warren Weckesser, Jonathan Bright, Stéfan J. van der Walt, Matthew Brett, Joshua Wilson, K. Jarrod Millman, Nikolay Mayorov, Andrew R. J. Nelson, Eric Jones, Robert Kern, Eric Larson, C J Carey, İlhan Polat, Yu Feng, Eric W. Mo...
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.