T operation

Applies the π/8 gate to a single qubit. \begin{align} T \mathrel{:=} \begin{bmatrix} 1 & 0 \\ 0 & e^{i \pi / 4} \end{bmatrix}. \end{align}

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

Input

qubit
Qubit

Qubit to which the gate should be applied.

Output

Unit