pith. sign in

arxiv: 2501.04776 · v2 · submitted 2025-01-08 · 🪐 quant-ph

IQPopt: Fast optimization of instantaneous quantum polynomial circuits in JAX

Pith reviewed 2026-05-23 05:33 UTC · model grok-4.3

classification 🪐 quant-ph
keywords IQP circuitsclassical optimizationPauli-Z observablesJAXquantum generative modelsmaximum mean discrepancyclassical simulationinstantaneous quantum polynomial
0
0 comments X

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.

The paper introduces IQPopt, a JAX-based package that optimizes large-scale instantaneous quantum polynomial circuits on classical computers. It does so by using an efficient classical simulation algorithm to estimate expectation values whenever the objective function can be expressed in terms of Pauli-Z type observables. A sympathetic reader would care because sampling from these circuits is widely believed to be classically hard, so the method lets users identify strong circuit instances before committing them to quantum hardware. The package also includes a dedicated module for training and evaluating quantum generative models with maximum mean discrepancy and supports acceleration on GPUs.

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

These are editorial extensions of the paper, not claims the author makes directly.

  • 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

Figures reproduced from arXiv: 2501.04776 by Erik Armengol, Joseph Bowles.

Figure 1
Figure 1. Figure 1: Overview of IQP circuit optimization in IQPopt ( [PITH_FULL_IMAGE:figures/full_fig_p002_1.png] view at source ↗
Figure 2
Figure 2. Figure 2: (left): An example code block that defines a 300 qubit circuit with 45150 parameters [PITH_FULL_IMAGE:figures/full_fig_p003_2.png] view at source ↗
Figure 3
Figure 3. Figure 3: The computational graph computed by IQPopt. The matrices [PITH_FULL_IMAGE:figures/full_fig_p008_3.png] view at source ↗
Figure 4
Figure 4. Figure 4: Diagram of the structure of the package. While [PITH_FULL_IMAGE:figures/full_fig_p011_4.png] view at source ↗
Figure 5
Figure 5. Figure 5: Runtimes for the batch estimation of 10000 randomly chosen observables, for different [PITH_FULL_IMAGE:figures/full_fig_p019_5.png] view at source ↗
Figure 6
Figure 6. Figure 6: (left) Execution time for the benchmark of Sec. [PITH_FULL_IMAGE:figures/full_fig_p019_6.png] view at source ↗
Figure 7
Figure 7. Figure 7: Runtime to estimate the squared maximum mean discrepancy of Eq. ( [PITH_FULL_IMAGE:figures/full_fig_p020_7.png] view at source ↗
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.

Desk editor's note, referee report, simulated authors' rebuttal, and a circularity audit. Tearing a paper down is the easy half of reading it; the pith above is the substance, this is the friction.

Referee Report

2 major / 1 minor

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)
  1. [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.
  2. [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)
  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

2 responses · 0 unresolved

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
  1. 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

  2. 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

0 steps flagged

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

0 free parameters · 0 axioms · 0 invented entities

The paper introduces no new free parameters, axioms, or invented entities; it is an implementation of known classical simulation techniques for a restricted class of quantum circuits.

pith-pipeline@v0.9.0 · 5648 in / 1038 out tokens · 52900 ms · 2026-05-23T05:33:19.656153+00:00 · methodology

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 1 Pith paper

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. Parity Supervision as a Driver of Generalization in Quantum Generative Modeling

    quant-ph 2026-05 unverdicted novelty 5.0

    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

35 extracted references · 35 canonical work pages · cited by 1 Pith paper · 4 internal anchors

  1. [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)

  2. [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. [3]

    Sparsematrixmultiplicationpackage(SMMP)

    RandolphEBankandCraigCDouglas.“Sparsematrixmultiplicationpackage(SMMP).” In: Adv. Comput. Math.1.1 (1993), pp. 127–137 (page 24)

  4. [4]

    Quantum Neural Networks in Practice: A Comparative Study with Classical Models from Standard Data Sets to Industrial Images

    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. [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)

  6. [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. [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)

  8. [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. [9]

    Version 0.3.13

    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)

  10. [10]

    Classical simulation of com- muting quantum computations implies collapse of the polynomial hierarchy

    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)

  11. [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)

  12. [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)

  13. [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

  14. [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. [15]

    Fontana, M

    Enrico Fontana, Manuel S Rudolph, Ross Duncan, Ivan Rungger, and Cristina Cirstoiu. “Classicalsimulationsofnoisyvariationalquantumcircuits”.In: arXiv preprint arXiv:2306.05400 (2023) (page 9)

  16. [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)

  17. [17]

    A Kernel Two-Sample Test

    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)

  18. [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)

  19. [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. [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)

  21. [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)

  22. [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. [23]

    Additive-errorfine-grainedquantumsupremacy

    TomoyukiMorimaeandSuguruTamaki.“Additive-errorfine-grainedquantumsupremacy”. In: Quantum 4 (2020), p. 329 (page 1)

  24. [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)

  25. [25]

    NVIDIA cuSPARSE

    NVIDIA Corporation. NVIDIA cuSPARSE. https://developer.nvidia.com/cusparse. 2024 (page 20)

  26. [26]

    Analysis of boolean functions

    Ryan O’Donnell. “Analysis of boolean functions”. In:arXiv preprint arXiv:2105.10386 (2021) (page 4)

  27. [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)

  28. [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)

  29. [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. [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

  31. [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)

  32. [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)

  33. [33]

    Binary Matroids and Quantum Probability Distributions

    Dan Shepherd. “Binary matroids and quantum probability distributions”. In:arXiv preprint arXiv:1005.1744 (2010) (page 2)

  34. [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. [35]

    Oliphant, Matt Haberland, Tyler Reddy, David Cournapeau, Evgeni Burovski, Pearu Peterson, Warren Weckesser, Jonathan Bright, St´ efan J

    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...