dq.tgate
tgate() -> QArray
Returns the \(\text{T}\) gate.
It is defined by \(\text{T} = \begin{pmatrix} 1 & 0 \\ 0 & e^{i\frac{\pi}{4}} \end{pmatrix}\).
Returns
(qarray of shape (2, 2)) \(\text{T}\) gate.
Examples
>>> dq.tgate()
QArray: shape=(2, 2), dims=(2,), dtype=complex64, layout=dense
[[1. +0.j 0. +0.j ]
[0. +0.j 0.707+0.707j]]