Spin systems#

Building, editing and analyzing spin systems: isotopologues and nuclear bookkeeping, equivalent nuclei, exchange-coupled manifolds, dipolar tensors, import from ORCA, and starting guesses estimated from a measured spectrum.

The spin system#

Documented on its own page.

SpinSystem

Spin system: spins, interactions and broadenings (EasySpin Sys).

Nuclei and isotopologues#

nucspinadd

Return a new SpinSystem with one nucleus appended.

nucspinrmv

Return a new SpinSystem with the specified nuclei removed.

nucspinkeep

Return a new SpinSystem with only the specified nuclei kept.

isotopologues

Expand sys into its isotopologues (list of SpinSystem with weights).

spinvec

Return all spin quantum numbers (electrons + nuclei) as a flat list.

hsdim

Return the Hilbert space dimension of a spin system.

equivsplit

Return the EPR line intensity pattern for n equivalent spins-I.

equivcouple

Decompose n equivalent spins-I into independent effective spins.

Couplings and manifolds#

diptensor

Compute the point-dipole coupling tensor between two spins.

zfsframes

Extract zero-field splitting parameters and principal frame orientations.

spinladder

Decompose a two-spin exchange system into total-spin manifolds.

SpinManifold

A total-spin manifold for a two-electron exchange system.

Import and parameter estimates#

orca2torchspin

Load ORCA calculation output → torchspin SpinSystem.

OrcaData

Metadata from ORCA calculation (raw tensors, coordinates, charges).

estimate_parameters

Automatically estimate initial parameters from EPR spectrum.

field_from_g

Calculate resonance field for given g-value.

g_from_field

Calculate g-value from resonance field.

print_parameter_report

Print a formatted report of estimated parameters.