dq.sgate
sgate() -> Array
Returns the \(\text{S}\) gate.
It is defined by \(\text{S} = \begin{pmatrix} 1 & 0 \\ 0 & i \end{pmatrix}\).
Returns
(array of shape (2, 2)) \(\text{S}\) gate.
Examples
>>> dq.sgate()
Array([[1.+0.j, 0.+0.j],
[0.+0.j, 0.+1.j]], dtype=complex64)