Learn R Programming

QuantumOps (version 3.0.1)

convert_ket2DM: 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

Run this code
# NOT RUN {
 convert_ket2DM( ket(1,0) )
# }

Run the code above in your browser using DataLab