try_trivial_spin_addition

rydstate.angular.utils.try_trivial_spin_addition(s_1, s_2, s_tot)[source]

Try to determine s_tot from s_1 and s_2 if it is not given.

If s_tot is None and cannot be uniquely determined from s_1 and s_2, raise an error. Otherwise return s_tot or the trivial sum s_1 + s_2.

Return type:

float | Unknown

Parameters: