isto2stev#

torchspin.isto2stev(k)[source]#

Transformation matrix from ISTOs to Stevens operators.

Port of EasySpin’s isto2stev.m.

Computes the (2k+1) × (2k+1) matrix C such that:

O_k = C @ T_k

where T_k = [T^k_k, T^k_{k-1}, …, T^k_{-k}] (ISTO column vector) and O_k = [O^k_k, O^k_{k-1}, …, O^k_{-k}] (Stevens operator vector).

Parameters:

k (int) – Rank (non-negative integer).

Returns:

C (ndarray, shape (2k+1, 2k+1), complex128) – Transformation matrix. Inverse is numpy.linalg.inv(C).

Return type:

ndarray

Notes

Only diagonal and anti-diagonal elements are non-zero. Uses J = k/2 (smallest spin for which rank-k operators exist). The result is independent of the choice of J.

Examples

>>> C = isto2stev(2)   # 5×5 matrix for rank-2 operators
>>> C.shape
(5, 5)