qiskit-community / ffsim

Faster simulations of fermionic quantum circuits.
https://qiskit-community.github.io/ffsim/
Apache License 2.0
22 stars 5 forks source link

Convenient API for spinless fermions #87

Open kevinsung opened 9 months ago

kevinsung commented 9 months ago

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].