Contents:
Check if two bases are compatible with each other.
Compatible means that the two Tensors with this basis can be added, subtracted, contracted, etc.
basis1 (Union[Basis, btensor.basis._NoBasis]) – The two bases to be checked.
basis2 (Union[Basis, btensor.basis._NoBasis]) – The two bases to be checked.
True if both bases are compatible, False otherwise.