hamsymm#
- torchspin.hamsymm(sys, debug=False)[source]#
Determine point group symmetry of spin Hamiltonian.
- Parameters:
sys (SpinSystem) – Spin system.
debug (bool) – Print the decision trace (mirrors EasySpin’s
'debug'option).
- Returns:
pgroup – Schönflies point group symbol. One of
'O3','Dinfh','Oh','Th','D6h','C6h','D3d','S6','D4h','C4h','D2h','C2h','Ci'. (The geometric path can only yield O3/Dinfh/D2h/C2h/Ci; the eigenvalue path the full set.)R – 3×3 rotation matrix from the molecular frame to the symmetry frame:
v_sym = R @ v_mol. Its rows are the symmetry-frame axes expressed in molecular coordinates. This is the transpose of EasySpin’sRMatrix(whose columns are the symmetry axes, i.e.v_mol = RMatrix @ v_sym); pepper consumes it asv_mol = R.T @ v_sym. Both analysis paths use this convention.
- Return type:
Examples
>>> sys = SpinSystem(S=1/2, g=2.0) >>> pgroup, R = hamsymm(sys) >>> pgroup 'O3'
>>> sys = SpinSystem(S=1/2, g=[2.0, 2.0, 2.2]) >>> pgroup, R = hamsymm(sys) >>> pgroup 'Dinfh'
>>> sys = SpinSystem(S=1/2, g=[2.0, 2.1, 2.2]) >>> pgroup, R = hamsymm(sys) >>> pgroup 'D2h'