← Atlas

Gates · Single-qubit gate

T phase gate

A non-Clifford phase gate that marks the boundary between a compact Clifford set and universal synthesis.

Exact & formalUpdated

View frozen graph

A small worked example, computed in your browser. It is not a result from this record's papers.

T, an eighth turn of phase

One qubit, put into |+⟩ = (|0⟩ + |1⟩)/√2 first, because on |0⟩ or |1⟩ alone this gate changes nothing a measurement or another gate can ever detect.

q0Step 1 of 2 · HHStep 2 of 2 · TT

Step 1 of 2 · H

Probability of each outcome after this step

  • 050%
  • 150%
  1. Puts the qubit into an equal superposition. Without this there is no second amplitude for the gate's phase to be measured against, and a phase on the whole state is not observable.

    Probability spreads from 1 outcome to 2. All 2 are equally likely.

  2. Multiplies the |1⟩ half of the state by a phase of π/4, and leaves |0⟩ alone. That is half of S again. T is also the gate that takes a Clifford circuit out of classical reach, which is why fault-tolerant cost is counted in T gates. The two outcomes stay equally likely — the difference is carried entirely in the phase between them, which is what the panel beside the bars shows.

    The outcome probabilities do not move at all. What this step changes is phase — 2 distinct relative phases across the state now — which no measurement can see until a later step turns it back into probability.

Readout Measuring gives 0 or 1, each half the time — exactly as it did before the gate. A single measurement of this qubit cannot detect this gate at all. Its effect becomes visible only when the phase is turned back into probability by a later interference step, which is what every algorithm that uses it does.

Open in Studio
  • Steps1
  • Wires1
  • Qubits1
  • Depth1 gate
  • Phaseπ/4
  • Papers1

The TT gate is T=(100eiπ/4)T=\begin{pmatrix}1&0\\0&e^{i\pi/4}\end{pmatrix}, applying a π/4\pi/4 phase: T∣0⟩=∣0⟩T|0\rangle=|0\rangle, T∣1⟩=eiπ/4∣1⟩T|1\rangle=e^{i\pi/4}|1\rangle. Since (eiπ/4)2=eiπ/2=i\left(e^{i\pi/4}\right)^2=e^{i\pi/2}=i, direct matrix multiplication gives T2=ST^2=S and T8=IT^8=I, exactly the power relations this record checks. Unlike HH, SS, XX, YY, ZZ, TT is not a Clifford gate: conjugating XX by TT does not map it to another Pauli operator, which is precisely why {H,T}\{H, T\} is universal for quantum computation while Clifford-only circuits are efficiently classically simulable (Gottesman–Knill). This makes TT the standard "expensive" non-Clifford resource in fault-tolerant compilation: magic-state distillation exists specifically to produce high-fidelity TT gates from many noisy ones, since — as this record's own caveat notes — the ideal unitary identity above says nothing about a given device's hardware fidelity or noise.

References

Exact & formal
  • Unitary / matrix equivalence
  • Peer-reviewed paper
Method
Evaluate the standard π/4 phase matrix and repeated powers.
Result
Pass · T applies a π/4 phase to |1⟩.
Caveat
This record verifies the ideal unitary relation; hardware fidelity and noise are not claimed.
OpenQASM 3 standard gate set ↗
Kind
curated reference
Reviewed by
Leona Quantum curation pass
License
CC BY 4.0-compatible reference metadata
phasenon-cliffordfault tolerant

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