mindquantum.core.gates.Ryz
- class mindquantum.core.gates.Ryz(pr)[源代码]
Ryz 门。更多用法,请参见
RX
。\[\begin{split}{\rm Ryz_\theta}=\exp{\left(-i\frac{\theta}{2} Z\otimes Y\right)} =\begin{pmatrix} \cos{\frac{\theta}{2}} & -\sin{\frac{\theta}{2}} & 0 & 0\\ \sin{\frac{\theta}{2}} & \cos{\frac{\theta}{2}} & 0 & 0\\ 0 & 0 & \cos{\frac{\theta}{2}} & \sin{\frac{\theta}{2}}\\ 0 & 0 & -\sin{\frac{\theta}{2}} & \cos{\frac{\theta}{2}}\\ \end{pmatrix}\end{split}\]- 参数:
pr (Union[int, float, str, dict, ParameterResolver]) - 参数化门的参数,详细解释请参见上文。