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