Hamiltonian.m
Hamiltonian operator / superoperator and its rotational decomposition. Descriptor and operator generation is parallelized. Syntax:
[H,Q]=hamiltonian(spin_system,operator_type)
In Liouville space calculations, operator_type can be set to:
'left' - produces left side product superoperator
'right' - produces right side product superoperator
'comm' - produces commutation superoperator (default)
'acomm' - produces anticommutation superoperator
In Hilbert space calculations operator_type parameter is ignored.
Outputs:
H - isotropic part
Q - twenty-five matrices giving irreducible
components of the anisotropic part
Note: this function returns the full rotational basis that contains information about all orientations. Use orientation.m to gene- rate the Hamiltonian at a specific orientation.