Papers › Improved Simulation of Stabilizer Circuits

Improved Simulation of Stabilizer Circuits

25 Jun 2004arXiv:quant-ph/0406196links table onlyarchive 2025-07-28

Scott Aaronson, Daniel Gottesman

The archive published only this paper's code-link row. Authors, date and abstract are from arXiv's metadata (CC0), read from the Kaggle arXiv metadata snapshot of 2026-09-12 where its title matched the archive's; the title is the archive's.

The Gottesman-Knill theorem says that a stabilizer circuit -- that is, a quantum circuit consisting solely of CNOT, Hadamard, and phase gates -- can be simulated efficiently on a classical computer. This paper improves that theorem in several directions. First, by removing the need for Gaussian elimination, we make the simulation algorithm much faster at the cost of a factor-2 increase in the number of bits needed to represent a state. We have implemented the improved algorithm in a freely-available program called CHP (CNOT-Hadamard-Phase), which can handle thousands of qubits easily. Second, we show that the problem of simulating stabilizer circuits is complete for the classical complexity class ParityL, which means that stabilizer circuits are probably not even universal for classical computation. Third, we give efficient algorithms for computing the inner product between two stabilizer states, putting any n-qubit stabilizer circuit into a "canonical form" that requires at most O(n^2/log n) gates, and other useful tasks. Fourth, we extend our simulation algorithm to circuits acting on mixed states, circuits containing a limited number of non-stabilizer gates, and circuits acting on general tensor-product initial states but containing only a limited number of measurements.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="quant-ph/0406196")

Code

Syntology Ran 0 of 11 code samples harvested from 2 repositories linked to this paper; 11 have no recorded run.

By repository: community (archive-listed): 11 samples from 2 repositories, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

KittenHero/stabilizer-sim mentioned on GitHub report
KittenHero/stabilzer-sim mentioned on GitHub report
StationQ/Liquid mentioned on GitHubNOASSERTION report
b63/chp mentioned on GitHub report
hhy37/Liquid mentioned on GitHubNOASSERTION report
kklocke/cliffordcircuits mentioned on GitHub report
or1426/Clifford-T-estimator mentioned on GitHubApache-2.0 report
qsi-baqs/jabalizer mentioned on GitHubMIT report
qsi-baqs/jabalizer.jl mentioned on GitHubMIT report
quantumlib/stim mentioned on GitHubApache-2.0 report
rharper2/Juqst mentioned on GitHub report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

11 samples harvested; 0 ran; 0 honoured the contract we drafted; 11 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

11unverified

Licence: 0 of the 11 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

LMin or1426/Clifford-T-estimator/estimate.py community (archive-listed) unverified Apache-2.0 (permissive) · 27a3574bfd53ad9a · report
a2str or1426/Clifford-T-estimator/util.py community (archive-listed) unverified Apache-2.0 (permissive) · 63b5fac16913cd36 · report
benchmark quantumlib/stim/src/stim/circuit/circuit_pybind_perf.py community (archive-listed) unverified Apache-2.0 (permissive) · 1205728b447c787a · report
benchmark_go quantumlib/stim/src/stim/circuit/circuit_pybind_perf.py community (archive-listed) unverified Apache-2.0 (permissive) · aa3519dd333778a5 · report
deltaPrime or1426/Clifford-T-estimator/estimate.py community (archive-listed) unverified Apache-2.0 (permissive) · e842f57630b81f56 · report
epsPrime or1426/Clifford-T-estimator/estimate.py community (archive-listed) unverified Apache-2.0 (permissive) · 793ddace2837fd38 · report
no_really_i_have_a_doc_why_is_this_needed_argh quantumlib/stim/dev/doctest_proper.py community (archive-listed) unverified Apache-2.0 (permissive) · e0e8a79a01ff0e8f · report
normalize_doc_string quantumlib/stim/dev/util_gen_stub_file.py community (archive-listed) unverified Apache-2.0 (permissive) · 6dfda233dc5c1159 · report
rref or1426/Clifford-T-estimator/util.py community (archive-listed) unverified Apache-2.0 (permissive) · 40b74173abf64c50 · report
si2 quantumlib/stim/src/stim/circuit/circuit_pybind_perf.py community (archive-listed) unverified Apache-2.0 (permissive) · 670b6e92f440d6bd · report
splay_signature quantumlib/stim/dev/util_gen_stub_file.py community (archive-listed) unverified Apache-2.0 (permissive) · 39f943cac460a842 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections