Skip to content

dq.sigmax

sigmax() -> Array

Returns the Pauli \(\sigma_x\) operator.

It is defined by \(\sigma_x = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}\).

Returns

(array of shape (2, 2)) Pauli \(\sigma_x\) operator.

Examples

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