Share via


SX operation

Fully qualified name: Std.Intrinsic.SX

operation SX(qubit : Qubit) : Unit is Adj + Ctl

Summary

Applies the square root of X gate to a single qubit.

Input

qubit

Qubit to which the gate should be applied.

Remarks

$$ \begin{align} SX \mathrel{:=} \begin{bmatrix} \frac{1}{2} + \frac{i}{2} & \frac{1}{2} - \frac{i}{2} \\ \frac{1}{2} - \frac{i}{2} & \frac{1}{2} + \frac{i}{2} \end{bmatrix}. \end{align} $$