Crate bra_ket Copy item path Source c A convenience macro for complex number construction. exp A convenience macro to calculate the complex exponential of the argument expi A convenience macro to calculate the complex exponential of i times the argument DensityMatrix A density matrix describing an in general mixed quantum state. Program A quantum program, encoding the sequence of qubit operations to be performed. StateVector A state vector describing a pure quantum state. Operations The operations which can be performed on either the state vector or density matrix describing the quantum state
as part of a quantum program. PI pi SQRT_2 The square root of two StateTraits The traits every quantum state must possess to permit it being acted upon by a quantum program.
In our case both the StateVector and DensityMatrix implement these traits. qft creates a program which performs the quantum fourier transform Angle An angle in radians CVector A complex vector Complex A complex number Int An integer number RVector A real vector Real A Real number