GateIntermediateRotation and phase gates

T† T-dagger Gate

T-dagger Gate

T† is the inverse of T: it multiplies the |1⟩ amplitude by e^{−iπ/4}, a −π/4 rotation about z.

The unitary matrix

Computing the matrix with the simulation engine…

Computed by the same engine that runs the circuits. Multi-qubit gates are shown in textbook order (control qubit first).

Its effect on the basis states

InputOutput
$|0\rangle$$|0\rangle$
$|1\rangle$$e^{-i\pi/4}|1\rangle$

Useful identities

  • $TT^\dagger=I$
  • $(T^\dagger)^2=S^\dagger$
  • $T^\dagger=P(-\pi/4)$

On the Bloch sphere: rotation by −π/4 about the z axis

$$T^\dagger=\begin{pmatrix}1&0\\0&e^{-i\pi/4}\end{pmatrix}$$

The $T^\dagger$ gate (T-dagger) is the conjugate of the T gateT Gate: The T gate multiplies the amplitude of 1⟩ by e^iπ/4; it is an eighth of a turn about z, and makes the Clifford set approximately universal. and its inverse: $T^\dagger|0\rangle=|0\rangle$ and $T^\dagger|1\rangle=e^{-i\pi/4}|1\rangle$, i.e. $T^\dagger=P(-\pi/4)$ and $TT^\dagger=I$.

On the Bloch sphereBloch Sphere: The Bloch sphere is a geometric representation of single-qubit states: pure states are points on the surface of a unit sphere, mixed states are points inside it, and sin… it rotates the state by $-\pi/4$ about the $z$ axis. The computational measurement probabilities do not change; only the relative phase between $|0\rangle$ and $|1\rangle$ changes.

Why do we need it as a separate gate? Because mathematically $T^\dagger=T^7$, but writing it as seven T gates would be very wasteful; so libraries include $T^\dagger$ as a basic gate. It appears frequently in decompositions of multi-qubit gates: for example, the standard decomposition of the Toffoli gateToffoli Gate: The Toffoli gate flips the target qubit if both control qubits are in 1⟩; it is universal for reversible classical computation. uses $T$ and $T^\dagger$ with six CNOT gates, in which unwanted phases are cancelled by alternating $T$ and $T^\dagger$, so that in the end only the desired phase on the state $|11\rangle$ of the two control qubits remains.

A general rule: the inverse of a quantum circuit is the circuit in reverse order with each gate replaced by its conjugate ($T\to T^\dagger$, $S\to S^\dagger$, $R_Z(\theta)\to R_Z(-\theta)$). Qiskit uses this rule in the inverse() method.

Example

Check that $T^\dagger$ undoes $T$ on $|+\rangle$:
$$T|+\rangle=\tfrac{1}{\sqrt2}(|0\rangle+e^{i\pi/4}|1\rangle),\qquad T^\dagger T|+\rangle=\tfrac{1}{\sqrt2}(|0\rangle+e^{-i\pi/4}e^{i\pi/4}|1\rangle)=|+\rangle.$$
And applying $T^\dagger$ twice: $(T^\dagger)^2=\mathrm{diag}(1,e^{-i\pi/2})=S^\dagger$.

Live simulation

Loading the simulator…

In code

Qiskit
qc.tdg(0)
OpenQASM 2
tdg q[0];

Related topics

References

  1. Michael A. Nielsen; Isaac L. Chuang (2010). Quantum Computation and Quantum Information (10th Anniversary Edition). Cambridge University Press doi:10.1017/CBO9780511976667The standard reference for quantum computing; the Crossref record gives 2012 for the Cambridge Core online edition.
  2. IBM Quantum (2025). Qiskit SDK API documentation. IBM Quantum Documentation quantum.cloud.ibm.com