Skip to main content

RXGate

Function RXGate 

Source
pub fn RXGate() -> UnitaryExpression
Expand description

The single-qubit RX gate (rotation around the X-axis).

$$ RX(\theta) = \begin{pmatrix} \cos(\theta/2) & -i\sin(\theta/2) \\ -i\sin(\theta/2) & \cos(\theta/2) \end{pmatrix} $$