[tdb_mobile_menu menu_id="81451" el_class="plato-left-menu" icon_size="eyJhbGwiOjUwLCJwaG9uZSI6IjMwIn0=" icon_padding="eyJhbGwiOjAuNSwicGhvbmUiOiIxLjUifQ==" tdc_css="eyJhbGwiOnsibWFyZ2luLXRvcCI6IjEwIiwibWFyZ2luLWJvdHRvbSI6IjAiLCJtYXJnaW4tbGVmdCI6IjE1IiwiZGlzcGxheSI6IiJ9LCJwaG9uZSI6eyJtYXJnaW4tdG9wIjoiMCIsIm1hcmdpbi1sZWZ0IjoiMCIsImRpc3BsYXkiOiIifSwicGhvbmVfbWF4X3dpZHRoIjo3Njd9" align_horiz="content-horiz-center" inline="yes" icon_color="#ffffff" icon_color_h="#ffffff"][tdb_header_logo align_vert="content-vert-center" url="https://zephyrnet.com" inline="yes" text="Zephyrnet" image_width="eyJwaG9uZSI6IjM1In0=" img_txt_space="eyJwaG9uZSI6IjEwIn0=" f_text_font_size="eyJwaG9uZSI6IjE4In0=" f_text_font_line_height="eyJwaG9uZSI6IjEuNSJ9" f_text_font_weight="eyJwaG9uZSI6IjcwMCJ9" f_text_font_transform="eyJwaG9uZSI6ImNhcGl0YWxpemUifQ==" f_text_font_family="eyJwaG9uZSI6ImZzXzIifQ==" text_color="#ffffff" text_color_h="var(--accent-color)"]
[tdb_mobile_horiz_menu menu_id="1658" single_line="yes" f_elem_font_family="eyJwaG9uZSI6ImZzXzIifQ==" f_elem_font_weight="eyJwaG9uZSI6IjcwMCJ9" text_color="var(--news-hub-white)" text_color_h="var(--news-hub-accent-hover)" f_elem_font_size="eyJwaG9uZSI6IjE0In0=" f_elem_font_line_height="eyJwaG9uZSI6IjQ4cHgifQ==" elem_padd="eyJwaG9uZSI6IjAgMTVweCJ9" tdc_css="eyJwaG9uZSI6eyJwYWRkaW5nLXJpZ2h0IjoiNSIsInBhZGRpbmctbGVmdCI6IjUiLCJkaXNwbGF5Ijoibm9uZSJ9LCJwaG9uZV9tYXhfd2lkdGgiOjc2N30="]
[tdb_mobile_menu inline="yes" menu_id="81451" el_class="plato-left-menu" icon_size="50" icon_padding="0.5" tdc_css="eyJhbGwiOnsibWFyZ2luLXRvcCI6IjEwIiwibWFyZ2luLWJvdHRvbSI6IjAiLCJtYXJnaW4tbGVmdCI6IjE1IiwiZGlzcGxheSI6IiJ9fQ==" icon_color="#ffffff" icon_color_h="#ffffff"]
Zephyrnet Logo
[tdb_header_menu main_sub_tdicon="td-icon-down" sub_tdicon="td-icon-right-arrow" mm_align_horiz="content-horiz-center" modules_on_row_regular="20%" modules_on_row_cats="20%" image_size="td_300x0" modules_category="image" show_excerpt="none" show_com="none" show_date="" show_author="none" mm_sub_align_horiz="content-horiz-right" mm_elem_align_horiz="content-horiz-center" menu_id="81450" show_mega_cats="yes" align_horiz="content-horiz-center" elem_padd="0 30px" main_sub_icon_space="12" mm_width="1192" mm_padd="30px 25px" mm_align_screen="yes" mm_sub_padd="20px 25px 0" mm_sub_border="1px 0 0" mm_elem_space="25" mm_elem_padd="0" mm_elem_border="0" mm_elem_border_a="0" mm_elem_border_rad="0" mc1_title_tag="h2" modules_gap="25" excl_txt="Premium" excl_margin="0 6px 0 0" excl_padd="2px 5px 2px 4px" excl_bg="var(--news-hub-accent)" f_excl_font_size="12" f_excl_font_weight="700" f_excl_font_transform="uppercase" meta_padding="20px 0 0" art_title="0 0 10px" show_cat="none" show_pagination="disabled" text_color="var(--news-hub-white)" tds_menu_active1-line_color="var(--news-hub-accent)" f_elem_font_size="18" f_elem_font_line_height="64px" f_elem_font_weight="400" f_elem_font_transform="none" mm_bg="var(--news-hub-dark-grey)" mm_border_color="var(--news-hub-accent)" mm_subcats_border_color="#444444" mm_elem_color="var(--news-hub-white)" mm_elem_color_a="var(--news-hub-accent-hover)" f_mm_sub_font_size="14" title_txt="var(--news-hub-white)" title_txt_hover="var(--news-hub-accent-hover)" date_txt="var(--news-hub-light-grey)" f_title_font_line_height="1.25" f_title_font_weight="700" f_meta_font_line_height="1.3" f_meta_font_family="fs_2" tdc_css="eyJhbGwiOnsiYm9yZGVyLXRvcC13aWR0aCI6IjEiLCJib3JkZXItcmlnaHQtd2lkdGgiOiIxIiwiYm9yZGVyLWJvdHRvbS13aWR0aCI6IjEiLCJib3JkZXItbGVmdC13aWR0aCI6IjEiLCJib3JkZXItY29sb3IiOiJ2YXIoLS1uZXdzLWh1Yi1kYXJrLWdyZXkpIiwiZGlzcGxheSI6IiJ9fQ==" mm_border_size="4px 0 0" f_elem_font_family="fs_2" mm_subcats_bg="var(--news-hub-dark-grey)" mm_elem_bg="rgba(0,0,0,0)" mm_elem_bg_a="rgba(0,0,0,0)" f_mm_sub_font_family="fs_2" mm_child_cats="10" mm_sub_inline="yes" mm_subcats_posts_limit="5"]
Home Quantum Stim: a fast stabilizer circuit simulator

