Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix edge case in fermi_hubbard_1d #142

Merged
merged 5 commits into from
Apr 24, 2024

Conversation

bartandrews
Copy link
Contributor

This PR fixes an edge case in fermi_hubbard_1d, which appears when the number of spatial orbitals N=2, and periodic boundary conditions are set (i.e. a ring with two sites). In this case, the hopping due to the periodic boundary conditions has the same dictionary key as the internal hopping. Instead of this dictionary key being overwritten, it should be added.

@bartandrews bartandrews requested a review from kevinsung April 24, 2024 17:23
@bartandrews bartandrews requested a review from kevinsung April 24, 2024 18:15
@kevinsung kevinsung merged commit b2fb884 into qiskit-community:main Apr 24, 2024
20 checks passed
@kevinsung kevinsung added the bugfix This change fixes a bug label Apr 24, 2024
@bartandrews bartandrews deleted the fh_model_1d branch April 25, 2024 00:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This change fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants