Difference between revisions of "Ham2nqi.m"
m (Rename Arguments section heading to Parameters) |
(Update function See also links and function index membership) |
||
| Line 31: | Line 31: | ||
==See also== | ==See also== | ||
| − | + | [[mat2ias.m]], [[sphten2mat.m]], [[mat2sphten.m]], [[anas2mat.m]], [[ang2cgsppm.m]], [[axrh2mat.m]], [[castep2nqi.m]], [[cgsppm2ang.m]], [[conmat.m]], [[dictum.m]], [[dihedral.m]], [[eeqq2nqi.m]], [[frac2cart.m]], [[g2freq.m]], [[gauss2mhz.m]], [[hartree2joule.m]], [[hz2icm.m]], [[hz2ppm.m]], [[ias2mat.m]], [[mat2axrh.m]], [[mhz2gauss.m]], [[mt2hz.m]], [[offsetof.m]], [[ppm2hz.m]], [[spsk2mat.m]], [[tsm2param.m]], [[xyz2dd.m]], [[zfs2mat.m]], [[Spin_system_specification]], [[Kernel_utilities]], [[Main_Page]] | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
''Version 2.11, authors: [[Ilya Kuprov]]'' | ''Version 2.11, authors: [[Ilya Kuprov]]'' | ||
Latest revision as of 19:37, 6 June 2026
Converts a single-spin Hamiltonian back into the Zeeman and quadrupolar interaction parameters that had been used to generate it.
Syntax
[omega,Q]=ham2nqi(H)
Parameters
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
mat2ias.m, sphten2mat.m, mat2sphten.m, anas2mat.m, ang2cgsppm.m, axrh2mat.m, castep2nqi.m, cgsppm2ang.m, conmat.m, dictum.m, dihedral.m, eeqq2nqi.m, frac2cart.m, g2freq.m, gauss2mhz.m, hartree2joule.m, hz2icm.m, hz2ppm.m, ias2mat.m, mat2axrh.m, mhz2gauss.m, mt2hz.m, offsetof.m, ppm2hz.m, spsk2mat.m, tsm2param.m, xyz2dd.m, zfs2mat.m, Spin_system_specification, Kernel_utilities, Main_Page
Version 2.11, authors: Ilya Kuprov