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

View source: R/qm_simulation.R

gen_IR Documentation

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)

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".

Value

I product operator matrix.


spant documentation built on Oct. 23, 2023, 5:06 p.m.