Research Explained · Error Correction
Magic State Cultivation: Growing T States as Cheap as CNOT Gates
Craig Gidney, Noah Shutty, and Cody Jones
Google Quantum AI · 2024 · Difficulty ★★★★★
Reference
Gidney, C., Shutty, N., & Jones, C. (2024). Magic state cultivation: growing T states as cheap as CNOT gates. arXiv:2409.17595.
Preprint: arXiv:2409.17595
This page is an independent explanation. For exact wording, figures, and data, read the original paper.
The short version
Google researchers propose magic state cultivation, a method that produces high-quality T states inside a surface code at a cost close to that of a two-qubit gate, rather than through the large factories of magic state distillation. It could reduce the overhead of fault-tolerant computing by an order of magnitude.
Key findings
- T states can be grown by starting with a small, noisy state in a color code, repeatedly checking it with error-detecting measurements, and enlarging the code, so that errors are filtered out.
- The state is then transferred to the surface code with a final step that adds protection against remaining errors.
- At a physical error rate of 0.1 percent, the method produces T states with infidelity of the order of one part in a billion, at a cost of a few hundred qubit-rounds of space-time volume.
- The cost is much lower than that of standard distillation, and it removes the need for large dedicated factories.
Background: why this paper was written
Magic state distillation, proposed by Bravyi and Kitaev in 2005, has been the standard way to supply the non-Clifford gates for surface-code machines. It combines many noisy T states to obtain fewer cleaner ones, and a protocol with several rounds has a large cost. In resource estimates for algorithms such as Shor's, the distillation factories occupy about half or more of the machine and set a large part of the run time.
Litinski's 2019 work on better layouts had cut costs considerably, and other protocols had been developed. But the cost remained high, and the question was whether a fundamentally different approach could do much better. The Google team found that it could, by combining techniques from the theory of color codes and of postselection.
What the researchers did
The procedure begins with a T state on a small code, a color code of distance 3, prepared by a noisy circuit and checked by measuring the logical Hadamard-type operator, whose measurement is possible because the color code has transversal Clifford gates. The state is projected onto the eigenstate of the operator that corresponds to a T-type magic state, and if the measurement outcome indicates an error, the attempt is discarded and restarted.
The check is repeated, and the code is then enlarged to distance 5, with more checks, to filter errors of higher order. Each stage detects errors that escaped the earlier ones, so the infidelity of the surviving states falls rapidly. Because most attempts at low distance succeed with high probability, the cost of discarded attempts is small, and the overall cost is dominated by the final stages.
At the end, the state in the color code is converted into a surface-code state by a process called escape, a code-switching step in which the color-code state is stretched into a larger region and then merged into a surface-code patch, while the errors that occur during the escape are suppressed by additional checks. The authors simulated the whole procedure with stabilizer-based tools and quantified the output infidelity and the space-time volume at several physical error rates, finding that at 0.1 percent the infidelity is about 2 times 10 to the minus 9 for a cost of the order of a few hundred qubit-rounds, with scaling shown for other rates.
Results
The estimates show that cultivating a T state costs about the same as a few CNOT gates, about an order of magnitude less than the best distillation protocols at similar output quality.
The method needs only a small patch of qubits, so it can be placed near where the state is consumed, which reduces the routing overhead.
In combination with other improvements, it contributed to a twentyfold reduction in the estimated qubits for factoring RSA-2048, as reported in 2025.
Key facts and numbers
| Item | Detail |
|---|---|
| Year | 2024 (arXiv, September) |
| Output quality | Infidelity of order 10^-9 at 0.1 percent physical error rate |
| Cost | A few hundred qubit-rounds; comparable to a few CNOT gates |
| Improvement | About an order of magnitude over distillation |
| Method | Repeated checks of a small color code with postselection, then escape to the surface code |
Limitations and caveats
The results are from simulation and have not been demonstrated in a hardware experiment, and the real performance will depend on the noise structure, including leakage and correlated errors.
The method uses postselection, so the runtime fluctuates, and the factory must absorb the variation, which requires a buffer of prepared states.
For very low output infidelities, such as those needed for the largest algorithms, cultivation may need to be followed by a round of distillation, though the costs are much lower than before.
Why it matters
Cultivation cuts the largest fixed cost in resource estimates for fault-tolerant algorithms, and it was a major ingredient in Gidney's 2025 estimate that RSA-2048 could be factored with under a million noisy qubits.
What happened next
The paper has been widely discussed as a major advance in the cost of fault-tolerant computation, and it motivated experimental groups to test cultivation. In 2025, researchers reported small-scale experiments with related ideas on neutral atoms and trapped ions.
It also changed the standard assumptions in resource estimates, so that the cost of non-Clifford gates, long the dominating factor, now has a lower bound close to that of Clifford operations, which shifts attention to other bottlenecks such as the speed of the classical decoders.
How to read the original paper
The paper is long and technical. The abstract and the summary of results are readable, and the blog posts by the authors give an accessible overview. Read it with the 2025 Gidney paper to see its effect on resource estimates.
The magic state distillation, T gate, and surface code pages on this site give the background.
Original abstract (paraphrased)
The paper presents a method called magic state cultivation, which prepares high-fidelity T states by starting with a small color code state, performing repeated checks by measuring transversal logical Hadamard operators, using postselection to discard runs with detected errors, and growing the code to larger distance, before escaping to a surface code. The cost, in space-time volume, is comparable to that of a few logical CNOT gates and much lower than distillation.
Frequently asked questions
What is magic state cultivation?
A method of growing high-quality T states inside a code by repeated checking and enlarging, at a much lower cost than distillation.
Why does it matter?
Magic state factories take up a large share of the qubits and time in estimates for large algorithms, so reducing their cost cuts the overall requirements.
Has it been demonstrated?
Mostly in simulation. Experimental tests are starting on small systems.
Keep exploring
- Algorithm: Shor's Algorithm
- Algorithm: Quantum Error-Correcting Codes (Shor Code, Surface Code)
- Hardware: Google Willow
- Dictionary: Magic State Distillation
- Dictionary: T Gate
- Dictionary: Surface Code
- Dictionary: Logical Qubit
- Industry: Quantum Computing for Cybersecurity
Explanations on this page summarize published work for education (last reviewed September 30, 2026). Numbers are taken from the cited paper or from widely reported follow-up work, and later results may have updated or challenged them. Check the reference above before citing.