Difference between revisions of "Hamiltonian.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(→‎See also)
(Sync syntax/arguments/outputs with current Spinach source)
Line 1: Line 1:
−
{{DISPLAYTITLE:hamiltonian.m}}
+
{{DISPLAYTITLE:hamiltonian.m}} __NOTOC__
 +
 
 
Hamiltonian operator or superoperator and its rotational decomposition.
 
Hamiltonian operator or superoperator and its rotational decomposition.
  
 
==Syntax==
 
==Syntax==
  
−
    [H,Q]=hamiltonian(spin_system,operator_type)
+
[I,Q]=hamiltonian(spin_system,operator_type)
  
 
==Arguments==
 
==Arguments==
 +
 
In Liouville space, operator_type can be set to
 
In Liouville space, operator_type can be set to
  
Line 21: Line 23:
 
==Outputs==
 
==Outputs==
  
−
    H   - rotationally invariant part of the Hamiltonian
+
I   - rotationally invariant part of the Hamiltonian
−
+
 
 
     Q  - irreducible components of the anisotropic part,
 
     Q  - irreducible components of the anisotropic part,
−
           use [[orientation.m]] to get the full Hamiltonian
+
           use orientation.m to get the full Hamiltonian
 
           at each specific orientation
 
           at each specific orientation
 +
 +
Note: the code has a few rather eccentric blocks that bring the
 +
      memory footprint to the absolute minimum and work around
 +
      the sparse matrix addition efficiency problem.
 +
 +
ilya.kuprov@weizmann.ac.il
 +
ledwards@cbs.mpg.de
 +
hannah.hogben@chem.ox.ac.uk
 +
d.savostyanov@soton.ac.uk
  
 
==Notes==
 
==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.
 
# 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.
 
# Descriptor and operator generation are parallelised.
  
 
==See also==
 
==See also==
 +
 
[[relaxation.m]], [[kinetics.m]], [[operator.m]], [[state.m]], [[equilibrium.m]], [[orientation.m]]
 
[[relaxation.m]], [[kinetics.m]], [[operator.m]], [[state.m]], [[equilibrium.m]], [[orientation.m]]
  
  
 
''Version 2.2, authors: [[Ilya Kuprov]], [[Luke Edwards]], [[Hannah Hogben]], [[Dmitry Savostyanov]]''
 
''Version 2.2, authors: [[Ilya Kuprov]], [[Luke Edwards]], [[Hannah Hogben]], [[Dmitry Savostyanov]]''

Revision as of 14:03, 5 April 2026


Hamiltonian operator or superoperator and its rotational decomposition.

Syntax

[I,Q]=hamiltonian(spin_system,operator_type)

Arguments

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

I - 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
Note: the code has a few rather eccentric blocks that bring the
      memory footprint to the absolute minimum and work around
      the sparse matrix addition efficiency problem.
ilya.kuprov@weizmann.ac.il
ledwards@cbs.mpg.de
hannah.hogben@chem.ox.ac.uk
d.savostyanov@soton.ac.uk

Notes

  1. 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.
  2. 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