Simulating Clifford Circuits with Gaussian Elimination
Yuchen Pang, Edgar Solomonik
TL;DR
This work reframes Clifford circuit simulation as a linear-algebra problem over GF(2) by representing circuits as phased graph states and linking their amplitudes to LDL decompositions. Through ZX-calculus and graph-like ZX-diagrams, circuits are mapped to graphs whose LDL factors drive both strong and weak simulations, with the treewidth guiding the runtime via a fast LDL algorithm. The approach matches or surpasses state-of-the-art graph-state methods for several regimes, and extends to Clifford+T circuits by leveraging stabilizer decompositions. Beyond simulation, the amplitudes formula yields new insights into locally Clifford-equivalent graph states and enables efficient learning of low-rank graph structures. Overall, the paper provides a unifying, algebraic framework that broadens the toolkit for classical simulation of quantum circuits using fast linear algebra techniques.
Abstract
Quantum circuits are considered more powerful than classical circuits and require exponential resources to simulate classically. Clifford circuits are a special class of quantum circuits that can be simulated in polynomial time but still show important quantum effects such as entanglement. In this work, we present an algorithm that simulates Clifford circuits by performing Gaussian elimination on a modified adjacency matrix derived from the circuit structure. Our work builds on an ZX-calculus tensor network representation of Clifford circuits that reduces to quantum graph states. We give a concise formula of amplitudes of graph states based on the LDL decomposition of matrices over GF(2), and use it to get efficient algorithms for strong and weak simulation of Clifford circuits using tree-decomposition-based fast LDL algorithm. The complexity of our algorithm matches the state of art for weak graph state simulation and improves the state of art for strong graph state simulation by taking advantage of Strassen-like fast matrix multiplication. Our algorithm is also efficient when computing many amplitudes or samples of a Clifford circuit. Further, our amplitudes formula provides a new characterization of locally Clifford equivalent graph states as well as an efficient protocol to learn graph states with low-rank adjacency matrices.
