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

make QuadraticHamiltonian a subclass of PolynomialTensor #890

Merged
merged 15 commits into from
Oct 21, 2022

Conversation

kevinsung
Copy link
Contributor

Summary

Fixes #865

Details and comments

@coveralls
Copy link

coveralls commented Oct 16, 2022

Pull Request Test Coverage Report for Build 3298635436

  • 48 of 48 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.04%) to 85.84%

Totals Coverage Status
Change from base Build 3298627105: 0.04%
Covered Lines: 17125
Relevant Lines: 19950

💛 - Coveralls

@mrossinek mrossinek added this to the 0.5.0 milestone Oct 17, 2022
mrossinek
mrossinek previously approved these changes Oct 19, 2022
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.

I think this is good to go 👍 Thanks, Kevin!

@mergify mergify bot merged commit ef02488 into qiskit-community:main Oct 21, 2022
@kevinsung kevinsung deleted the quad-ham-polynomial-tensor branch October 21, 2022 17:37
Anthony-Gandon pushed a commit to Anthony-Gandon/qiskit-nature that referenced this pull request May 25, 2023
…unity#890)

* make QuadraticHamiltonian a subclass of PolynomialTensor

* lint and mypy

* improve repr

* force keyword args

* remove TolerancesMixin, pass validate through to PolynomialTensor

* remove TODO

* lint

* fix bug in storage of antisymmetric tensor

* mypy

* revert chop

* factor out validation into separate function

* add note that rtol and atol are discarded after initialization

* update type syntax and default tolerances

Co-authored-by: Max Rossmannek <oss@zurich.ibm.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update QuadraticHamiltonian based on PolynomialTensor
4 participants