convert_ket2DM: convert_ket2DM

Description Usage Arguments Value Examples

View source: R/convert_ket2DM.R

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

1

Arguments

v

An input ket

Value

Density matrix representing same state as input ket

Examples

1

Example output

Attaching package:QuantumOpsThe following object is masked frompackage:stats:

    dist

The following objects are masked frompackage:base:

    I, norm, single

     [,1] [,2]
[1,] 1+0i 0+0i
[2,] 0+0i 0+0i

QuantumOps documentation built on Feb. 3, 2020, 5:07 p.m.