spinladder#

torchspin.spinladder(S1, S2, J_MHz, g1=2.0, g2=2.0, temperature=None)[source]#

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

Port of EasySpin’s spinladder.m.

Parameters:
  • S1 (float) – Spin quantum number of electron 1.

  • S2 (float) – Spin quantum number of electron 2.

  • J_MHz (float) –

    Isotropic exchange coupling in MHz. The Hamiltonian is:

    H_J = J * S1 · S2
    

    Positive J → antiferromagnetic (singlet ground state for S1=S2=1/2). Negative J → ferromagnetic (highest spin ground state).

  • g1 (float) – Isotropic g-factor of spin 1. Default 2.0.

  • g2 (float) – Isotropic g-factor of spin 2. Default 2.0.

  • temperature (float or None) – Temperature in Kelvin for Boltzmann weighting. If None, uniform weights (infinite temperature) are used.

Returns:

manifolds (list of SpinManifold) – One entry per total-spin manifold, sorted by ascending energy. Each manifold has .S_total, .multiplicity, .energy_MHz, .weight, and .g_eff.

Return type:

list[SpinManifold]

Notes

Energies use the Landé interval rule:

E(S_total) = (J/2) * [S_total*(S_total+1) - S1*(S1+1) - S2*(S2+1)]

The effective g-factor for each manifold is the isotropic average (g1 + g2) / 2 (for a symmetric coupled system). More accurate g-values require the full coupled-basis transformation.

Examples

>>> manifolds = spinladder(0.5, 0.5, 100.0)   # J=100 MHz antiferro
>>> for m in manifolds:
...     print(f'S_total={m.S_total}, mult={m.multiplicity}, E={m.energy_MHz:.1f} MHz')
S_total=0.0, mult=1, E=0.0 MHz
S_total=1.0, mult=3, E=100.0 MHz
>>> manifolds = spinladder(1.0, 1.0, -50.0)  # ferromagnetic J<0
>>> for m in manifolds:
...     print(f'S_total={m.S_total}, E={m.energy_MHz:.1f} MHz')