Magic State Factory Catalog

[\![599,\,1,\,6]\!] factory

\mathrm{T}_{0}

distance, proved here
6\le d\le 15 certified 15
error coefficient
—
\gamma_\rho
2.3616†
V_{\mathrm{ex}}
1
wires
N=154
Clifford correction
none with T powers
found by
pre-existing pure T

The circuit

The 154\times599 matrix. Rows are wires and columns are rotations. A 1 means the wire takes part in the rotation, and the number beside each wire is its row weight. Scroll sideways to see every column.

  • output wires
  • check wires, measured and postselected
wire
0 10 20 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 260 270 280 290 300 310 320 330 340 350 360 370 380 390 400 410 420 430 440 450 460 470 480 490 500 510 520 530 540 550 560 570 580 590
out 0 (599)11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
check 1 (40)1··11·1····111·1111···1·1···11··1··1·1·11······································1··11·1····111·1111···1·1···11··1··1·1·11·······························································································································································································································································································································································································································································································
check 2 (48)11·1·111···1··11···1··1111··1·1·11·11111·1·····································11·1·111···1··11···1··1111··1·1·11·11111·1······························································································································································································································································································································································································································································································
check 3 (48)1111···11··1·1···11·1·11·11·1··111111·1···1····································1111···11··1·1···11·1·11·11·1··111111·1···1·····························································································································································································································································································································································································································································································
check 4 (48)·1111···11··1·1···11·1·11·11·1··111111·1···1····································1111···11··1·1···11·1·11·11·1··111111·1···1····························································································································································································································································································································································································································································································
check 5 (48)1·1··11··1111···11111····1·1·11·111·1·11····1··································1·1··11··1111···11111····1·1·11·111·1·11····1···························································································································································································································································································································································································································································································
check 6 (40)11··1··1··1····11··1111·1·1··111111··········1·································11··1··1··1····11··1111·1·1··111111··········1··························································································································································································································································································································································································································································································
check 7 (40)·11··1··1··1····11··1111·1·1··111111··········1·································11··1··1··1····11··1111·1·1··111111··········1·························································································································································································································································································································································································································································································
check 8 (40)··11··1··1··1····11··1111·1·1··111111··········1·································11··1··1··1····11··1111·1·1··111111··········1························································································································································································································································································································································································································································································
check 9 (40)···11··1··1··1····11··1111·1·1··111111··········1·································11··1··1··1····11··1111·1·1··111111··········1·······················································································································································································································································································································································································································································································
check 10 (40)····11··1··1··1····11··1111·1·1··111111··········1·································11··1··1··1····11··1111·1·1··111111··········1······················································································································································································································································································································································································································································································
check 11 (40)·····11··1··1··1····11··1111·1·1··111111··········1·································11··1··1··1····11··1111·1·1··111111··········1·····················································································································································································································································································································································································································································································
check 12 (40)1··11··1··111··1·11··1··1111·11·····1·1············1···························1··11··1··111··1·11··1··1111·11·····1·1············1····················································································································································································································································································································································································································································································
check 13 (40)·1··11··1··111··1·11··1··1111·11·····1·1············1···························1··11··1··111··1·11··1··1111·11·····1·1············1···················································································································································································································································································································································································································································································
check 14 (48)1·1111···1·1··111·111·111·11···1···1·111·············1·························1·1111···1·1··111·111·111·11···1···1·111·············1··················································································································································································································································································································································································································································································
check 15 (40)11···1····11·1····111111·1·1·1·····1111···············1························11···1····11·1····111111·1·1·1·····1111···············1·················································································································································································································································································································································································································································································
check 16 (40)·11···1····11·1····111111·1·1·1·····1111···············1························11···1····11·1····111111·1·1·1·····1111···············1················································································································································································································································································································································································································································································
check 17 (40)1·1·1·11···1····111·11·1·1·11··11··1··1·················1······················1·1·1·11···1····111·11·1·1·11··11··1··1·················1···············································································································································································································································································································································································································································································
check 18 (40)·1·1·1·11···1····111·11·1·1·11··11··1··1·················1······················1·1·1·11···1····111·11·1·1·11··11··1··1·················1··············································································································································································································································································································································································································································································
check 19 (48)1·11····11·11··111·11··111·11·1·1111···1··················1····················1·11····11·11··111·11··111·11·1·1111···1··················1·············································································································································································································································································································································································································································································
check 20 (40)11····1··111···1····111··11····1111·11·1···················1···················11····1··111···1····111··11····1111·11·1···················1············································································································································································································································································································································································································································································
check 21 (48)11111·11··1··1·1·11··1·11·1111···11···11····················1··················11111·11··1··1·1·11··1·11·1111···11···11····················1···········································································································································································································································································································································································································································································
check 22 (40)111··1111···1111·1·1·····1·1··1·1·1··1·······················1·················111··1111···1111·1·1·····1·1··1·1·1··1·······················1··········································································································································································································································································································································································································································································
check 23 (40)·111··1111···1111·1·1·····1·1··1·1·1··1·······················1·················111··1111···1111·1·1·····1·1··1·1·1··1·······················1·········································································································································································································································································································································································································································································
check 24 (40)··111··1111···1111·1·1·····1·1··1·1·1··1·······················1·················111··1111···1111·1·1·····1·1··1·1·1··1·······················1········································································································································································································································································································································································································································································
check 25 (32)1····11·111·11······1···1····11·11·····1························1··············1····11·111·11······1···1····11·11·····1························1·······································································································································································································································································································································································································································································
check 26 (56)11·11··1·11·1·11111··11·11··11111111·1·1·························1·············11·11··1·11·1·11111··11·11··11111111·1·1·························1······································································································································································································································································································································································································································································
check 27 (48)1111·11·1·1·1······1···1111·1·11·11·1111··························1············1111·11·1·1·1······1···1111·1·11·11·1111··························1·····································································································································································································································································································································································································································································
check 28 (40)111····1·1··1··1111·1·1··1111··1··1···1····························1···········111····1·1··1··1111·1·1··1111··1··1···1····························1····································································································································································································································································································································································································································································
check 29 (40)·111····1·1··1··1111·1·1··1111··1··1···1····························1···········111····1·1··1··1111·1·1··1111··1··1···1····························1···································································································································································································································································································································································································································································
check 30 (40)1·1···1··1··11111··11······1··1·11·111·1·····························1·········1·1···1··1··11111··11······1··1·11·111·1·····························1··································································································································································································································································································································································································································································
check 31 (48)11··1·11··111·1···1·111·1····1·111111·11······························1········11··1·11··111·1···1·111·1····1·111111·11······························1·································································································································································································································································································································································································································································
check 32 (48)111111111·······1111·1·111··111··11·1··································1·······111111111·······1111·1·111··111··11·1··································1································································································································································································································································································································································································································································
check 33 (48)·111111111·······1111·1·111··111··11·1··································1·······111111111·······1111·1·111··111··11·1··································1·······························································································································································································································································································································································································································································
check 34 (48)··111111111·······1111·1·111··111··11·1··································1·······111111111·······1111·1·111··111··11·1··································1······························································································································································································································································································································································································································································
check 35 (48)···111111111·······1111·1·111··111··11·1··································1·······111111111·······1111·1·111··111··11·1··································1·····························································································································································································································································································································································································································································
check 36 (48)1··1·1·1111··1·1111·11·111·1·····111··11···································1···1··1·1·1111··1·1111·11·111·1·····111··11···································1····························································································································································································································································································································································································································································
check 37 (40)11·1····111·1111···1·1···11··1··1·1·11······································1··11·1····111·1111···1·1···11··1··1·1·11······································1···························································································································································································································································································································································································································································
check 38 (40)·11·1····111·1111···1·1···11··1··1·1·11······································1··11·1····111·1111···1·1···11··1··1·1·11······································1··························································································································································································································································································································································································································································
check 39 (40)··11·1····111·1111···1·1···11··1··1·1·11······································1··11·1····111·1111···1·1···11··1··1·1·11······································1·························································································································································································································································································································································································································································
check 40 (40)······························································································································································1··11·1····111·1111···1·1···11··1··1·1·11······································1··11·1····111·1111···1·1···11··1··1·1·11·································································································································································································································································································································
check 41 (48)······························································································································································11·1·111···1··11···1··1111··1·1·11·11111·1·····································11·1·111···1··11···1··1111··1·1·11·11111·1································································································································································································································································································································
check 42 (48)······························································································································································1111···11··1·1···11·1·11·11·1··111111·1···1····································1111···11··1·1···11·1·11·11·1··111111·1···1·······························································································································································································································································································································
check 43 (48)·······························································································································································1111···11··1·1···11·1·11·11·1··111111·1···1····································1111···11··1·1···11·1·11·11·1··111111·1···1······························································································································································································································································································································
check 44 (48)······························································································································································1·1··11··1111···11111····1·1·11·111·1·11····1··································1·1··11··1111···11111····1·1·11·111·1·11····1·····························································································································································································································································································································
check 45 (40)······························································································································································11··1··1··1····11··1111·1·1··111111··········1·································11··1··1··1····11··1111·1·1··111111··········1····························································································································································································································································································································
check 46 (40)·······························································································································································11··1··1··1····11··1111·1·1··111111··········1·································11··1··1··1····11··1111·1·1··111111··········1···························································································································································································································································································································
check 47 (40)································································································································································11··1··1··1····11··1111·1·1··111111··········1·································11··1··1··1····11··1111·1·1··111111··········1··························································································································································································································································································································
check 48 (40)·································································································································································11··1··1··1····11··1111·1·1··111111··········1·································11··1··1··1····11··1111·1·1··111111··········1·························································································································································································································································································································
check 49 (40)··································································································································································11··1··1··1····11··1111·1·1··111111··········1·································11··1··1··1····11··1111·1·1··111111··········1························································································································································································································································································································
check 50 (40)···································································································································································11··1··1··1····11··1111·1·1··111111··········1·································11··1··1··1····11··1111·1·1··111111··········1·······················································································································································································································································································································
check 51 (40)······························································································································································1··11··1··111··1·11··1··1111·11·····1·1············1···························1··11··1··111··1·11··1··1111·11·····1·1············1······················································································································································································································································································································
check 52 (40)·······························································································································································1··11··1··111··1·11··1··1111·11·····1·1············1···························1··11··1··111··1·11··1··1111·11·····1·1············1·····················································································································································································································································································································
check 53 (48)······························································································································································1·1111···1·1··111·111·111·11···1···1·111·············1·························1·1111···1·1··111·111·111·11···1···1·111·············1····················································································································································································································································································································
check 54 (40)······························································································································································11···1····11·1····111111·1·1·1·····1111···············1························11···1····11·1····111111·1·1·1·····1111···············1···················································································································································································································································································································
check 55 (40)·······························································································································································11···1····11·1····111111·1·1·1·····1111···············1························11···1····11·1····111111·1·1·1·····1111···············1··················································································································································································································································································································
check 56 (40)······························································································································································1·1·1·11···1····111·11·1·1·11··11··1··1·················1······················1·1·1·11···1····111·11·1·1·11··11··1··1·················1·················································································································································································································································································································
check 57 (40)·······························································································································································1·1·1·11···1····111·11·1·1·11··11··1··1·················1······················1·1·1·11···1····111·11·1·1·11··11··1··1·················1················································································································································································································································································································
check 58 (48)······························································································································································1·11····11·11··111·11··111·11·1·1111···1··················1····················1·11····11·11··111·11··111·11·1·1111···1··················1···············································································································································································································································································································
check 59 (40)······························································································································································11····1··111···1····111··11····1111·11·1···················1···················11····1··111···1····111··11····1111·11·1···················1··············································································································································································································································································································
check 60 (48)······························································································································································11111·11··1··1·1·11··1·11·1111···11···11····················1··················11111·11··1··1·1·11··1·11·1111···11···11····················1·············································································································································································································································································································
check 61 (40)······························································································································································111··1111···1111·1·1·····1·1··1·1·1··1·······················1·················111··1111···1111·1·1·····1·1··1·1·1··1·······················1············································································································································································································································································································
check 62 (40)·······························································································································································111··1111···1111·1·1·····1·1··1·1·1··1·······················1·················111··1111···1111·1·1·····1·1··1·1·1··1·······················1···········································································································································································································································································································
check 63 (40)································································································································································111··1111···1111·1·1·····1·1··1·1·1··1·······················1·················111··1111···1111·1·1·····1·1··1·1·1··1·······················1··········································································································································································································································································································
check 64 (32)······························································································································································1····11·111·11······1···1····11·11·····1························1··············1····11·111·11······1···1····11·11·····1························1·········································································································································································································································································································
check 65 (56)······························································································································································11·11··1·11·1·11111··11·11··11111111·1·1·························1·············11·11··1·11·1·11111··11·11··11111111·1·1·························1········································································································································································································································································································
check 66 (48)······························································································································································1111·11·1·1·1······1···1111·1·11·11·1111··························1············1111·11·1·1·1······1···1111·1·11·11·1111··························1·······································································································································································································································································································
check 67 (40)······························································································································································111····1·1··1··1111·1·1··1111··1··1···1····························1···········111····1·1··1··1111·1·1··1111··1··1···1····························1······································································································································································································································································································
check 68 (40)·······························································································································································111····1·1··1··1111·1·1··1111··1··1···1····························1···········111····1·1··1··1111·1·1··1111··1··1···1····························1·····································································································································································································································································································
check 69 (40)······························································································································································1·1···1··1··11111··11······1··1·11·111·1·····························1·········1·1···1··1··11111··11······1··1·11·111·1·····························1····································································································································································································································································································
check 70 (48)······························································································································································11··1·11··111·1···1·111·1····1·111111·11······························1········11··1·11··111·1···1·111·1····1·111111·11······························1···································································································································································································································································································
check 71 (48)······························································································································································111111111·······1111·1·111··111··11·1··································1·······111111111·······1111·1·111··111··11·1··································1··································································································································································································································································································
check 72 (48)·······························································································································································111111111·······1111·1·111··111··11·1··································1·······111111111·······1111·1·111··111··11·1··································1·································································································································································································································································································
check 73 (48)································································································································································111111111·······1111·1·111··111··11·1··································1·······111111111·······1111·1·111··111··11·1··································1································································································································································································································································································
check 74 (48)·································································································································································111111111·······1111·1·111··111··11·1··································1·······111111111·······1111·1·111··111··11·1··································1·······························································································································································································································································································
check 75 (48)······························································································································································1··1·1·1111··1·1111·11·111·1·····111··11···································1···1··1·1·1111··1·1111·11·111·1·····111··11···································1······························································································································································································································································································
check 76 (40)······························································································································································11·1····111·1111···1·1···11··1··1·1·11······································1··11·1····111·1111···1·1···11··1··1·1·11······································1·····························································································································································································································································································
check 77 (40)·······························································································································································11·1····111·1111···1·1···11··1··1·1·11······································1··11·1····111·1111···1·1···11··1··1·1·11······································1····························································································································································································································································································
check 78 (40)································································································································································11·1····111·1111···1·1···11··1··1·1·11······································1··11·1····111·1111···1·1···11··1··1·1·11······································1···························································································································································································································································································
check 79 (24)····························································································································································································································································································································1···11··11·11··1··1·1··11······················1···11··11·11··1··1·1··11···················································································································································································································
check 80 (32)····························································································································································································································································································································11··1·1·1·11·1·11·1111·1·1·····················11··1·1·1·11·1·11·1111·1·1··················································································································································································································
check 81 (32)····························································································································································································································································································································111·1··11·····111111·111··1····················111·1··11·····111111·111··1·················································································································································································································
check 82 (24)····························································································································································································································································································································11111······11···11·1··1····1···················11111······11···11·1··1····1················································································································································································································
check 83 (24)·····························································································································································································································································································································11111······11···11·1··1····1···················11111······11···11·1··1····1···············································································································································································································
check 84 (32)····························································································································································································································································································································1·11··1·11·11111···111·1·····1·················1·11··1·11·11111···111·1·····1··············································································································································································································
check 85 (32)····························································································································································································································································································································11·1·1·11·11·11·1·1··111······1················11·1·1·11·11·11·1·1··111······1·············································································································································································································
check 86 (24)····························································································································································································································································································································111··11·······1··1111·1········1···············111··11·······1··1111·1········1············································································································································································································
check 87 (24)·····························································································································································································································································································································111··11·······1··1111·1········1···············111··11·······1··1111·1········1···········································································································································································································
check 88 (32)····························································································································································································································································································································1·11·1·1·1·11··11·11·111·········1·············1·11·1·1·1·11··11·11·111·········1··········································································································································································································
check 89 (32)····························································································································································································································································································································11·1·11··111·1·11111··1···········1············11·1·11··111·1·11111··1···········1·········································································································································································································
check 90 (32)·····························································································································································································································································································································11·1·11··111·1·11111··1···········1············11·1·11··111·1·11111··1···········1········································································································································································································
check 91 (24)····························································································································································································································································································································1·111··1·1···1···1·1·1·1············1··········1·111··1·1···1···1·1·1·1············1·······································································································································································································
check 92 (24)····························································································································································································································································································································11·1·····1111·11······11·············1·········11·1·····1111·11······11·············1······································································································································································································
check 93 (24)····························································································································································································································································································································111··1··111··1··1·1·1·················1········111··1··111··1··1·1·1·················1·····································································································································································································
check 94 (24)·····························································································································································································································································································································111··1··111··1··1·1·1·················1········111··1··111··1··1·1·1·················1····································································································································································································
check 95 (24)······························································································································································································································································································································111··1··111··1··1·1·1·················1········111··1··111··1··1·1·1·················1···································································································································································································
check 96 (24)·······························································································································································································································································································································111··1··111··1··1·1·1·················1········111··1··111··1··1·1·1·················1··································································································································································································
check 97 (24)····························································································································································································································································································································1·····1·1··1·111·11···11··················1····1·····1·1··1·111·11···11··················1·································································································································································································
check 98 (24)····························································································································································································································································································································11··11·11··1··1·1··11······················1···11··11·11··1··1·1··11······················1································································································································································································
check 99 (24)·····························································································································································································································································································································11··11·11··1··1·1··11······················1···11··11·11··1··1·1··11······················1·······························································································································································································
check 100 (24)······························································································································································································································································································································11··11·11··1··1·1··11······················1···11··11·11··1··1·1··11······················1······························································································································································································
check 101 (24)·······························································································································································································································································································································11··11·11··1··1·1··11······················1···11··11·11··1··1·1··11······················1·····························································································································································································
check 102 (24)··························································································································································································································································································································································································································1···11··11·11··1··1·1··11······················1···11··11·11··1··1·1··11·····················································································································
check 103 (32)··························································································································································································································································································································································································································11··1·1·1·11·1·11·1111·1·1·····················11··1·1·1·11·1·11·1111·1·1····················································································································
check 104 (32)··························································································································································································································································································································································································································111·1··11·····111111·111··1····················111·1··11·····111111·111··1···················································································································
check 105 (24)··························································································································································································································································································································································································································11111······11···11·1··1····1···················11111······11···11·1··1····1··················································································································
check 106 (24)···························································································································································································································································································································································································································11111······11···11·1··1····1···················11111······11···11·1··1····1·················································································································
check 107 (32)··························································································································································································································································································································································································································1·11··1·11·11111···111·1·····1·················1·11··1·11·11111···111·1·····1················································································································
check 108 (32)··························································································································································································································································································································································································································11·1·1·11·11·11·1·1··111······1················11·1·1·11·11·11·1·1··111······1···············································································································
check 109 (24)··························································································································································································································································································································································································································111··11·······1··1111·1········1···············111··11·······1··1111·1········1··············································································································
check 110 (24)···························································································································································································································································································································································································································111··11·······1··1111·1········1···············111··11·······1··1111·1········1·············································································································
check 111 (32)··························································································································································································································································································································································································································1·11·1·1·1·11··11·11·111·········1·············1·11·1·1·1·11··11·11·111·········1············································································································
check 112 (32)··························································································································································································································································································································································································································11·1·11··111·1·11111··1···········1············11·1·11··111·1·11111··1···········1···········································································································
check 113 (32)···························································································································································································································································································································································································································11·1·11··111·1·11111··1···········1············11·1·11··111·1·11111··1···········1··········································································································
check 114 (24)··························································································································································································································································································································································································································1·111··1·1···1···1·1·1·1············1··········1·111··1·1···1···1·1·1·1············1·········································································································
check 115 (24)··························································································································································································································································································································································································································11·1·····1111·11······11·············1·········11·1·····1111·11······11·············1········································································································
check 116 (24)··························································································································································································································································································································································································································111··1··111··1··1·1·1·················1········111··1··111··1··1·1·1·················1·······································································································
check 117 (24)···························································································································································································································································································································································································································111··1··111··1··1·1·1·················1········111··1··111··1··1·1·1·················1······································································································
check 118 (24)····························································································································································································································································································································································································································111··1··111··1··1·1·1·················1········111··1··111··1··1·1·1·················1·····································································································
check 119 (24)·····························································································································································································································································································································································································································111··1··111··1··1·1·1·················1········111··1··111··1··1·1·1·················1····································································································
check 120 (24)··························································································································································································································································································································································································································1·····1·1··1·111·11···11··················1····1·····1·1··1·111·11···11··················1···································································································
check 121 (24)··························································································································································································································································································································································································································11··11·11··1··1·1··11······················1···11··11·11··1··1·1··11······················1··································································································
check 122 (24)···························································································································································································································································································································································································································11··11·11··1··1·1··11······················1···11··11·11··1··1·1··11······················1·································································································
check 123 (24)····························································································································································································································································································································································································································11··11·11··1··1·1··11······················1···11··11·11··1··1·1··11······················1································································································
check 124 (24)·····························································································································································································································································································································································································································11··11·11··1··1·1··11······················1···11··11·11··1··1·1··11······················1·······························································································
check 125 (16)························································································································································································································································································································································································································································································································1·1··1··11111··········1·1··1··11111···························································
check 126 (16)························································································································································································································································································································································································································································································································1111·11·1····1·········1111·11·1····1··························································
check 127 (16)·························································································································································································································································································································································································································································································································1111·11·1····1·········1111·11·1····1·························································
check 128 (16)··························································································································································································································································································································································································································································································································1111·11·1····1·········1111·11·1····1························································
check 129 (16)···························································································································································································································································································································································································································································································································1111·11·1····1·········1111·11·1····1·······················································
check 130 (16)························································································································································································································································································································································································································································································································1·1·1·111··1·····1·····1·1·1·111··1·····1······················································
check 131 (16)························································································································································································································································································································································································································································································································1111···1··11······1····1111···1··11······1·····················································
check 132 (16)························································································································································································································································································································································································································································································································11·111···11········1···11·111···11········1····················································
check 133 (16)·························································································································································································································································································································································································································································································································11·111···11········1···11·111···11········1···················································
check 134 (16)························································································································································································································································································································································································································································································································1··1··11111··········1·1··1··11111··········1··················································
check 135 (16)·························································································································································································································································································································································································································································································································1··1··11111··········1·1··1··11111··········1·················································
check 136 (8)·······································································································································································································································································································································································································································································································································································11····11·········11····11·······················
check 137 (8)······································································································································································································································································································································································································································································································································································1···1········1··11···1········1··1···············
check 138 (8)··········································································································································································································································································································································································································································································································································································1····11··1·······1····11··1··················
check 139 (8)············································································································································································································································································································································································································································································································································································111·····1········111·····1·················
check 140 (8)··········································································································································································································································································································································································································································································································································································1····1·····11····1····1·····11···············
check 141 (8)·········································································································································································································································································································································································································································································································································································1·1·····11·······1·1·····11···················
check 142 (8)·······································································································································································································································································································································································································································································································································································11··1······1·····11··1······1···················
check 143 (16)······································································································································································································································································································································································································································································································································································11·1··11····1··1111·1··11····1··11···············
check 144 (8)········································································································································································································································································································································································································································································································································································································1·111··1·111···
check 145 (8)········································································································································································································································································································································································································································································································································································································111··1·111··1··
check 146 (8)·········································································································································································································································································································································································································································································································································································································111··1·111··1·
check 147 (8)···············································································································································································································································································································································································································································································································································································································11111111
check 148 (32)·······················································································································································································································································································································································································································································································································································································11111111111111111111111111111111
check 149 (72)···············································································································································································································································································································································································································································································································································111111111111111111111111111111111111111111111111111111111111111111111111
check 150 (142)·········································································································································································································································································································································································································································································1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
check 151 (236)···········································································································································································································································································································································································11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
check 152 (362)·············································································································································································································································11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
check 153 (520)···············································································1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111

