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

Short import for TrotterQRTE #67

Merged
merged 3 commits into from
Aug 23, 2023
Merged

Short import for TrotterQRTE #67

merged 3 commits into from
Aug 23, 2023

Conversation

woodsp-ibm
Copy link
Member

@woodsp-ibm woodsp-ibm commented Aug 23, 2023

Summary

While we allowed the new VQE etc to be imported from qiskit_algorithms the new TrotterQRTE was overlooked. It can now be imported from qiskit_algorithms so you do not need to import it from the sub-module, but that still works for any code that does.

Updated the docs so TrotterQRTE is documented at that level along with the other algorithms. Also made a couple of highlighted and plain text items class refs to the content so they become links.

Also the docstring stated the default was LieTrotter with reps=1 but was relying on the default value in LieTrotter being 1 to make this so. I set it explicitly just in case the default in the constructor ever gets changed.

Details and comments

@woodsp-ibm woodsp-ibm added this to the 0.2.0 milestone Aug 23, 2023
@coveralls
Copy link

coveralls commented Aug 23, 2023

Pull Request Test Coverage Report for Build 5952742547

  • 3 of 3 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 89.989%

Totals Coverage Status
Change from base Build 5950008919: 0.0%
Covered Lines: 6445
Relevant Lines: 7162

💛 - Coveralls

Copy link
Collaborator

@ElePT ElePT left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for this PR

@ElePT ElePT merged commit 820eaff into qiskit-community:main Aug 23, 2023
13 checks passed
@woodsp-ibm woodsp-ibm deleted the short_trotterqrte branch August 23, 2023 16:05
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.

3 participants