Module qubit

Source
Expand description

Represents a single qubit.

Structs§

Qubit
Represents a single qubit. The state is stored as a 2-element array of complex numbers [alpha, beta], corresponding to the state |ψ⟩ = α|0⟩ + β|1⟩.