Skip to content

dq.sgate

sgate() -> QArray

Returns the S\text{S} gate.

It is defined by S=(100i)\text{S} = \begin{pmatrix} 1 & 0 \\ 0 & i \end{pmatrix}.

Returns

(qarray of shape (2, 2)) S\text{S} gate.

Examples

>>> dq.sgate()
QArray: shape=(2, 2), dims=(2,), dtype=complex64, layout=dense
[[1.+0.j 0.+0.j]
 [0.+0.j 0.+1.j]]