tensor_cart2sph#
- torchspin.tensor_cart2sph(T)[source]#
Convert a 3×3 Cartesian tensor to rank-2 spherical tensor components.
Port of EasySpin’s
tensor_cart2sph.m.- Parameters:
T (array_like, shape (3, 3)) – Symmetric 3×3 Cartesian tensor.
- Returns:
T2 (ndarray, shape (5,)) – Spherical tensor components
[T2m2, T2m1, T20, T2p1, T2p2]corresponding to q = −2, −1, 0, +1, +2 (complex in general).- Return type:
Notes
Conversion formulae (Edmonds convention, same as EasySpin):
T20 = sqrt(3/2) * Tzz - (Txx + Tyy) / sqrt(6) T2p1 = -(Txz + i*Tyz) [= -T_{+1}] T2m1 = (Txz - i*Tyz) [= -T_{-1}*] T2p2 = (Txx - Tyy)/2 + i*Txy T2m2 = (Txx - Tyy)/2 - i*Txy