Stim: a fast stabilizer circuit simulator

0

Craig Gidney

Google Inc., Santa Barbara, California 93117, USA

Find this paper interesting or want to discuss? Scite or leave a comment on SciRate.

Abstract

This paper presents “Stim”, a fast simulator for quantum stabilizer circuits. The paper explains how Stim works and compares it to existing tools. With no foreknowledge, Stim can analyze a distance 100 surface code circuit (20 thousand qubits, 8 million gates, 1 million measurements) in 15 seconds and then begin sampling full circuit shots at a rate of 1 kHz. Stim uses a stabilizer tableau representation, similar to Aaronson and Gottesman’s CHP simulator, but with three main improvements. First, Stim improves the asymptotic complexity of deterministic measurement from quadratic to linear by tracking the $inverse$ of the circuit’s stabilizer tableau. Second, Stim improves the constant factors of the algorithm by using a cache-friendly data layout and 256 bit wide SIMD instructions. Third, Stim only uses expensive stabilizer tableau simulation to create an initial reference sample. Further samples are collected in bulk by using that sample as a reference for batches of Pauli frames propagating through the circuit.

Quantum stabilizer circuits are simple enough to be efficiently simulated, but rich enough to represent important quantum effects like teleportation and error correction. Stim can analyze many stabilizer circuits tens of times faster than previous tools, and then collect samples tens of thousands of times faster than previous tools. This is useful because analyzing and simulating stabilizer circuits is a foundational part of quantum error correction research.

► BibTeX data

► References

[1] Scott Aaronson and Daniel Gottesman. Improved simulation of stabilizer circuits. Physical Review A, 70 (5): 052328, 2004. 10.1103/​PhysRevA.70.052328.
https:/​/​doi.org/​10.1103/​PhysRevA.70.052328

[2] Thomas Alexander, Lev Bishop, Andrew Cross, Jay Gambetta, Ali Javadi-Abhari, Blake Johnson, and John Smolin. “a new openqasm for a new era of dynamic circuits”. https:/​/​medium.com/​qiskit/​a-new-openqasm-for-a-new-era-of-dynamic-circuits-87f031cac49, 2020. Accessed: 2021-01-26.
https:/​/​medium.com/​qiskit/​a-new-openqasm-for-a-new-era-of-dynamic-circuits-87f031cac49

[3] Simon Anders and Hans J Briegel. Fast simulation of stabilizer circuits using a graph-state representation. Physical Review A, 73 (2): 022334, 2006. 10.1103/​PhysRevA.73.022334.
https:/​/​doi.org/​10.1103/​PhysRevA.73.022334

