Hamiltonian.m

From Spinach Documentation Wiki
Revision as of 14:10, 1 September 2015 by Kuprov (talk | contribs) (Created page with "Hamiltonian operator / superoperator and its rotational decomposition. Descriptor and operator generation is parallelized. Syntax: [H,Q]=hamiltonian(spin_syst...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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.