Rx operation

Fully qualified name: Std.Intrinsic.Rx

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

Summary

Applies a rotation about the x-axis by a given angle.

Input

theta

Angle about which the qubit is to be rotated.

qubit

Qubit to which the gate should be applied.

Remarks

$$ \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} $$

Equivalent to:

R(PauliX, theta, qubit);