[4] Dave Bacon. Operator quantum error-correcting subsystems for self-correcting quantum memories. Physical Review A, 73 (1): 012340, 2006. 10.1103/​PhysRevA.73.012340.
https:/​/​doi.org/​10.1103/​PhysRevA.73.012340

[5] Sergey Bravyi and Dmitri Maslov. Hadamard-free circuits expose the structure of the clifford group. arXiv preprint arXiv:2003.09412, 2020. URL https:/​/​arxiv.org/​abs/​2003.09412.
arXiv:2003.09412

[6] Sergey Bravyi, Dan Browne, Padraic Calpin, Earl Campbell, David Gosset, and Mark Howard. Simulation of quantum circuits by low-rank stabilizer decompositions. Quantum, 3: 181, 2019. 10.22331/​q-2019-09-02-181.
https:/​/​doi.org/​10.22331/​q-2019-09-02-181

[7] Kaifeng Bu and Dax Enshan Koh. Efficient classical simulation of clifford circuits with nonstabilizer input states. Physical review letters, 123 (17): 170502, 2019. 10.1103/​PhysRevLett.123.170502.
https:/​/​doi.org/​10.1103/​PhysRevLett.123.170502

[8] Rui Chao, Michael E Beverland, Nicolas Delfosse, and Jeongwan Haah. Optimization of the surface code design for majorana-based qubits. Quantum, 4: 352, 2020. 10.22331/​q-2020-10-28-352.
https:/​/​doi.org/​10.22331/​q-2020-10-28-352

[9] Qiskit Contributors. Qiskit: An open-source framework for quantum computing. 2019. 10.5281/​zenodo.2562110.
https:/​/​doi.org/​10.5281/​zenodo.2562110

[10] A. G. Fowler, M. Mariantoni, J. M. Martinis, and A. N. Cleland. Surface codes: Towards practical large-scale quantum computation. Phys. Rev. A, 86: 032324, 2012. URL https:/​/​doi.org/​10.1103/​PhysRevA.86.032324. arXiv:1208.0928.
https:/​/​doi.org/​10.1103/​PhysRevA.86.032324
arXiv:1208.0928

[11] Craig Gidney and Austin G Fowler. Efficient magic state factories with a catalyzed $|cczrangle$ to $2|trangle $ transformation. Quantum, 3: 135, 2019. 10.22331/​q-2019-04-30-135.
https:/​/​doi.org/​10.22331/​q-2019-04-30-135

[12] Craig Gidney, Austin Fowler, and Michael Newman. Informal private conversations about simulation bottlenecks, 2021.

[13] Daniel Gottesman. Stabilizer codes and quantum error correction. arXiv preprint quant-ph/​9705052, 1997. URL https:/​/​arxiv.org/​abs/​quant-ph/​9705052.
arXiv:quant-ph/9705052

[14] David Gross. Hudson’s theorem for finite-dimensional quantum systems. Journal of mathematical physics, 47 (12): 122107, 2006. 10.1063/​1.2393152.
https:/​/​doi.org/​10.1063/​1.2393152

[15] Clare Horsman, Austin G Fowler, Simon Devitt, and Rodney Van Meter. Surface code quantum computing by lattice surgery. New Journal of Physics, 14 (12): 123011, 2012. 10.1088/​1367-2630/​14/​12/​123011.
https:/​/​doi.org/​10.1088/​1367-2630/​14/​12/​123011

[16] Jakob Nielsen Hořeňovský. “response times: The 3 important limits”. https:/​/​www.nngroup.com/​articles/​response-times-3-important-limits/​, 1993. Accessed: 2021-01-26.
https:/​/​www.nngroup.com/​articles/​response-times-3-important-limits/​

[17] Martin Hořeňovský. “generating random numbers using c++ standard library: the problems”. https:/​/​codingnest.com/​generating-random-numbers-using-c-standard-library-the-problems/​, 2020. Accessed: 2021-01-26.
https:/​/​codingnest.com/​generating-random-numbers-using-c-standard-library-the-problems/​

[18] “Yack” (https:/​/​quantumcomputing.stackexchange.com/​users/​11887/​yack). Answer to “how many n-qubit stabilizer states are there?”. Quantum Stack Exchange, 2020. URL https:/​/​quantumcomputing.stackexchange.com/​a/​11781/​119. URL:https:/​/​quantumcomputing.stackexchange.com/​a/​11781/​119 (version: 2021-01-27).
https:/​/​quantumcomputing.stackexchange.com/​a/​11781/​119