The gate is read off the output rows. An output row of odd weight gives a T, a pair of output rows with odd overlap gives a CS, and an odd triple overlap gives a CCZ. The circuit is a valid factory because every such parity that touches a check row is even.

Figures of merit

inputs n599Noisy T states per run.
outputs k1
distance d≥ 6A lower bound proved here. Its source certifies d\ge 15, and a fault of weight 15 is shown below, so d=15.
error coefficient A_{6}not definedUndefined while the distance is only a lower bound.
wires N154
checks r153
V_{\mathrm{ex}}1T states per run. CCZ counts as two.
\gamma_\rho = \log(n/V_{\mathrm{ex}})/\log d3.5693Overhead per extractable T state. Lower is better. At the certified d=15: 2.3616.
\gamma = \log(n/k)/\log d3.5693Overhead per output qubit. At the certified d=15: 2.3616.
\gamma_T = \log(n/T)/\log d3.5693Overhead per unit of T-count. At the certified d=15: 2.3616.
T-count1Minimal T-count of the output gate.
phase-polynomial degree1Minimised over changes of output basis.
effective width1Rank of the output rows modulo the check rows.

Output gate

1 T0 CS0 CCZon 1 output wire

As gates: \mathrm{T}_{0}

As monomials: 0 (output wires per term, separated by +)

