Difference between revisions of "Hamiltonian.m"
(Add NOTOC to Spinach function page header) |
m (Rename Arguments section heading to Parameters) |
||
| Line 7: | Line 7: | ||
[I,Q]=hamiltonian(spin_system,operator_type) | [I,Q]=hamiltonian(spin_system,operator_type) | ||
| − | == | + | ==Parameters== |
In Liouville space, operator_type can be set to | In Liouville space, operator_type can be set to | ||
Revision as of 17:49, 5 June 2026
Hamiltonian operator or superoperator and its rotational decomposition.
Syntax
[I,Q]=hamiltonian(spin_system,operator_type)
Parameters
In Liouville space, 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 this parameter is ignored.
Outputs
H - rotationally invariant part of the Hamiltonian
Q - irreducible components of the anisotropic part,
use orientation.m to get the full Hamiltonian
at each specific orientation
Notes
- All spin interactions that go into the Hamiltonian are specified during the spin system setup - see the spin system specification section of the online manual.
- Descriptor and operator generation are parallelised.
See also
relaxation.m, kinetics.m, operator.m, state.m, equilibrium.m, orientation.m
Version 2.2, authors: Ilya Kuprov, Luke Edwards, Hannah Hogben, Dmitry Savostyanov