Convenient API for spinless fermions

Open
#87 0 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@kevinsung is already working on this.

Since Jun 1, 2024.

Assessment

This issue has not been assessed yet.

Description

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

Dominant language
Python
Stars
116
Forks
50
Avg merge
2h 1m
Merged PRs (30d)
8

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Qiskit/ffsim

All issues in Qiskit/ffsim

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.