This row stands for every gate that a CNOT circuit and S, Z and CZ gates on the outputs can reach from this one. They all prepare the same magic state. The wires are shown in the S_k-canonical frame.

Clifford correction

With every rotation a \mathrm{T}=\mathrm{diag}(1,e^{i\pi/4}), the rotations deposit the gate above times a diagonal Clifford. Undo it after the rotations and before the checks are measured, with 4 single-wire gates and 6 \mathrm{CZ} gates: \mathrm{S} on output 0, \mathrm{S} on check 150, \mathrm{Z} on check 151, \mathrm{S}^\dagger on check 152, \mathrm{CZ} on output 0, check 150, \mathrm{CZ} on output 0, check 152, \mathrm{CZ} on check 150, check 151, \mathrm{CZ} on check 150, check 152, \mathrm{CZ} on check 150, check 153, \mathrm{CZ} on check 152, check 153. The circuit's action is then exactly the gate above, and an error-free run passes every check with certainty.

Or no Clifford gate at all: run \mathrm{T}^\dagger on rotations 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23 and 323 more (listed below), and \mathrm{T} on the rest. A power of \mathrm{T} costs one magic state, like \mathrm{T} itself. For a code this is a transversal \mathrm{T} gate, \mathrm{T}^j on each qubit.

All 347 rotations at T†

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598

