mindquantum.core.gates.RY

View Source On Gitee
class mindquantum.core.gates.RY(pr)[source]

Rotation gate around y-axis. More usage, please see RX.

\[\begin{split}{\rm RY}=\begin{pmatrix}\cos(\theta/2)&-\sin(\theta/2)\\ \sin(\theta/2)&\cos(\theta/2)\end{pmatrix}\end{split}\]
Parameters

pr (Union[int, float, str, dict, ParameterResolver]) – the parameters of parameterized gate, see above for detail explanation.

get_cpp_obj()[source]

Construct cpp obj.