Contents:
Return the number of occupied orbitals in a given bitarray.
The bitarray of the state.
The indices of the occupied orbitals in the given bitarray.