Function sequant::same_spin_tensor

Function Documentation

bool sequant::same_spin_tensor(const Tensor &tensor)

Checks if spin labels on a tensor are same.

Parameters:

tensor – a tensor with indices containing spin labels

Returns:

true if all spin labels on a tensor are the same