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

Unify orbital ordering of FermiHubbardModel with ElectronicEnergy #1245

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ialsina
Copy link

@ialsina ialsina commented Sep 5, 2023

Summary

This PR addresses #1224. This commit changes the orbital ordering of the FermiHubbardModel to make it consistent with the block-ordering of the ElectronicEnergy class.

Details and comments

With this change, JordanWignerMapper produces block encoding when mapping the second quantization hamiltonian of FermiHubbardModel. InterleavedQubitMapper acting on JordanWignerMapper produces interleaved encoding. See full description in the original issue.

@CLAassistant
Copy link

CLAassistant commented Sep 5, 2023

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@mrossinek mrossinek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While I think that this change is - in principle - good as it is, you will need to address the following things before we can merge this:

  • fix the currently existing unittests which should fix the CI, too
  • add a release note (see CONTRIBUTING.md on how to do that)

And as a bonus:

  • It would be nice if you could also add a new unittest which asserts that using InterleavedQubitMapper(JordanWignerMapper()) is actually reproducing the original behavior.

@mrossinek mrossinek linked an issue Sep 6, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fermi-Hubbard Model block/interleaved inconsistency
3 participants