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