For functions that accept an nelec: tuple[int, int] parameter, we can allow nelec to also just be an integer, indicating spinless fermions. The resulting behavior should be the same as nelec = (nelec_spinless, 0). Similarly, occupied_orbitals: tuple[Sequence[int], Sequence[int]] can be substituted with Sequence[int].
For functions that accept an
nelec: tuple[int, int]
parameter, we can allownelec
to also just be an integer, indicating spinless fermions. The resulting behavior should be the same asnelec = (nelec_spinless, 0)
. Similarly,occupied_orbitals: tuple[Sequence[int], Sequence[int]]
can be substituted withSequence[int]
.