Learn R Programming

QuantumOps (version 3.0.1)

inner: inner

Description

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

Usage

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

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

Run the code above in your browser using DataLab