isto#
- torchspin.isto(J, kq, q_arg=None)[source]#
Irreducible spherical tensor operator T^k_q.
Port of EasySpin’s
isto.m(Ryabov 1999, J. Magn. Reson. 140, 141).- Parameters:
J (float or list of float) – Angular momentum quantum number(s). A single float for one spin, a list for a multi-spin product operator.
kq (array_like or int) –
If
q_argisNone:shape (nSpins, 2): each row
[k, q]for the corresponding spin;shape (nTerms, 3): each row
[k, q, spin_index](1-based).
If
q_argis given,kqis the rankk(single-spin shorthand).q_arg (int, optional) – When provided,
kqiskandq_argisq(single-spin call).
- Returns:
ndarray, complex128 – The (dim × dim) irreducible spherical tensor operator matrix, where dim = product of (2*Ji + 1) for all spins.
- Return type:
Examples
>>> T = isto(0.5, 1, 0) # T^1_0 for S=1/2 (= Sz / sqrt(2), unnorm) >>> T = isto(1.0, [2, 0]) # T^2_0 for S=1