endorfrq_perturb#

torchspin.endorfrq_perturb(sys, B_field_mT, phi=0.0, theta=0.0, order=2, nuclei=None, opt=None)[source]#

ENDOR transition frequencies via perturbation theory (Iwasaki 1974).

Parameters:
  • sys (SpinSystem) – Spin system. Must have nElectrons == 1.

  • B_field_mT (float) – Static magnetic field in mT.

  • phi (float) – Orientation angles (radians). The static field direction in the molecular frame is n = (sin θ cos φ, sin θ sin φ, cos θ).

  • theta (float) – Orientation angles (radians). The static field direction in the molecular frame is n = (sin θ cos φ, sin θ sin φ, cos θ).

  • order (int) – Perturbation order: 1 or 2 (default 2). A zero hyperfine principal value (or a singular full A) gives the exact A -> 0 limit: the second-order term uses adj(A), not inv(A).

  • nuclei (list[int] | None) – List of 0-based nucleus indices to include. Default: all nuclei.

  • opt – Optional Options. Only opt.Enhancement is read: hyperfine enhancement is not available in perturbation theory, so Enhancement=True raises (EasySpin’s endorfrq_perturb silently ignores it). Use endorfrq().

Returns:

  • freqs (Tensor, shape (nTrans,)) – ENDOR frequencies in MHz (positive), in EasySpin’s element order: nucleus by nucleus; within a nucleus by the mI of the lower level (-I first), and within that by mS ascending (-S first).

  • intensities (Tensor, shape (nTrans,)) – EasySpin endorfrq_perturb intensities, (MHz/mT)^2: for the transition with lower level mI = -I + k - 1 (k = 1..2I), (gn·μN/h)² · k(2I+1-k)/4 / (2I+1) · ∏(2I+1) over all nuclei of the system, the same for every mS. Since 0.8.8; before, the matrix element was off by one level and the ∏(2I+1) factor was missing.

Raises:
Return type:

tuple[Tensor, Tensor]

Notes

The nuclear energy in state (mS, mI) is (Iwasaki 1974):

E = mI · abs(K(mS))  +  E2A  +  E1Q  +  E2Q  +  E2DA

where K(mS) = mS · A·u + ν_I · h is the effective field at the nucleus, u = g·h / abs(g·h) is the effective g direction, and ν_I = -gₙ·μₙ·B₀/h is the nuclear Larmor frequency in MHz.

ENDOR transitions connect states mI and mI+1 within the same mS manifold.

A full 3×3 Q (sys.fullQ) is used as given (rows 3i..3i+2 for nucleus i), as in EasySpin; before 0.8.8 its rows were misread as principal values.