rz

guppylang.std.qsystem.rz(q: qubit, angle: angle) None[source]

rz gate command.

\[\begin{split}\mathrm{Rz}(\theta)= \exp(\frac{- i \theta}{2} Z)= \begin{pmatrix} e^{\frac{-i \theta}{2}} & 0 \\ 0 & e^{\frac{i \theta}{2}} \end{pmatrix}\end{split}\]