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

feat: implement Fermionic.index_order #902

Merged

Conversation

mrossinek
Copy link
Member

Summary

Instead of going with my original proposal in #901, I went for a more modular approach by implementing a method which performs the index ordering of a FermionicOp. This can then be combined together with .simplify() to achieve "maximum" simplification.

Details and comments

Closes #901

@coveralls
Copy link

coveralls commented Oct 18, 2022

Pull Request Test Coverage Report for Build 3282832855

  • 23 of 24 (95.83%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.009%) to 85.722%

Changes Missing Coverage Covered Lines Changed/Added Lines %
qiskit_nature/second_q/operators/fermionic_op.py 23 24 95.83%
Totals Coverage Status
Change from base Build 3281609711: 0.009%
Covered Lines: 17075
Relevant Lines: 19919

💛 - Coveralls

@ElePT ElePT mentioned this pull request Oct 19, 2022
4 tasks
This also renames FermionicOp.normal_ordered to
FermionicOp.normal_order, aligning the naming convention of using verbs
for method names which act on one or more operators without transforming
it to or from another type.

Closes qiskit-community#901
@mrossinek mrossinek force-pushed the fermionicop-index-ordered branch from 2c3bc47 to a530767 Compare October 19, 2022 15:18
@mrossinek mrossinek changed the title feat: implement Fermionic.index_ordered feat: implement Fermionic.index_order Oct 19, 2022
@mrossinek mrossinek merged commit 46f4dd8 into qiskit-community:main Oct 19, 2022
@mrossinek mrossinek deleted the fermionicop-index-ordered branch October 19, 2022 20:31
Anthony-Gandon pushed a commit to Anthony-Gandon/qiskit-nature that referenced this pull request May 25, 2023
This also renames FermionicOp.normal_ordered to
FermionicOp.normal_order, aligning the naming convention of using verbs
for method names which act on one or more operators without transforming
it to or from another type.

Closes qiskit-community#901
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.

Allow more aggressive FermionicOp.simplify
3 participants