Fast Classical Simulation of Quantum Circuits via Parametric Rewriting in the ZX-Calculus
arXiv:2403.06777 · doi:10.4204/EPTCS.426.10
Abstract
The ZX-calculus is an algebraic formalism that allows quantum computations to be simplified via a small number of simple graphical rewrite rules. Recently, it was shown that, when combined with a family of "sum-over-Cliffords" techniques, the ZX-calculus provides a powerful tool for classical simulation of quantum circuits. However, for several important classical simulation tasks, such as computing the probabilities associated with many measurement outcomes of a single quantum circuit, this technique results in reductions over many very similar diagrams, where much of the same computational work is repeated. In this paper, we show that the majority of this work can be shared across branches, by developing reduction strategies that can be run parametrically on diagrams with boolean free parameters. As parameters only need to be fixed after the bulk of the simplification work is already done, we show that it is possible to perform the final stage of classical simulation quickly utilising a high degree of GPU parallelism. Using these methods, we demonstrate an average speedup factor of 78.3+-10.2 for certain classical simulation tasks vs. the non-parametric approach.
In Proceedings QPL 2025, arXiv:2508.13619
References in corpus (20)
- Improved Simulation of Stabilizer Circuits
- Interacting Quantum Observables: Categorical Algebra and Diagrammatics
- Trading classical and quantum computational resources
- Simulation of quantum circuits by low-rank stabilizer decompositions
- Graph-theoretic Simplification of Quantum Circuits with the ZX-calculus
- The ZX-calculus is complete for stabilizer quantum mechanics
- PyZX: Large Scale Automated Diagrammatic Reasoning
- Phase Gadget Synthesis for Shallow Circuits
- Simulating quantum circuits with ZX-calculus reduced stabiliser decompositions
- Improved upper bounds on the stabilizer rank of magic states
- Completeness of the ZX-calculus for Pure Qubit Clifford+T Quantum Mechanics
- Annealing Optimisation of Mixed ZX Phase Circuits
- The Basis of Design Tools for Quantum Computing: Arrays, Decision Diagrams, Tensor Networks, and ZX-Calculus
- Optimizing ZX-Diagrams with Deep Reinforcement Learning
- Flow-preserving ZX-calculus Rewrite Rules for Optimisation and Obfuscation
- Procedurally Optimised ZX-Diagram Cutting for Efficient T-Decomposition in Classical Simulation
- Speeding up quantum circuits simulation using ZX-Calculus
- Causal flow preserving optimisation of quantum circuits in the ZX-calculus
- Smarter k-Partitioning of ZX-Diagrams for Improved Quantum Circuit Simulation
- Dynamic T-decomposition for classical simulation of quantum circuits