ham_so#
- torchspin.ham_so(sys, eSpins=None, dtype=torch.complex128, device='cpu')[source]#
Spin-orbit coupling Hamiltonian.
- Parameters:
sys (SpinSystem) – Spin system with orbital angular momenta (
Sys.L) and spin-orbit coupling constants (Sys.soc).eSpins (list[int] | None) – 1-based indices of electron spins to include. Defaults to all.
dtype (dtype) – Output dtype.
device (str) – PyTorch device string.
- Returns:
H – Spin-orbit coupling Hamiltonian matrix (MHz), shape
(nStates, nStates).- Return type: