{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,1,31]],"date-time":"2026-01-31T02:24:18Z","timestamp":1769826258923,"version":"3.49.0"},"reference-count":48,"publisher":"Verein zur Forderung des Open Access Publizierens in den Quantenwissenschaften","license":[{"start":{"date-parts":[[2024,2,12]],"date-time":"2024-02-12T00:00:00Z","timestamp":1707696000000},"content-version":"unspecified","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"DOI":"10.13039\/501100000038","name":"NSERC","doi-asserted-by":"crossref","award":["RGPIN-2019-04198"],"award-info":[{"award-number":["RGPIN-2019-04198"]}],"id":[{"id":"10.13039\/501100000038","id-type":"DOI","asserted-by":"crossref"}]}],"content-domain":{"domain":["quantum-journal.org"],"crossmark-restriction":false},"short-container-title":["Quantum"],"abstract":"<jats:p>A general quantum circuit can be simulated classically in exponential time. If it has a planar layout, then a tensor-network contraction algorithm due to Markov and Shi has a runtime exponential in the square root of its size, or more generally exponential in the treewidth of the underlying graph. Separately, Gottesman and Knill showed that if all gates are restricted to be Clifford, then there is a polynomial time simulation. We combine these two ideas and show that treewidth and planarity can be exploited to improve Clifford circuit simulation. Our main result is a classical algorithm with runtime scaling asymptotically as <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\"><mml:msup><mml:mi>n<\/mml:mi><mml:mrow class=\"MJX-TeXAtom-ORD\"><mml:mi>&amp;#x03C9;<\/mml:mi><mml:mrow class=\"MJX-TeXAtom-ORD\"><mml:mo>\/<\/mml:mo><\/mml:mrow><mml:mn>2<\/mml:mn><\/mml:mrow><\/mml:msup><\/mml:math><mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\"><mml:mo>&amp;#x003C;<\/mml:mo><\/mml:math><mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\"><mml:msup><mml:mi>n<\/mml:mi><mml:mrow class=\"MJX-TeXAtom-ORD\"><mml:mn>1.19<\/mml:mn><\/mml:mrow><\/mml:msup><\/mml:math> which samples from the output distribution obtained by measuring all <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\"><mml:mi>n<\/mml:mi><\/mml:math> qubits of a planar graph state in given Pauli bases. Here <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\"><mml:mi>&amp;#x03C9;<\/mml:mi><\/mml:math> is the matrix multiplication exponent. We also provide a classical algorithm with the same asymptotic runtime which samples from the output distribution of any constant-depth Clifford circuit in a planar geometry. Our work improves known classical algorithms with cubic runtime.A key ingredient is a mapping which, given a tree decomposition of some graph <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\"><mml:mi>G<\/mml:mi><\/mml:math>, produces a Clifford circuit with a structure that mirrors the tree decomposition and which emulates measurement of the corresponding graph state. We provide a classical simulation of this circuit with the runtime stated above for planar graphs and otherwise <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\"><mml:mi>n<\/mml:mi><mml:msup><mml:mi>t<\/mml:mi><mml:mrow class=\"MJX-TeXAtom-ORD\"><mml:mi>&amp;#x03C9;<\/mml:mi><mml:mo>&amp;#x2212;<\/mml:mo><mml:mn>1<\/mml:mn><\/mml:mrow><\/mml:msup><\/mml:math> where <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\"><mml:mi>t<\/mml:mi><\/mml:math> is the width of the tree decomposition. Our algorithm incorporates two subroutines which may be of independent interest. The first is a matrix-multiplication-time version of the Gottesman-Knill simulation of multi-qubit measurement on stabilizer states. The second is a new classical algorithm for solving symmetric linear systems over <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\"><mml:msub><mml:mrow class=\"MJX-TeXAtom-ORD\"><mml:mi mathvariant=\"double-struck\">F<\/mml:mi><\/mml:mrow><mml:mn>2<\/mml:mn><\/mml:msub><\/mml:math> in a planar geometry, extending previous works which only applied to non-singular linear systems in the analogous setting.<\/jats:p>","DOI":"10.22331\/q-2024-02-12-1251","type":"journal-article","created":{"date-parts":[[2024,2,12]],"date-time":"2024-02-12T15:40:22Z","timestamp":1707752422000},"page":"1251","update-policy":"https:\/\/doi.org\/10.22331\/q-crossmark-policy-page","source":"Crossref","is-referenced-by-count":2,"title":["Fast simulation of planar Clifford circuits"],"prefix":"10.22331","volume":"8","author":[{"given":"David","family":"Gosset","sequence":"first","affiliation":[{"name":"Institute for Quantum Computing, University of Waterloo, Canada"},{"name":"Department of Combinatorics and Optimization, University of Waterloo, Canada"},{"name":"Perimeter Institute for Theoretical Physics, Waterloo, Canada"}]},{"given":"Daniel","family":"Grier","sequence":"additional","affiliation":[{"name":"Institute for Quantum Computing, University of Waterloo, Canada"},{"name":"Cheriton School of Computer Science, University of Waterloo, Canada"},{"name":"Department of Computer Science and Engineering and Department of Mathematics, University of California, San Diego, US"}]},{"given":"Alex","family":"Kerzner","sequence":"additional","affiliation":[{"name":"Institute for Quantum Computing, University of Waterloo, Canada"},{"name":"Department of Combinatorics and Optimization, University of Waterloo, Canada"}]},{"given":"Luke","family":"Schaeffer","sequence":"additional","affiliation":[{"name":"Institute for Quantum Computing, University of Waterloo, Canada"},{"name":"Department of Combinatorics and Optimization, University of Waterloo, Canada"},{"name":"Joint Center for Quantum Information and Computer Science, College Park, Maryland, US"}]}],"member":"9598","published-online":{"date-parts":[[2024,2,12]]},"reference":[{"key":"0","doi-asserted-by":"publisher","unstructured":"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. ``Quantum supremacy using a programmable superconducting processor&apos;&apos;. Nature 574, 505\u2013510 (2019).","DOI":"10.1038\/s41586-019-1666-5"},{"key":"1","unstructured":"``Ibm quantum documentation&apos;&apos;. https:\/\/docs.quantum.ibm.com\/run."},{"key":"2","doi-asserted-by":"publisher","unstructured":"Matthew D Reed, Leonardo DiCarlo, Simon E Nigg, Luyan Sun, Luigi Frunzio, Steven M Girvin, and Robert J Schoelkopf. ``Realization of three-qubit quantum error correction with superconducting circuits&apos;&apos;. Nature 482, 382\u2013385 (2012).","DOI":"10.1038\/nature10786"},{"key":"3","doi-asserted-by":"publisher","unstructured":"Antonio D C\u00f3rcoles, Easwar Magesan, Srikanth J Srinivasan, Andrew W Cross, Matthias Steffen, Jay M Gambetta, and Jerry M Chow. ``Demonstration of a quantum error detection code using a square lattice of four superconducting qubits&apos;&apos;. Nature communications 6, 1\u201310 (2015).","DOI":"10.1038\/ncomms7979"},{"key":"4","doi-asserted-by":"publisher","unstructured":"Nissim Ofek, Andrei Petrenko, Reinier Heeres, Philip Reinhold, Zaki Leghtas, Brian Vlastakis, Yehan Liu, Luigi Frunzio, SM Girvin, Liang Jiang, et al. ``Extending the lifetime of a quantum bit with error correction in superconducting circuits&apos;&apos;. Nature 536, 441\u2013445 (2016).","DOI":"10.1038\/nature18949"},{"key":"5","doi-asserted-by":"publisher","unstructured":"Igor L Markov and Yaoyun Shi. ``Simulating quantum computation by contracting tensor networks&apos;&apos;. SIAM Journal on Computing 38, 963\u2013981 (2008).","DOI":"10.1137\/050644756"},{"key":"6","unstructured":"Sergio Boixo, Sergei V Isakov, Vadim N Smelyanskiy, and Hartmut Neven. ``Simulation of low-depth quantum circuits as complex undirected graphical models&apos;&apos; (2017)."},{"key":"7","doi-asserted-by":"publisher","unstructured":"Sergey Bravyi, Dan Browne, Padraic Calpin, Earl Campbell, David Gosset, and Mark Howard. ``Simulation of quantum circuits by low-rank stabilizer decompositions&apos;&apos;. Quantum 3, 181 (2019).","DOI":"10.22331\/q-2019-09-02-181"},{"key":"8","unstructured":"Edwin Pednault, John A Gunnels, Giacomo Nannicini, Lior Horesh, Thomas Magerlein, Edgar Solomonik, Erik W Draeger, Eric T Holland, and Robert Wisnieff. ``Breaking the 49-qubit barrier in the simulation of quantum circuits&apos;&apos; (2017)."},{"key":"9","unstructured":"Edwin Pednault, John A Gunnels, Giacomo Nannicini, Lior Horesh, and Robert Wisnieff. ``Leveraging secondary storage to simulate deep 54-qubit Sycamore circuits&apos;&apos; (2019)."},{"key":"10","unstructured":"Boaz Barak, Chi-Ning Chou, and Xun Gao. ``Spoofing linear cross-entropy benchmarking in shallow quantum circuits&apos;&apos; (2020)."},{"key":"11","unstructured":"Barbara M Terhal and David P DiVincenzo. ``Adaptive quantum computation, constant depth quantum circuits and Arthur-Merlin games&apos;&apos; (2002)."},{"key":"12","doi-asserted-by":"publisher","unstructured":"Michael J Bremner, Richard Jozsa, and Dan J Shepherd. ``Classical simulation of commuting quantum computations implies collapse of the polynomial hierarchy&apos;&apos;. Proceedings of the Royal Society A: Mathematical, Physical and Engineering Sciences 467, 459\u2013472 (2011).","DOI":"10.1098\/rspa.2010.0301"},{"key":"13","doi-asserted-by":"publisher","unstructured":"Scott Aaronson and Alex Arkhipov. ``The computational complexity of linear optics&apos;&apos;. In Proceedings of the forty-third annual ACM symposium on Theory of computing. Pages 333\u2013342. (2011).","DOI":"10.1145\/1993636.1993682"},{"key":"14","unstructured":"Daniel Gottesman. ``The Heisenberg representation of quantum computers&apos;&apos; (1998)."},{"key":"15","doi-asserted-by":"publisher","unstructured":"Sergey Bravyi and David Gosset. ``Improved classical simulation of quantum circuits dominated by Clifford gates&apos;&apos;. Physical review letters 116, 250501 (2016).","DOI":"10.1103\/physrevlett.116.250501"},{"key":"16","doi-asserted-by":"publisher","unstructured":"Scott Aaronson and Daniel Gottesman. ``Improved simulation of stabilizer circuits&apos;&apos;. Physical Review A 70, 052328 (2004).","DOI":"10.1103\/PhysRevA.70.052328"},{"key":"17","doi-asserted-by":"publisher","unstructured":"Sergey Bravyi, David Gosset, and Robert K\u00f6nig. ``Quantum advantage with shallow circuits&apos;&apos;. Science 362, 308\u2013311 (2018).","DOI":"10.1126\/science.aar3106"},{"key":"18","doi-asserted-by":"publisher","unstructured":"Adam Bene Watts, Robin Kothari, Luke Schaeffer, and Avishay Tal. ``Exponential separation between shallow quantum circuits and unbounded fan-in shallow classical circuits&apos;&apos;. In Proceedings of the 51st Annual ACM SIGACT Symposium on Theory of Computing. Pages 515\u2013526. (2019).","DOI":"10.1145\/3313276.3316404"},{"key":"19","doi-asserted-by":"publisher","unstructured":"Daniel Grier and Luke Schaeffer. ``Interactive shallow Clifford circuits: quantum advantage against $\\mathsf{NC}^1$ and beyond&apos;&apos;. In Proceedings of the 52nd Annual ACM SIGACT Symposium on Theory of Computing. Pages 875\u2013888. (2020).","DOI":"10.1145\/3357713.3384332"},{"key":"20","doi-asserted-by":"publisher","unstructured":"Sergey Bravyi, David Gosset, Robert Koenig, and Marco Tomamichel. ``Quantum advantage with noisy shallow circuits&apos;&apos;. Nature PhysicsPages 1\u20136 (2020).","DOI":"10.1038\/s41567-020-0948-z"},{"key":"21","doi-asserted-by":"publisher","unstructured":"Robert Raussendorf and Hans J Briegel. ``A one-way quantum computer&apos;&apos;. Physical Review Letters 86, 5188 (2001).","DOI":"10.1103\/PhysRevLett.86.5188"},{"key":"22","doi-asserted-by":"crossref","unstructured":"Josh Alman and Virginia Vassilevska Williams. ``A refined laser method and faster matrix multiplication&apos;&apos; (2020).","DOI":"10.1137\/1.9781611976465.32"},{"key":"23","unstructured":"Chaowen Guan and Kenneth W Regan. ``Stabilizer circuits, quadratic forms, and computing matrix rank&apos;&apos; (2019)."},{"key":"24","unstructured":"Daniel Grier and Luke Schaeffer. ``gridCHP++, Apache license version 2.0&apos;&apos;. https:\/\/github.com\/danielgrier\/gridCHPpp\/tree\/v1.0.0."},{"key":"25","doi-asserted-by":"publisher","unstructured":"Alan George. ``Nested dissection of a regular finite element mesh&apos;&apos;. SIAM Journal on Numerical Analysis 10, 345\u2013363 (1973).","DOI":"10.1137\/0710032"},{"key":"26","doi-asserted-by":"publisher","unstructured":"Richard J Lipton, Donald J Rose, and Robert Endre Tarjan. ``Generalized nested dissection&apos;&apos;. SIAM journal on numerical analysis 16, 346\u2013358 (1979).","DOI":"10.1137\/0716027"},{"key":"27","doi-asserted-by":"publisher","unstructured":"Noga Alon and Raphael Yuster. ``Solving linear systems through nested dissection&apos;&apos;. In 2010 IEEE 51st Annual Symposium on Foundations of Computer Science. Pages 225\u2013234. IEEE (2010).","DOI":"10.1109\/FOCS.2010.28"},{"key":"28","doi-asserted-by":"publisher","unstructured":"Richard J. Lipton and Robert Endre Tarjan. ``A separator theorem for planar graphs&apos;&apos;. SIAM Journal on Applied Mathematics 36, 177\u2013189 (1979).","DOI":"10.1137\/0136016"},{"key":"29","unstructured":"Scott Aaronson and Lijie Chen. ``Complexity-theoretic foundations of quantum supremacy experiments&apos;&apos;. In 32nd Computational Complexity Conference (CCC 2017). Schloss Dagstuhl-Leibniz-Zentrum f\u00fcr Informatik (2017)."},{"key":"30","unstructured":"Jianxin Chen, Fang Zhang, Cupjin Huang, Michael Newman, and Yaoyun Shi. ``Classical simulation of intermediate-size quantum circuits&apos;&apos; (2018)."},{"key":"31","doi-asserted-by":"publisher","unstructured":"Benjamin Villalonga, Dmitry Lyakh, Sergio Boixo, Hartmut Neven, Travis S Humble, Rupak Biswas, Eleanor G Rieffel, Alan Ho, and Salvatore Mandr\u00e0. ``Establishing the quantum supremacy frontier with a 281 pflop\/s simulation&apos;&apos;. Quantum Science and Technology 5, 034003 (2020).","DOI":"10.1088\/2058-9565\/ab7eeb"},{"key":"32","doi-asserted-by":"publisher","unstructured":"Stefan Arnborg, Derek G Corneil, and Andrzej Proskurowski. ``Complexity of finding embeddings in a $k$-tree&apos;&apos;. SIAM Journal on Algebraic Discrete Methods 8, 277\u2013284 (1987).","DOI":"10.1137\/0608024"},{"key":"33","unstructured":"HL Bodlaender. ``A tourist guide through treewidth&apos;&apos;. Acta Cybernetica 11, 1\u201321 (1993)."},{"key":"34","doi-asserted-by":"publisher","unstructured":"Hans L. Bodlaender, P\u00e5l Gr\u00f8on\u00e5s Drange, Markus S. Dregi, Fedor V. Fomin, Daniel Lokshtanov, and Micha\u0142 Pilipczuk. ``A $c^k n$ 5-approximation algorithm for treewidth&apos;&apos;. SIAM Journal on Computing 45, 317\u2013378 (2016).","DOI":"10.1137\/130947374"},{"key":"35","doi-asserted-by":"publisher","unstructured":"Sergey Bravyi, Graeme Smith, and John A Smolin. ``Trading classical and quantum computational resources&apos;&apos;. Physical Review X 6, 021043 (2016).","DOI":"10.1103\/PhysRevX.6.021043"},{"key":"36","unstructured":"M Van den Nest. ``Classical simulation of quantum computation, the Gottesman-Knill theorem, and slightly beyond&apos;&apos; (2008)."},{"key":"37","unstructured":"Alex Kerzner. ``Clifford simulation: Techniques and applications&apos;&apos;. Master&apos;s thesis. University of Waterloo. (2021)."},{"key":"38","doi-asserted-by":"publisher","unstructured":"Carsten Damm. ``Problems complete for $\\oplus{L}$&apos;&apos;. In J\u00fcrgen Dassow and Jozef Kelemen, editors, Aspects and Prospects of Theoretical Computer Science. Pages 130\u2013137. Berlin, Heidelberg (1990). Springer Berlin Heidelberg.","DOI":"10.1016\/0020-0190(90)90150-V"},{"key":"39","unstructured":"David Eppstein (2007). commons.wikimedia.org\/wiki\/File:Tree_decomposition.svg, accessed 08\/31\/2020."},{"key":"40","doi-asserted-by":"publisher","unstructured":"Hans L Bodlaender and Ton Kloks. ``Better algorithms for the pathwidth and treewidth of graphs&apos;&apos;. In Automata, Languages and Programming: 18th International Colloquium Madrid, Spain, July 8\u201312, 1991 Proceedings 18. Pages 544\u2013555. Springer (1991).","DOI":"10.1007\/3-540-54233-7_162"},{"key":"41","doi-asserted-by":"publisher","unstructured":"Oscar H Ibarra, Shlomo Moran, and Roger Hui. ``A generalization of the fast LUP matrix decomposition algorithm and applications&apos;&apos;. Journal of Algorithms 3, 45\u201356 (1982).","DOI":"10.1016\/0196-6774(82)90007-4"},{"key":"42","doi-asserted-by":"publisher","unstructured":"Adi Ben-Israel and Thomas NE Greville. ``Generalized inverses: theory and applications&apos;&apos;. Volume 15. Springer Science & Business Media. (2003).","DOI":"10.1007\/b97366"},{"key":"43","doi-asserted-by":"publisher","unstructured":"Michael T Goodrich. ``Planar separators and parallel polygon triangulation&apos;&apos;. Journal of Computer and System Sciences 51, 374\u2013389 (1995).","DOI":"10.1006\/jcss.1995.1076"},{"key":"44","doi-asserted-by":"publisher","unstructured":"Jeroen Dehaene and Bart De Moor. ``Clifford group, stabilizer states, and linear and quadratic operations over $\\mathrm{GF}$(2)&apos;&apos;. Physical Review A 68, 042318 (2003).","DOI":"10.1103\/PhysRevA.68.042318"},{"key":"45","doi-asserted-by":"publisher","unstructured":"Simon Anders and Hans J Briegel. ``Fast simulation of stabilizer circuits using a graph-state representation&apos;&apos;. Physical Review A 73, 022334 (2006).","DOI":"10.1103\/PhysRevA.73.022334"},{"key":"46","doi-asserted-by":"crossref","unstructured":"Sergey Bravyi. Personal communication, 2017 (2017).","DOI":"10.1186\/s13662-017-1149-7"},{"key":"47","doi-asserted-by":"publisher","unstructured":"Maarten Van den Nest, Jeroen Dehaene, and Bart De Moor. ``Graphical description of the action of local Clifford transformations on graph states&apos;&apos;. Physical Review A 69, 022316 (2004).","DOI":"10.1103\/PhysRevA.69.022316"}],"container-title":["Quantum"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/quantum-journal.org\/papers\/q-2024-02-12-1251\/pdf\/","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"}],"deposited":{"date-parts":[[2024,2,12]],"date-time":"2024-02-12T15:40:39Z","timestamp":1707752439000},"score":1,"resource":{"primary":{"URL":"https:\/\/quantum-journal.org\/papers\/q-2024-02-12-1251\/"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2024,2,12]]},"references-count":48,"URL":"https:\/\/doi.org\/10.22331\/q-2024-02-12-1251","archive":["CLOCKSS"],"relation":{},"ISSN":["2521-327X"],"issn-type":[{"value":"2521-327X","type":"electronic"}],"subject":[],"published":{"date-parts":[[2024,2,12]]},"article-number":"1251"}}