Learn R Programming

spant (version 3.3.0)

gen_I: Generate the I product operator for a single spin.

Description

Generate the I product operator for a single spin.

Usage

gen_I(n, spin_num, op)

Value

I product operator matrix.

Arguments

n

spin index number for the required operator.

spin_num

vector of spin numbers in the system.

op

operator, one of "x", "y", "z", "p", "m".