Skip to content

dq.sigmaz

sigmaz() -> Array

Returns the Pauli \(\sigma_z\) operator.

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

Returns

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

Examples

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