Crate bra_ket

Crate bra_ket 

Source

Macros§

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

Structs§

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.

Enums§

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.

Statics§

PI
pi
SQRT_2
The square root of two

Traits§

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.

Functions§

qft
creates a program which performs the quantum fourier transform

Type Aliases§

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