{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,12,2]],"date-time":"2026-12-02T17:55:08Z","timestamp":1796234108972,"version":"4.11.3"},"reference-count":55,"publisher":"Verein zur Forderung des Open Access Publizierens in den Quantenwissenschaften","license":[{"start":{"date-parts":[[2025,1,20]],"date-time":"2025-01-20T00:00:00Z","timestamp":1737331200000},"content-version":"unspecified","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":["quantum-journal.org"],"crossmark-restriction":false},"short-container-title":["Quantum"],"abstract":"<jats:p>In this work, we introduce a fast implementation of the minimum-weight perfect matching (MWPM) decoder, the most widely used decoder for several important families of quantum error correcting codes, including surface codes. Our algorithm, which we call sparse blossom, is a variant of the blossom algorithm which directly solves the decoding problem relevant to quantum error correction. Sparse blossom avoids the need for all-to-all Dijkstra searches, common amongst MWPM decoder implementations. For 0.1% circuit-level depolarising noise, sparse blossom processes syndrome data in both <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\"><mml:mi>X<\/mml:mi><\/mml:math> and <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\"><mml:mi>Z<\/mml:mi><\/mml:math> bases of distance-17 surface code circuits in less than one microsecond per round of syndrome extraction on a single core, which matches the rate at which syndrome data is generated by superconducting quantum computers. Our implementation is open-source, and has been released in version 2 of the PyMatching library.<\/jats:p>","DOI":"10.22331\/q-2025-01-20-1600","type":"journal-article","created":{"date-parts":[[2025,1,20]],"date-time":"2025-01-20T14:58:27Z","timestamp":1737385107000},"page":"1600","update-policy":"https:\/\/doi.org\/10.22331\/q-crossmark-policy-page","source":"Crossref","is-referenced-by-count":156,"title":["Sparse Blossom: correcting a million errors per core second with minimum-weight matching"],"prefix":"10.22331","volume":"9","author":[{"given":"Oscar","family":"Higgott","sequence":"first","affiliation":[{"name":"Google Quantum AI, Santa Barbara, California 93117, USA"},{"name":"Department of Physics & Astronomy, University College London, WC1E 6BT London, United Kingdom"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Craig","family":"Gidney","sequence":"additional","affiliation":[{"name":"Google Quantum AI, Santa Barbara, California 93117, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"9598","published-online":{"date-parts":[[2025,1,20]]},"reference":[{"key":"0","doi-asserted-by":"publisher","unstructured":"Ravindra K Ahuja, Kurt Mehlhorn, James Orlin, and Robert E Tarjan, ``Faster algorithms for the shortest path problem&apos;&apos; Journal of the ACM (JACM) 37, 213-223 (1990).","DOI":"10.1145\/77600.77615"},{"key":"1","doi-asserted-by":"publisher","unstructured":"Google Quantum AI ``Suppressing quantum errors by scaling a surface code logical qubit&apos;&apos; Nature 614, 676\u2013681 (2023).","DOI":"10.1038\/s41586-022-05434-1"},{"key":"2","doi-asserted-by":"publisher","unstructured":"Dave Bacon ``Operator quantum error-correcting subsystems for self-correcting quantum memories&apos;&apos; Phys. Rev. A 73, 012340 (2006).","DOI":"10.1103\/PhysRevA.73.012340"},{"key":"3","doi-asserted-by":"publisher","unstructured":"F Barahona ``On the computational complexity of Ising spin glass models&apos;&apos; Journal of Physics A: Mathematical and General 15, 3241 (1982).","DOI":"10.1088\/0305-4470\/15\/10\/028"},{"key":"4","doi-asserted-by":"publisher","unstructured":"Burak Boyac\u0131, Thu Huong Dang, and Adam N. Letchford, ``On matchings, T-joins, and arc routing in road networks&apos;&apos; Networks 79, 20\u201331 (2022).","DOI":"10.1002\/net.22033"},{"key":"5","doi-asserted-by":"publisher","unstructured":"Piotr Berman, Andrew B. Kahng, Devendra Vidhani, and Alexander Zelikovsky, ``The T-join Problem in Sparse Graphs: Applications to Phase Assignment Problem in VLSI Mask Layout&apos;&apos; Algorithms and Data Structures 25\u201336 (1999).","DOI":"10.1007\/3-540-48447-7_3"},{"key":"6","doi-asserted-by":"publisher","unstructured":"Claude Berge ``Two theorems in graph theory&apos;&apos; Proceedings of the National Academy of Sciences 43, 842\u2013844 (1957).","DOI":"10.1073\/pnas.43.9.842"},{"key":"7","doi-asserted-by":"publisher","unstructured":"H. Bombinand M. A. Martin-Delgado ``Topological Quantum Distillation&apos;&apos; Phys. Rev. Lett. 97, 180501 (2006).","DOI":"10.1103\/PhysRevLett.97.180501"},{"key":"8","doi-asserted-by":"publisher","unstructured":"Sergey Bravyi, Guillaume Duclos-Cianci, David Poulin, and Martin Suchara, ``Subsystem surface codes with three-qubit check operators&apos;&apos; Quantum Info. Comput. 13, 963\u2013985 (2013).","DOI":"10.26421\/QIC13.11-12-4"},{"key":"9","doi-asserted-by":"publisher","unstructured":"Benjamin J. Brown ``Conservation Laws and Quantum Error Correction: Toward a Generalized Matching Decoder&apos;&apos; IEEE BITS the Information Theory Magazine 2, 5\u201319 (2022).","DOI":"10.1109\/MBITS.2023.3246025"},{"key":"10","doi-asserted-by":"publisher","unstructured":"Sergey Bravyi, Martin Suchara, and Alexander Vargo, ``Efficient algorithms for maximum likelihood decoding in the surface code&apos;&apos; Phys. Rev. A 90, 032326 (2014).","DOI":"10.1103\/PhysRevA.90.032326"},{"key":"11","doi-asserted-by":"publisher","unstructured":"Nikolas P. Breuckmannand Barbara M. Terhal ``Constructions and Noise Threshold of Hyperbolic Surface Codes&apos;&apos; IEEE Transactions on Information Theory 62, 3731\u20133744 (2016).","DOI":"10.1109\/TIT.2016.2555700"},{"key":"12","doi-asserted-by":"publisher","unstructured":"Rui Chao, Michael E. Beverland, Nicolas Delfosse, and Jeongwan Haah, ``Optimization of the surface code design for Majorana-based qubits&apos;&apos; Quantum 4, 352 (2020).","DOI":"10.22331\/q-2020-10-28-352"},{"key":"13","doi-asserted-by":"publisher","unstructured":"Poulami Das, Christopher A. Pattison, Srilatha Manne, Douglas M. Carmean, Krysta M. Svore, Moinuddin Qureshi, and Nicolas Delfosse, ``AFS: Accurate, Fast, and Scalable Error-Decoding for Fault-Tolerant Quantum Computers&apos;&apos; 2022 IEEE International Symposium on High-Performance Computer Architecture (HPCA) 259\u2013273 (2022).","DOI":"10.1109\/HPCA53966.2022.00027"},{"key":"14","doi-asserted-by":"publisher","unstructured":"Eric Dennis, Alexei Kitaev, Andrew Landahl, and John Preskill, ``Topological quantum memory&apos;&apos; Journal of Mathematical Physics 43, 4452\u20134505 (2002).","DOI":"10.1063\/1.1499754"},{"key":"15","unstructured":"Peter-Jan H. S. Derks, Alex Townsend-Teague, Ansgar G. Burchards, and Jens Eisert, ``Designing fault-tolerant circuits using detector error models&apos;&apos; (2024)."},{"key":"16","doi-asserted-by":"publisher","unstructured":"Nicolas Delfosseand Naomi H. Nickerson ``Almost-linear time decoding algorithm for topological codes&apos;&apos; Quantum 5, 595 (2021).","DOI":"10.22331\/q-2021-12-02-595"},{"key":"17","doi-asserted-by":"publisher","unstructured":"Nicolas Delfosseand Gilles Z\u00e9mor ``Linear-time maximum likelihood decoding of surface codes over the quantum erasure channel&apos;&apos; Phys. Rev. Res. 2, 033042 (2020).","DOI":"10.1103\/PhysRevResearch.2.033042"},{"key":"18","doi-asserted-by":"publisher","unstructured":"Jack Edmonds ``Maximum matching and a polyhedron with 0,1-vertices&apos;&apos; Journal of Research of the National Bureau of Standards Section B Mathematics and Mathematical Physics 125 (1965).","DOI":"10.6028\/jres.069b.013"},{"key":"19","doi-asserted-by":"publisher","unstructured":"Jack Edmonds ``Paths, Trees, and Flowers&apos;&apos; Canadian Journal of Mathematics 17, 449\u2013467 (1965).","DOI":"10.4153\/CJM-1965-045-4"},{"key":"20","doi-asserted-by":"publisher","unstructured":"Jack Edmondsand Ellis L. Johnson ``Matching, Euler tours and the Chinese postman&apos;&apos; Mathematical Programming 5, 88\u2013124 (1973).","DOI":"10.1007\/BF01580113"},{"key":"21","unstructured":"Austin G Fowler ``Optimal complexity correction of correlated errors in the surface code&apos;&apos; arXiv preprint arXiv:1310.0863 (2013)."},{"key":"22","doi-asserted-by":"publisher","unstructured":"Austin G. Fowler ``Minimum weight perfect matching of fault-tolerant topological quantum error correction in average O(1) parallel time&apos;&apos; Quantum Info. Comput. 15, 145\u2013158 (2015).","DOI":"10.26421\/QIC15.1-2-9"},{"key":"23","doi-asserted-by":"publisher","unstructured":"Austin G. Fowler, Adam C. Whiteside, and Lloyd C. L. Hollenberg, ``Towards Practical Classical Processing for the Surface Code&apos;&apos; Phys. Rev. Lett. 108, 180501 (2012).","DOI":"10.1103\/PhysRevLett.108.180501"},{"key":"24","doi-asserted-by":"publisher","unstructured":"Austin G. Fowler, Adam C. Whiteside, and Lloyd C. L. Hollenberg, ``Towards practical classical processing for the surface code: Timing analysis&apos;&apos; Phys. Rev. A 86, 042313 (2012).","DOI":"10.1103\/PhysRevA.86.042313"},{"key":"25","doi-asserted-by":"publisher","unstructured":"Zvi Galil ``Efficient algorithms for finding maximal matching in graphs&apos;&apos; CAAP&apos;83 90\u2013113 (1983).","DOI":"10.1007\/3-540-12727-5_4"},{"key":"26","doi-asserted-by":"publisher","unstructured":"Craig Gidney, Michael Newman, Austin Fowler, and Michael Broughton, ``A Fault-Tolerant Honeycomb Memory&apos;&apos; Quantum 5, 605 (2021).","DOI":"10.22331\/q-2021-12-20-605"},{"key":"27","unstructured":"Craig Gidney ``Decorrelated Depolarization&apos;&apos; https:\/\/algassert.com\/post\/2001 (2020) Accessed: 2021-10-04."},{"key":"28","doi-asserted-by":"publisher","unstructured":"Craig Gidney ``Stim: a fast stabilizer circuit simulator&apos;&apos; Quantum 5, 497 (2021).","DOI":"10.22331\/q-2021-07-06-497"},{"key":"29","unstructured":"Craig Gidneyand Cody Jones ``New circuits and an open source decoder for the color code&apos;&apos; (2023)."},{"key":"30","doi-asserted-by":"publisher","unstructured":"Oscar Higgottand Nikolas P. Breuckmann ``Subsystem Codes with High Thresholds by Gauge Fixing and Reduced Qubit Overhead&apos;&apos; Phys. Rev. X 11, 031039 (2021).","DOI":"10.1103\/PhysRevX.11.031039"},{"key":"31","doi-asserted-by":"publisher","unstructured":"Matthew B. Hastingsand Jeongwan Haah ``Dynamically Generated Logical Qubits&apos;&apos; Quantum 5, 564 (2021).","DOI":"10.22331\/q-2021-10-19-564"},{"key":"32","doi-asserted-by":"publisher","unstructured":"Oscar Higgott, Thomas C. Bohdanowicz, Aleksander Kubica, Steven T. Flammia, and Earl T. Campbell, ``Improved Decoding of Circuit Noise and Fragile Boundaries of Tailored Surface Codes&apos;&apos; Phys. Rev. X 13, 031007 (2023).","DOI":"10.1103\/PhysRevX.13.031007"},{"key":"33","doi-asserted-by":"publisher","unstructured":"Oscar Higgott ``PyMatching: A Python Package for Decoding Quantum Codes with Minimum-Weight Perfect Matching&apos;&apos; ACM Transactions on Quantum Computing 3 (2022).","DOI":"10.1145\/3505637"},{"key":"34","doi-asserted-by":"publisher","unstructured":"Shilin Huang, Michael Newman, and Kenneth R. Brown, ``Fault-tolerant weighted union-find decoding on the toric code&apos;&apos; Phys. Rev. A 102, 012419 (2020).","DOI":"10.1103\/PhysRevA.102.012419"},{"key":"35","doi-asserted-by":"publisher","unstructured":"Aleksander Kubicaand Nicolas Delfosse ``Efficient color code decoders in $d\\geq 2$ dimensions from toric code decoders&apos;&apos; Quantum 7, 929 (2023).","DOI":"10.22331\/q-2023-02-21-929"},{"key":"36","doi-asserted-by":"publisher","unstructured":"Vladimir Kolmogorov ``Blossom V: a new implementation of a minimum cost perfect matching algorithm&apos;&apos; Mathematical Programming Computation 1, 43\u201367 (2009).","DOI":"10.1007\/s12532-009-0002-8"},{"key":"37","doi-asserted-by":"publisher","unstructured":"Bernhard H Korteand Jens Vygen ``Combinatorial optimization&apos;&apos; Springer (2018).","DOI":"10.1007\/978-3-662-56039-6"},{"key":"38","doi-asserted-by":"publisher","unstructured":"Namitha Liyanage, Yue Wu, Alexander Deters, and Lin Zhong, ``Scalable Quantum Error Correction for Surface Codes using FPGA&apos;&apos; 2023 IEEE 31st Annual International Symposium on Field-Programmable Custom Computing Machines (FCCM) 217\u2013217 (2023).","DOI":"10.1109\/FCCM57271.2023.00045"},{"key":"39","doi-asserted-by":"publisher","unstructured":"Matt McEwen, Dave Bacon, and Craig Gidney, ``Relaxing Hardware Requirements for Surface Code Circuits using Time-dynamics&apos;&apos; Quantum 7, 1172 (2023).","DOI":"10.22331\/q-2023-11-07-1172"},{"key":"40","unstructured":"Mikhail V Menshikov ``Coincidence of critical points in percolation problems&apos;&apos; Soviet Mathematics Doklady 33, 856\u2013859 (1986)."},{"key":"41","doi-asserted-by":"publisher","unstructured":"Jiri Matou\u0161ekand Bernd G\u00e4rtner ``Understanding and using linear programming&apos;&apos; Springer (2007).","DOI":"10.1007\/978-3-540-30717-4"},{"key":"42","doi-asserted-by":"publisher","unstructured":"Kai Meinerz, Chae-Yeun Park, and Simon Trebst, ``Scalable Neural Decoder for Topological Surface Codes&apos;&apos; Phys. Rev. Lett. 128, 080505 (2022).","DOI":"10.1103\/PhysRevLett.128.080505"},{"key":"43","doi-asserted-by":"publisher","unstructured":"Martin Suchara, Sergey Bravyi, and Barbara Terhal, ``Constructions and noise threshold of topological subsystem codes&apos;&apos; Journal of Physics A: Mathematical and Theoretical 44, 155301 (2011).","DOI":"10.1088\/1751-8113\/44\/15\/155301"},{"key":"44","doi-asserted-by":"publisher","unstructured":"Luka Skoric, Dan E. Browne, Kenton M. Barnes, Neil I. Gillespie, and Earl T. Campbell, ``Parallel window decoding enables scalable fault tolerant quantum computation&apos;&apos; Nature Communications 14, 7040 (2023).","DOI":"10.1038\/s41467-023-42482-1"},{"key":"45","doi-asserted-by":"publisher","unstructured":"Neereja Sundaresan, Theodore J. Yoder, Youngseok Kim, Muyuan Li, Edward H. Chen, Grace Harper, Ted Thorbeck, Andrew W. Cross, Antonio D. C\u00f3rcoles, and Maika Takita, ``Demonstrating multi-round subsystem quantum error correction using matching and maximum likelihood decoders&apos;&apos; Nature Communications 14, 2852 (2023).","DOI":"10.1038\/s41467-023-38247-5"},{"key":"46","doi-asserted-by":"publisher","unstructured":"Xinyu Tan, Fang Zhang, Rui Chao, Yaoyun Shi, and Jianxin Chen, ``Scalable Surface-Code Decoders with Parallelization in Time&apos;&apos; PRX Quantum 4, 040344 (2023).","DOI":"10.1103\/PRXQuantum.4.040344"},{"key":"47","doi-asserted-by":"publisher","unstructured":"Google Quantum AI Team ``Data for \"Suppressing quantum errors by scaling a surface code logical qubit\"&apos;&apos; (2022).","DOI":"10.5281\/zenodo.6804040"},{"key":"48","doi-asserted-by":"publisher","unstructured":"Barbara M. Terhal ``Quantum error correction for quantum memories&apos;&apos; Rev. Mod. Phys. 87, 307\u2013346 (2015).","DOI":"10.1103\/RevModPhys.87.307"},{"key":"49","doi-asserted-by":"publisher","unstructured":"Giacomo Torlaiand Roger G. Melko ``Neural Decoder for Topological Codes&apos;&apos; Phys. Rev. Lett. 119, 030501 (2017).","DOI":"10.1103\/PhysRevLett.119.030501"},{"key":"50","doi-asserted-by":"publisher","unstructured":"David Kingsley Tuckett ``Tailoring surface codes: Improvements in quantum error correction with biased noise&apos;&apos; thesis (2020) (qecsim: https:\/\/github.com\/qecsim\/qecsim).","DOI":"10.25910\/x8xw-9077"},{"key":"51","doi-asserted-by":"publisher","unstructured":"W. T. Tutte ``The Factorization of Linear Graphs&apos;&apos; Journal of the London Mathematical Society s1-22, 107\u2013111 (1947).","DOI":"10.1112\/jlms\/s1-22.2.107"},{"key":"52","unstructured":"Yue Wu, Namitha Liyanage, and Lin Zhong, ``An interpretation of Union-Find Decoder on Weighted Graphs&apos;&apos; (2022)."},{"key":"53","unstructured":"Yue Wu ``Fusion Blossom&apos;&apos; https:\/\/github.com\/yuewuo\/fusion-blossom (2022)."},{"key":"54","doi-asserted-by":"publisher","unstructured":"Yue Wuand Lin Zhong ``Fusion Blossom: Fast MWPM Decoders for QEC&apos;&apos; 2023 IEEE International Conference on Quantum Computing and Engineering (QCE) 01, 928\u2013938 (2023).","DOI":"10.1109\/QCE57702.2023.00107"}],"container-title":["Quantum"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/quantum-journal.org\/papers\/q-2025-01-20-1600\/pdf\/","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"}],"deposited":{"date-parts":[[2025,1,20]],"date-time":"2025-01-20T14:58:31Z","timestamp":1737385111000},"score":1,"resource":{"primary":{"URL":"https:\/\/quantum-journal.org\/papers\/q-2025-01-20-1600\/"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,1,20]]},"references-count":55,"URL":"https:\/\/doi.org\/10.22331\/q-2025-01-20-1600","archive":["CLOCKSS"],"relation":{},"ISSN":["2521-327X"],"issn-type":[{"value":"2521-327X","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,1,20]]},"article-number":"1600"}}