T-dagger gate

The inverse of T: an eighth-turn of phase in the opposite direction.

Phase · 1 qubit · reviewed November 2026

Matrix

[ 1   0         ]
[ 0   e^(−iπ/4) ]

What it does

|1⟩→e^(−iπ/4)|1⟩

In plain words

T† undoes T. It appears in the standard decomposition of the Toffoli gate, which uses both T and T† gates.

Identities

  • T·T† = I
  • T†·T† = S†

Where it is used

  • Toffoli decomposition
  • Undoing a T

Code

# Qiskit
qc.tdg(0)

// OpenQASM 2.0
tdg q[0];

Qiskit prints qubit 0 on the right of a bitstring. The builder prints it on the left.

Related gates

Questions

Does T† cost the same as T?

In standard schemes yes, both count towards the T count.

Try the T† gate in the Circuit Builder →