mindquantum.core.gates.RY# class mindquantum.core.gates.RY(pr)# 围绕y轴的旋转门。更多用法,请参见 RX。 \[\begin{split}{\rm RY}=\begin{pmatrix}\cos(\theta/2)&-\sin(\theta/2)\\ \sin(\theta/2)&\cos(\theta/2)\end{pmatrix}\end{split}\] 参数: pr (Union[int, float, str, dict, ParameterResolver]) - 参数化门的参数,详细解释请参见上文。 get_cpp_obj()# 返回该门的c++对象。