In
https://github.com/ValeevGroup/SeQuant/blob/7f31851a857ed8ebbacc80a311717c2707e32eb6/tests/unit/test_spin.cpp#L279-L285
the spintrace function is fed the given expression with the information that i_1 and a_1 are external indices that belong to a single particle (group). However, the given expression is a full contraction leading to a scalar and thus the expression doesn't have any external indices. Therefore, I believe that this test case doesn't make sense in its current form :thinking:
In https://github.com/ValeevGroup/SeQuant/blob/7f31851a857ed8ebbacc80a311717c2707e32eb6/tests/unit/test_spin.cpp#L279-L285 the
spintrace
function is fed the given expression with the information thati_1
anda_1
are external indices that belong to a single particle (group). However, the given expression is a full contraction leading to a scalar and thus the expression doesn't have any external indices. Therefore, I believe that this test case doesn't make sense in its current form :thinking: