Smarter k-Partitioning of ZX-Diagrams for Improved Quantum Circuit Simulation
Matthew Sutcliffe
TL;DR
This work tackles the challenge of strong classical simulation of quantum circuits by leveraging ZX-diagrams and introducing an optimised k-partitioning approach. It combines GPU-accelerated reduction, parameterised state precomputation, and pairwise regrouping to dramatically reduce the number of terms and cross-references required to obtain the scalar amplitude of a circuit. The authors formalise the ZX-Partitioner, which balances precompute and cross-reference costs to select an optimal partitioning and demonstrates orders-of-magnitude speedups in regimes with shallow, highly interconnected circuits. The approach is complemented by a public Python tool and a discussion of practical trade-offs, including memory overhead and potential enhancements via ZX-calculus-informed partitioning rules.
Abstract
We introduce a novel method for strong classical simulation of quantum circuits based on optimally k-partitioning ZX-diagrams, reducing each part individually, and then efficiently cross-referencing their results to conclude the overall probability amplitude of the original circuit. We then analyse how this method fares against the alternatives for circuits of various size, shape, and interconnectedness and demonstrate how it is often liable to outperform those alternatives in speed by orders of magnitude.
