resfreqs_perturb#

torchspin.resfreqs_perturb(sys, phi, theta, exp, opt=None, order=2)[source]#

Find resonance frequencies using perturbation theory.

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

  • 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 θ).

  • exp (Experiment) – Experiment parameters. Must set exp.Field (in mT) and optionally exp.Range ([ν_min, ν_max] in GHz).

  • opt (Options | None) – Options (Threshold for intensity cutoff). If None, uses defaults.

  • order (int) – Perturbation order: 1 or 2. Default is 2 (second-order). 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).

Returns:

  • nu_res (Tensor, shape (nTransitions,)) – Resonance frequencies in GHz.

  • intensities (Tensor, shape (nTransitions,)) – Transition intensities (a.u.).

Return type:

tuple[Tensor, Tensor]

Notes

At fixed field B₀, the EPR transition frequency for (mS) → (mS−1) is:

ν = E₀ + δE₁_D + δE₂_D + Σₙ (δE₁_A + δE₂_A + δE₂_DA)

where E₀ = g_eff · μ_B · B₀ / h is the Zeeman frequency and the δE terms are the Iwasaki first- and second-order perturbation corrections.