Skip to content

dq.tgate

tgate() -> Array

Returns the \(\text{T}\) gate.

It is defined by \(\text{T} = \begin{pmatrix} 1 & 0 \\ 0 & e^{i\frac{\pi}{4}} \end{pmatrix}\).

Returns

(array of shape (2, 2)) \(\text{T}\) gate.

Examples

>>> dq.tgate()
Array([[1.   +0.j   , 0.   +0.j   ],
       [0.   +0.j   , 0.707+0.707j]], dtype=complex64)