H operation

Applies the Hadamard transformation to a single qubit. \begin{align} H \mathrel{:=} \frac{1}{\sqrt{2}} \begin{bmatrix} 1 & 1 \\ 1 & -1 \end{bmatrix}. \end{align}

operation H (qubit : Qubit) : Unit
Functors
Adjoint Controlled

Input

qubit
Qubit

Qubit to which the gate should be applied.

Output

Unit