Function sequant::can_expand

Function Documentation

bool sequant::can_expand(const Tensor &tensor)

Check if the number of alpha spins in bra and ket are equal; beta spins will match if total number of indices is the same.

Parameters:

tensor – with spin indices

Returns:

true if number of alpha spins match in bra and ket