← Atlas

Operators · Magic state distillation

Magic T state

The single-qubit magic state |T⟩ = T|+⟩, the standard resource state consumed by gate teleportation to implement a fault-tolerant non-Clifford T gate.

Exact & formalUpdated

View frozen graph

q[0]Step 1 of 2 · H · on q[0]HStep 2 of 2 · T · on q[0]T

2 steps across 1 wire. Hover a step, or press play to go through them in order.

Expected outcomes

  • 050%
  • 150%
  • Steps2
  • Wires1
  • Qubits1
  • Depth2 gates (H, T)
  • Bloch vector(1/√2, 1/√2, 0)
  • Papers1
Native
magic_t_state.py
from qiskit import QuantumCircuit
from qiskit.quantum_info import Statevector

qc = QuantumCircuit(1)
qc.h(0)
qc.t(0)

sv = Statevector.from_instruction(qc)
print(sv)  # [0.7071+0.j, 0.5+0.5j]  ==  (|0> + e^{i*pi/4}|1>)/sqrt(2)
print("Bloch:", sv.data)


FINAL_CIRCUIT = qc

References

Exact & formal
  • Direct mathematics
  • Verified by construction
  • Peer-reviewed paper
Method
The prepared state's amplitudes (1/√2, e^{iπ/4}/√2) were compared exactly against the T-state definition, and its Bloch vector (1/√2, 1/√2, 0) was checked to lie strictly between the X, Y stabilizer axes — confirming it is not stabilized by any single Pauli, which is the defining property that makes it 'magic.'
Result
Pass · the state matches T|+⟩ exactly and its stabilizer is a non-Pauli operator, consistent with nonzero stabilizer Rényi entropy / negative Wigner-function weight.
Universal Quantum Computation with ideal Clifford gates and noisy ancillas ↗
Kind
curated reference
Reviewed by
Leona Quantum curation pass
License
CC BY 4.0-compatible reference metadata
magic statet-gatefault tolerancenon-clifford

Atlas stars stay in the public catalog. Saving this entry to your workspace starts an unstarred private copy.