Rotations are numbered by matrix column, from 0. The correction comes from the columns by the weight expansion of Bravyi and Haah (2012). verify_catalog.py re-derives it, checks the corrected circuit's phase input by input against the gate, and on small circuits simulates it gate by gate.

Convert the output with CNOT and S

A CNOT circuit on the outputs, followed by S, Z and CZ gates, turns this factory's gate into other gates that prepare the same magic state. Type a target gate to check whether it is reachable. If it is, you get the circuit, checked on every basis state.

Or list every gate it reaches. The list is built in your browser and saved as a text file, one gate per line.

Python code that writes the same list
import json, urllib.request

NAMES = {1: "T", 2: "CS", 3: "CCZ"}


def equivalent_gates(k, terms, limit=1_000_000):
    """Every gate a CNOT circuit and S, Z, CZ gates reach from this one.

    A gate is its set of terms mod Clifford: {a} is T, {a,b} is CS and
    {a,b,c} is CCZ on those outputs. CNOT c->t sends x_t to
    x_c + x_t - 2 x_c x_t, so a term on t but not c adds the term with t
    replaced by c, and, below CCZ, the term with c added.
    """
    start = frozenset(frozenset(m) for m in terms)
    seen, queue = {start}, [start]
    for gate in queue:
        for c in range(k):
            for t in range(k):
                if c == t:
                    continue
                new = set(gate)
                for m in gate:
                    if t in m and c not in m:
                        new ^= {(m - {t}) | {c}}
                        if len(m) < 3:
                            new ^= {m | {c}}
                new = frozenset(new)
                if new not in seen:
                    seen.add(new)
                    queue.append(new)
                    if len(seen) > limit:
                        raise RuntimeError(f"more than {limit} equivalent gates")
    return seen


