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.


martin3141/spant documentation built on April 14, 2024, 4:15 a.m.