Magic State Factory Catalog

Magic State Factory Catalog

An open database of verified magic-state factories, each stored as an explicit circuit.

Try: pure T^{\otimes k} with CCZ distance \ge 5 from the literature

Have a factory? Send it in any format: parameters, a gate, a matrix, a construction or a link.

Opens a prefilled form on GitHub, where you can attach files. How to contribute · email instead

New to magic states? A 12-minute video on why fault-tolerant computers need them, how factories like 15-to-1 distill them, and what that costs.

The 15-to-1 factory[\![15,\,1,\,3]\!]
Output and check wires by \pi/4 rotations. Open it →

What the catalogue offers

Search
Find factories by parameters, gate, distance or source.
A page per factory
Its circuit as a matrix, its figures of merit, its distance, and its original source.
Clifford corrections
The S and CZ gates each circuit needs to give exactly its output gate, or the powers of T that make them unnecessary. Search for factories that need no correction.
CNOT and S conversion
Test whether another output gate is reachable with CNOT and S gates, and get the circuit that does it. Or list every gate it reaches.
Downloads
Each factory as JSON, CSV or a numpy matrix. The whole catalogue as CSV and JSON.
Credit
Each factory names the paper that found it or the person who contributed it. All of them are on the references page.

Best factories

Frontier

The lowest \gamma with at most n inputs, by distance. The switch above chooses the measure.

Browse by parameters

Parameter sets in the catalogue. Click a column header to sort.
[\![n,k,d]\!] n k d gates best \gamma_\rho \gamma fewest N

† at a distance certified by the factory's source. How distances are checked