convert_ket2DM {QuantumOps}R Documentation

convert_ket2DM

Description

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

Examples

 convert_ket2DM( ket(1,0) )

[Package QuantumOps version 3.0.1 Index]