T Gate

The T gate is a single-qubit operation given by:
 T=(100exp(iπ4))\ T = \begin{pmatrix} 1 & 0 \ 0 & \exp \left ( \frac{i \pi}{4} \right ) \end{pmatrix}

The T gate is related to the S gate by the relationship  S=T2\ S=T^{2}.

The conjugate transpose of the T gate is defined by:  T=(100exp(iπ4))\ T^{\dagger} = \begin{pmatrix} 1 & 0 \ 0 & \exp \left ( \frac{-i \pi}{4} \right ) \end{pmatrix}

Examples:

        
          T q[0] # execute T gate on qubit 0
Tdag q[1:2,5] # execute transpose conjugate of T gate on qubits 1,2 and 5