ket: ket

Description Usage Arguments Value Examples

View source: R/ket.R

Description

Returns a normalized ket (column vector)

Usage

1

Arguments

...

Variable number of numbers representing the amplitudes of the ket

Value

Column vector containing normalized amplitudes of a ket

Examples

1
 ket(1,0,1,2)

Example output

Attaching package: ‘QuantumOps’

The following object is masked from ‘package:stats’:

    dist

The following objects are masked from ‘package:base’:

    I, norm, single

             [,1]
[1,] 0.4082483+0i
[2,] 0.0000000+0i
[3,] 0.4082483+0i
[4,] 0.8164966+0i

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

Related to ket in QuantumOps...