H operation
Fully qualified name: Std.Intrinsic.H
operation H(qubit : Qubit) : Unit is Adj + Ctl
Summary
Applies the Hadamard transformation to a single qubit.
Input
qubit
Qubit to which the gate should be applied.
Remarks
$$ \begin{align} H \mathrel{:=} \frac{1}{\sqrt{2}} \begin{bmatrix} 1 & 1 \\ 1 & -1 \end{bmatrix} \end{align} $$