def name(gate, k):
    sep = "," if k > 10 else ""
    terms = sorted((sorted(m) for m in gate), key=lambda m: (len(m), m))
    return "·".join(NAMES[len(m)] + sep.join(map(str, m)) for m in terms) or "I"


url = "https://shubhamj810.github.io/magic-state-factory-repo/data/factories/599.1.6.a.json"
record = json.load(urllib.request.urlopen(url))
k = record["parameters"]["k"]
gates = equivalent_gates(k, record["gate"]["monomials"])
lines = sorted(name(g, k) for g in gates)
print(len(lines), "equivalent gates")
with open("equivalent-gates-599.1.6.a.txt", "w") as out:
    out.write("\n".join(lines) + "\n")

Distance

6\le d\le 15. No fault of weight below 6 is both undetectable and damaging. None of weight 6 has been found, and one of weight 15 is, so the distance lies between the two.

A damaging fault of weight 15 sits on columns [0,79,158,237,316,363,410,457,504,527,550,567,584,591,598].

Its source certifies d\ge 15, as a lower bound. That certificate is not re-checked here, but rankings on this site may use it. With the damaging fault of weight 15 above, it makes the distance exactly d=15. Source: Jain and Albert (arXiv:2408.12752), Table II: [[79,1,15]] quantum QR code (extended QR [80,40,16]) doubled onto [[441,1,13]]; the doubling theorem of their Sec. III gives d >= min(d_sd, d_tri + 2) = 15, with d_sd at least the classical distance less one (their Lemma 2.4).

