ry

guppylang.std.quantum.ry(q: qubit, angle: angle) None[source]

Ry gate.

\[\begin{split}\mathrm{Ry}(\theta)= \begin{pmatrix} \cos(\frac{\theta}{2}) & -\sin(\frac{ \theta}{2}) \\ \sin(\frac{ \theta}{2}) & \cos(\frac{ \theta}{2}) \end{pmatrix}\end{split}\]