共用方式為


Rx 作業

完整名稱:Std.Intrinsic.Rx

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

總結

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

輸入

西塔

要旋轉量子位的角度。

qubit

應套用閘道的量子位。

言論

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

相當於:

R(PauliX, theta, qubit);