powered by
Generate the I product operator for a single spin.
gen_I(n, spin_num, op)
I product operator matrix.
spin index number for the required operator.
vector of spin numbers in the system.
operator, one of "x", "y", "z", "p", "m".