z

guppylang.std.quantum.z(q: qubit) None[source]

Z gate.

\[\begin{split}\mathrm{Z}= \begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}\end{split}\]