mindquantum.core.gates.RZ

View Source On Gitee
class mindquantum.core.gates.RZ(pr)[source]

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()[source]

Construct cpp obj.