dq.sigmay
sigmay(*, layout: Layout | None = None) -> QArray
Returns the Pauli \(\sigma_y\) operator.
It is defined by \(\sigma_y = \begin{pmatrix} 0 & -i \\ i & 0 \end{pmatrix}\).
Parameters
-
layout
–
Matrix layout (
dq.dense
,dq.dia
orNone
).
Returns
(qarray of shape (2, 2)) Pauli \(\sigma_y\) operator.
Examples
>>> dq.sigmay()
QArray: shape=(2, 2), dims=(2,), dtype=complex64, layout=dia, ndiags=2
[[ â‹… 0.-1.j]
[0.+1.j â‹… ]]