[19] Yifei Huang and Peter Love. Approximate stabilizer rank and improved weak simulation of clifford-dominated circuits for qudits. Physical Review A, 99 (5): 052307, 2019. 10.1103/​PhysRevA.99.052307.
https:/​/​doi.org/​10.1103/​PhysRevA.99.052307

[20] Yifei Huang and Peter Love. Feynman-path-type simulation using stabilizer projector decomposition of unitaries. Physical Review A, 103 (2), February 2021. 10.1103/​physreva.103.022428. URL https:/​/​doi.org/​10.1103/​physreva.103.022428.
https:/​/​doi.org/​10.1103/​physreva.103.022428

[21] Intel. Intel intrinsics guide (_mm256_and_si256). https:/​/​software.intel.com/​sites/​landingpage/​IntrinsicsGuide/​#text=_mm256_and_si256&expand=301, 2021. Accessed: 2021-01-26.
https:/​/​software.intel.com/​sites/​landingpage/​IntrinsicsGuide/​#text=_mm256_and_si256&expand=301

[22] Angela Karanjai, Joel J Wallman, and Stephen D Bartlett. Contextuality bounds the efficiency of classical simulation of quantum processes. arXiv preprint arXiv:1802.07744, 2018. URL https:/​/​arxiv.org/​abs/​1802.07744.
arXiv:1802.07744

[23] Emanuel Knill. Quantum computing with realistically noisy devices. Nature, 434 (7029): 39–44, 2005. 10.1038/​nature03350.
https:/​/​doi.org/​10.1038/​nature03350

[24] Shota Nagayama, Austin G Fowler, Dominic Horsman, Simon J Devitt, and Rodney Van Meter. Surface code error correction on a defective lattice. New Journal of Physics, 19 (2): 023050, 2017. 10.1088/​1367-2630/​aa5918.
https:/​/​doi.org/​10.1088/​1367-2630/​aa5918

[25] Jakob Nielsen. Usability engineering. Morgan Kaufmann, 1994.

[26] Peter Norvig. “approximate timing for various operations on a typical pc”. http:/​/​norvig.com/​21-days.html#answers, 2014. Accessed: 2021-01-26.
http:/​/​norvig.com/​21-days.html#answers

[27] Patrick Rall, Daniel Liang, Jeremy Cook, and William Kretschmer. Simulation of qubit quantum circuits via pauli propagation. Physical Review A, 99 (6): 062337, 2019. 10.1103/​PhysRevA.99.062337.
https:/​/​doi.org/​10.1103/​PhysRevA.99.062337

[28] Quantum AI team and collaborators. Cirq, October 2020. URL https:/​/​doi.org/​10.5281/​zenodo.4062499.
https:/​/​doi.org/​10.5281/​zenodo.4062499

[29] Matthew Ware, Guilhem Ribeill, Diego Riste, Colm Ryan, Blake Johnson, and Marcus P da Silva. Experimental pauli-frame randomization on a superconducting qubit. In APS March Meeting Abstracts, volume 2017, pages L46–004, 2017. 10.1103/​PhysRevA.103.042604.
https:/​/​doi.org/​10.1103/​PhysRevA.103.042604

[30] Wikipedia. Advanced Vector Extensions — Wikipedia, the free encyclopedia. http:/​/​en.wikipedia.org/​w/​index.php?title=Advanced%20Vector%20Extensions&oldid=1021841294, 2021. [Online; accessed 11-May-2021].
http:/​/​en.wikipedia.org/​w/​index.php?title=Advanced%20Vector%20Extensions&oldid=1021841294

Cited by

Could not fetch Crossref cited-by data during last attempt 2021-07-06 09:26:10: Could not fetch cited-by data for 10.22331/q-2021-07-06-497 from Crossref. This is normal if the DOI was registered recently. On SAO/NASA ADS no data on citing works was found (last attempt 2021-07-06 09:26:11).

PlatoAi. Web3 Reimagined. Data Intelligence Amplified.

Click here to access.

Source: https://quantum-journal.org/papers/q-2021-07-06-497/

Chat with us

Hi there! How can I help you?