A fault is a set of faulty columns. It is undetectable when their check parts cancel, and damaging when their output parts do not.

Original source

S. P. Jain and V. V. Albert, "Transversal Clifford and T-gate codes of short length and high distance," IEEE J. Sel. Areas Inf. Theory 6, 127-137 (2025); arXiv:2408.12752. doi.org/10.1109/JSAIT.2025.3570832

Provenance

a code of the weak triply even family of Jain and Albert (arXiv:2408.12752, Table II; transversal_t_codes/): quadratic-residue CSS codes doubled onto [[95,1,7]], rebuilt here from the paper's construction, where T on some qubits and T-dagger on the rest is a logical T; a verified witness, not a maximum

Found by: Jain-Albert doubling: weak triply even family

Discovery: pre-existing

1 recorded source
[
 {
  "regime": "Jain-Albert doubling: weak triply even family",
  "file": "transversal_t_codes/factories.json",
  "label": "JA-599",
  "N": 154,
  "d": 6,
  "d_is_exact": false,
  "origin": "S. P. Jain and V. V. Albert, \"Transversal Clifford and T-gate codes of short length and high distance\", IEEE J. Sel. Areas Inf. Theory 6, 127 (2025), arXiv:2408.12752",
  "provenance": "[[79,1,15]] quantum QR code (extended QR [80,40,16]) doubled onto [[441,1,13]] (Table II)"
 }
]

Use it in code

Load this factory and re-derive every number from its circuit with the catalogue's own verifier.

# git clone https://github.com/shubhamj810/magic-state-factory-repo
# cd magic-state-factory-repo/master_catalog
import json, urllib.request
import verify_catalog as VC

url = "https://shubhamj810.github.io/magic-state-factory-repo/data/factories/599.1.6.a.json"
record = json.load(urllib.request.urlopen(url))
columns = record["circuit"]["columns"]
k, N = record["parameters"]["k"], record["parameters"]["N"]

facts, problems = VC.derive(columns, k, N)    # gate, T-count, degree, ...
distance = VC.measure_distance(columns, k, N)  # exhaustive fault search
print(facts["gate_human"], distance["d_exact"] or distance["d_at_least"],
      problems or "verified")

Raw record

Show the JSON this page is built from

Source: master_catalog.json, factories[1153].