How to Simulate Quantum Computers Faster Without Doing the Heavy Math
Original paper: Classical Clifford+T Sampling without Computing Marginals
"Imagine navigating a massive labyrinth where most hallways are completely straight and effortless to walk through, but a few specific doors require complicated puzzle-solving to open. Instead of mapping the entire maze at once, this algorithm simply solves the tricky doors one by one in sequence, completely ignoring the empty hallways in between. By tackling only the true roadblocks step-by-step, it reaches the final destination in a fraction of the time."
Simulating quantum error correction is notoriously difficult because standard supercomputers get bogged down by the sheer scale of the background operations. This breakthrough allows researchers to model large-scale quantum experiments—such as magic state cultivation up to distance 19—in just a few seconds on classical hardware. This significantly accelerates the development timeline for fault-tolerant quantum computing.
- New algorithm called T-by-T sampling avoids costly probability calculations.
- Speed depends only on tricky T-gates, ignoring background Clifford operations.
- Simulates large quantum error correction experiments in mere seconds.
📑 Original arXiv Technical Abstract
We introduce a new exact classical sampling algorithm for Clifford+T circuits, called T-by-T sampling. For a circuit with T-count t, it reduces sampling to evaluating 2t amplitudes of circuits with successively increasing T-counts 1,2,...,t, without the need to compute costly marginal probabilities. Crucially, the number of amplitude evaluations is completely independent of the surrounding Clifford structure. This makes T-by-T sampling well suited for use together with low-rank stabiliser decompositions, which enable efficient amplitude evaluations as long as the T-count is not too high. In that sense, T-by-T sampling is an improvement over the gate-by-gate sampling technique introduced by Bravyi, Gosset, and Liu (Phys. Rev. Lett. 128, 2022), where the number of amplitudes instead scales with the number of non-monomial operations such as Hadamard gates, which can remain large even in circuits with low stabiliser rank. Concretely, T-by-T sampling offers significant speedups in regimes where T gates are embedded within large Clifford computations. This makes it well suited for applications such as simulating quantum error correction experiments, which typically have lower T complexity but involve extensive Clifford operations and measurements. In particular, we show how T-by-T sampling allows us to take samples from recent end-to-end magic state cultivation circuits with escape up to distance 19 in a couple of seconds.
✍️ Are you an author of this paper? Add code/demo links or a note
Help readers explore your work — share your official GitHub repo, Hugging Face weights, affiliation, or a clarification note for our editorial review queue.