Unit oper.m
Returns a unit operator in the current formalism and basis. The operator has dimension equal to the basis size in sphten-liouv formalism, the dimension equal to the product of all spin multiplicities in zeeman-hilb formalism, and the dimension of square of the product of all spin multiplicities in zeeman-liouv formalism.
Syntax
A=unit_oper(spin_system)
Arguments
spin_system - Spinach data object containing basis
information (call basis.m first)
Outputs
A - a sparse unit matrix of appropriate
dimension
See also
unit_state.m, mprealloc.m, operator.m, state.m
Version 2.3, authors: Ilya Kuprov, Dmitry Savostyanov