Converts a ket (pure) description of quantum state and creates a density matrix representation of the same state. Density matrices can represent both pure and mixed states.
Usage
convert_ket2DM(v)
Arguments
v
An input ket
Value
Density matrix representing same state as input ket