wignerd#
- torchspin.wignerd(J, alpha_or_beta, beta=None, gamma=None, phase='-')[source]#
Wigner rotation matrix D^J (or reduced d^J).
- Parameters:
J (float or sequence [J, m1, m2]) – Angular momentum quantum number. If a 3-element sequence [J, m1, m2], only the single element D^J_{m1,m2} is returned.
alpha_or_beta (float) – If
betaisNone: the polar angle β only (α=γ=0, returns real d). Otherwise: the first Euler angle α.beta (float, optional) – Middle Euler angle β.
gamma (float, optional) – Last Euler angle γ.
phase ({'-', '+'}, optional) – Sign convention. Default
'-':D = exp(-i·m1·α) · d(β) · exp(-i·m2·γ)(Brink/Satchler, Varshalovich).'+':D = exp(+i·m1·α) · d(β) · exp(+i·m2·γ)(Edmonds).
- Returns:
ndarray, shape (2J+1, 2J+1) or complex scalar – Full matrix (or single element). Basis ordered m = +J, …, -J. When called with β only (α=γ=0), returns a real ndarray.
- Return type:
Notes
The reduced Wigner d-matrix element is computed via the Wigner sum formula using log-factorials (exact for integer and half-integer J).