Difference between revisions of "Ham2nqi.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Create documentation page from Spinach function header)
 
(Expand See also links to related Spinach functions and docs)
Line 31: Line 31:
  
 
==See also==
 
==See also==
[[Main_Page]]
+
* [[Spin_system_specification]]
 +
* [[Kernel_utilities]]
 +
* [[mat2ias.m]]
 +
* [[sphten2mat.m]]
 +
* [[mat2sphten.m]]
 +
* [[Main_Page]]
 +
 
 +
 
  
 
''Version 2.11, authors: [[Ilya Kuprov]]''
 
''Version 2.11, authors: [[Ilya Kuprov]]''

Revision as of 21:20, 22 February 2026

Converts a single-spin Hamiltonian back into the Zeeman and quadrupolar interaction parameters that

Syntax

                   [omega,Q]=ham2nqi(H)

Arguments

       H - single-spin Hamiltonian written in
           the Zeeman basis for a spin of any
           multiplicity

Outputs

       omega - Larmor frequencies, rad/s
           Q - symmetric traceless quadrupolar
               coupling tensor, rad/s
    The outputs are returned such that:
       H = omega(1)*Sx + omega(2)*Sy + omega(3)*Sz +
                + [Sx Sy Sz]*Q*[Sx Sy Sz].';
    An error is produced if the Hamilonian contains
    any terms (for example, cubic) beyond those, or
    if it is not Hermitian and traceless.

Examples

See examples in the Spinach distribution relevant to this function.

Notes

This page was generated from the function header in the Spinach repository.

See also


Version 2.11, authors: Ilya Kuprov