qiskit-community / qiskit-nature

Qiskit Nature is an open-source, quantum computing, framework for solving quantum mechanical natural science problems.
https://qiskit-community.github.io/qiskit-nature/
Apache License 2.0
301 stars 204 forks source link

Unify orbital ordering of `FermiHubbardModel` with `ElectronicEnergy`… #1245

Open ialsina opened 1 year ago

ialsina commented 1 year ago

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 commented 1 year ago

CLA assistant check
All committers have signed the CLA.