torchspin.lft#

The ligand-field tools have a user guide, torchspin.lft: ligand-field tools (Telser’s programs, differentiable). This page is the module reference.

Ligand-field tools: Josh Telser’s programs as differentiable torchspin modules.

Ported from telser-tools (telser_tools_diff). Modules carry Telser’s program names (the ligand-field constructors lft.aom, lft.aom_isotropic, lft.crystal_field, … and * lft.dn2sys: are also exported at package level):

  • lft.ddn: d^n ligand-field levels and doublet g (DDN)

  • lft.ddnloop: levels and transitions vs field magnitude, angle or a parameter (DDNLOOP)

  • lft.ddnpow: powder EPR / FDMR directly from the d^n model (DDNPOW)

  • lft.ddpowh: spin-Hamiltonian powder EPR/FDMR/ENDOR/NMR at field points, Telser’s level strain (DDPOWH)

  • lft.ddpowj: the same for exchange-coupled dimers, product strain weights (DDPOWJ)

  • lft.ddnfit: fit d^n parameters to band energies (DDNFIT)

  • lft.ddnsus: chi(T), chi T, mu_eff; and fits to them (DDNSUS)

  • lft.ddnmag: M(B, T); and fits to it (DDNMAG)

  • lft.dlsd5: low-spin d5 g tensor and its inverses (DLSD5)

  • lft.dipole: dipolar hyperfine / electron-electron couplings, STO multipole form (DIPOLE)

  • lft.dtd: 14N quadrupole, Townes-Dailey (DTD)

  • lft.dpn: p^n ligand-field levels and doublet g (DPN); its own p-shell AOM/crystal field

  • lft.dpnfit: fit p^n parameters to band energies (DPNFIT)

  • lft.dsoxf: single term + spin-orbit + low-symmetry field, d and f shells (DSOXF)

  • lft.tanabe_sugano: Tanabe-Sugano blocks and diagrams (DTANSUG)

  • lft.fit: joint fits of one model to bands, g, chi, M and EPR spectra (exact Jacobians)

  • lft.plot: level, Tanabe-Sugano, Zeeman/angle/road-map, chi T, M, powder and fit plots (cm^-1 default)

  • lft.grids: field-direction grids for magnetometry (Gauss hemisphere, DDN igloo, …)

  • lft.ligand_field: AOM, Ballhausen crystal field, orbital energies (also exported here)

  • lft.bridge: dn2sys: ligand-field parameters -> SpinSystem with full g

  • lft.telser2torchspin: Telser spin-Hamiltonian inputs (DDZHQ, DDPOWH, DJDZE, DDPOWJ) -> SpinSystem/Experiment

  • lft.units: graph-safe unit factors

Units follow torchspin at every public boundary (MHz, mT, GHz, radians; molar susceptibility in m^3/mol), with units= on request ('cm^-1', 'K', 'eV', …). Ligand-field plots default to cm^-1. The engines work in cm^-1 internally.

Thermal averages use torchspin.lft._linalg.thermal_average (Daleckii-Krein derivatives), not torchspin._linalg.eigh, whose gauge-zeroing backward is right for spectra but drops f’(lambda) tr(dH A) inside degenerate levels.

lft.ddn

DDN: differentiable d^n ligand-field Hamiltonian, levels, and doublet g tensor.

lft.ddnloop

DDNLOOP: d^n levels and EPR transitions over field, angle and parameter scans.

lft.ddnpow

DDNPOW: powder EPR (field-swept and frequency-domain) directly from the complete d^n model.

lft.ddpowh

DDPOWH: powder EPR, FDMR, ENDOR and NMR/NQR spectra at field points, with Telser's level strain.

lft.ddpowj

DDPOWJ: field-swept powder EPR of an exchange-coupled dimer, with Telser's product level strain.

lft.ddnfit

DDNFIT: least-squares fit of d^n ligand-field parameters to band energies, with the exact Jacobian.

lft.ddnsus

DDNSUS: differentiable molar susceptibility chi(T), chi T and mu_eff of a d^n ion.

lft.ddnmag

DDNMAG: differentiable molar magnetization M(B, T) of a d^n ion from the full ligand-field model.

lft.dlsd5

DLSD5: low-spin d5 (t2g^5) g values <-> ligand field, differentiable (Telser's DLSD5).

lft.dipole

DIPOLE: dipolar couplings of a metal 3d Slater orbital to a nucleus or a second electron (Telser's DIPOLE).

lft.dtd

DTD: Townes-Dailey analysis of a 14N quadrupole tensor, differentiable (Telser's DTD).

lft.dpn

DPN: differentiable complete-basis p^n ligand-field Hamiltonian, levels, and doublet g tensor.

lft.dpnfit

DPNFIT: fit p^n ligand-field parameters to observed level (band) energies, with an exact Jacobian.

lft.dsoxf

DSOXF: one free-ion term (2S+1)L of d^n or f^n in a crystal field, differentiable.

lft.tanabe_sugano

Tanabe-Sugano: cubic d^n levels and diagrams, differentiable (Telser's DTANSUG via telser-tools).

lft.fit

Joint least-squares fits of ONE d^n ligand-field model to several kinds of data, with exact Jacobians.

lft.plot

Plots of ligand-field results: level, Tanabe-Sugano, Zeeman, angle and road-map diagrams, magnetometry (chi T, chi, mu_eff vs T; M vs B or B/T) with fits, and powder spectra.

lft.grids

Field-direction grids for magnetometry: single crystal, axes, exact Gauss hemisphere, DDN igloo.

lft.ligand_field

Differentiable one-electron d-shell ligand fields: AOM, Ballhausen crystal field, orbital energies.

lft.bridge

Bridges from ligand-field models to torchspin spin systems.

lft.telser2torchspin

Converters from Josh Telser's spin-Hamiltonian conventions to torchspin objects.

lft.units

Graph-safe unit factors for the ligand-field tools (torchspin.lft).