inner: inner

Description Usage Arguments Value Examples

View source: R/inner.R

Description

Finds the inner product of two kets, <w|v>. w and v can be the same

Usage

1
inner(w,v)

Arguments

w

ket (column vector) that is the left side of the innter product, converted to a bra before the dot product

v

ket (column vector) that is the right side of the inner product

Value

Value of the inner product

Examples

1
 inner(ket(1,0),ket(1,1))

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

Related to inner in QuantumOps...