完全限定名称:Std.Intrinsic.Rz
operation Rz(theta : Double, qubit : Qubit) : Unit is Adj + Ctl
总结
按给定角度应用有关 z轴的旋转。
输入
西塔
要旋转量子比特的角度。
量子比特
应向其应用门的量子位。
言论
$$ \begin{align} R_z(\theta) \mathrel{:=} e^{-i \theta \sigma_z / 2} = \begin{bmatrix} e^{-i \theta / 2} & 0 \\ 0 & e^{i \theta / 2} \end{bmatrix}。 \end{align} $$
等效于:
R(PauliZ, theta, qubit);