共用方式為


Ry 作業

完整名稱:Std.Intrinsic.Ry

operation Ry(theta : Double, qubit : Qubit) : Unit is Adj + Ctl

總結

依指定角度套用 y軸的旋轉。

輸入

西塔

要旋轉量子位的角度。

qubit

應套用閘道的量子位。

言論

$$ \begin{align} R_y(\theta) \mathrel{:=} e^{-i \theta \sigma_y / 2} = \begin{bmatrix} \cos \frac{\theta}{2} & -\sin \frac{\theta}{2} \\ \sin \frac{\theta}{2} & \cos \frac{\theta}{2} \end{bmatrix}。 \end{align} $$

相當於:

R(PauliY, theta, qubit);