mindquantum.core.gates.RZ#
- class mindquantum.core.gates.RZ(pr)#
Rotation gate around z-axis. More usage, please see
RX.\[\begin{split}{\rm RZ}=\begin{pmatrix}\exp(-i\theta/2)&0\\ 0&\exp(i\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()#
Construct cpp obj.