e3x.so3.irreps.irreps_to_tensor

e3x.so3.irreps.irreps_to_tensor(x, degree, cartesian_order=True, normalization='racah')[source]

Converts irreducible representations to a traceless symmetric tensor.

Parameters:
  • x (<class 'Float[Array, '... 2*degree+1']'>) – The input irreducible representation.

  • degree (int) – The degree of the input irreducible representation.

  • cartesian_order (bool, default: True) – If True, irreps are assumed to be in Cartesian order.

  • normalization ({'4pi', 'orthonormal', 'racah', 'schmidt'}, default: 'racah') – Which normalization is used.

Returns:

The corresponding traceless symmetric tensor. See spherical_harmonics for more information about the meaning of cartesian_order and normalization.

Raises:

ValueError – If degree is not positive or zero, the shape of x is inconsistent with degree or normalization has an invalid value.