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

After Aer .14 is released, remove approximation=true from relevant pages #1020

Merged
merged 11 commits into from
Apr 8, 2024

Conversation

abbycross
Copy link
Collaborator

Closes #319

@abbycross abbycross self-assigned this Mar 12, 2024
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@qiskit-bot
Copy link
Contributor

One or more of the the following people are requested to review this:

  • @kevinsung

@@ -151,7 +151,7 @@ This guide describes these common configurations for algorithms that determine w
from qiskit_aer.primitives import Sampler, Estimator

sampler = Sampler(run_options={"approximation": True, "shots": None})
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@kevinsung the change is only for Estimator, not Sampler, correct? Should I leave this line as-is?

Copy link
Collaborator

Choose a reason for hiding this comment

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

As far as I know, "approximation" is not a valid run option, so I think it can be removed immediately from all examples of Sampler and Estimator. See Qiskit/qiskit-aer#2083 though.

#319 Refers to passing approximation=True directly to the initializer of Estimator, as in those pages in the verify section.

@abbycross abbycross requested a review from kevinsung March 12, 2024 18:04
Copy link
Collaborator

@Eric-Arellano Eric-Arellano left a comment

Choose a reason for hiding this comment

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

Qiskit Aer 0.14 isn't released yet

@abbycross
Copy link
Collaborator Author

abbycross commented Mar 12, 2024

Qiskit Aer 0.14 isn't released yet

I am confused because in the Qiskit SDK .10 release notes, it mentions Aer 0.2?

EDITED TO ADD -- Eric clarified for me the difference between Aer when it was part of the metapackage, and Aer now.

@abbycross abbycross changed the title Remove approximation=true from relevant pages [DO NOT MERGE] After Aer .14 is released, remove approximation=true from relevant pages Mar 12, 2024
@abbycross abbycross changed the title [DO NOT MERGE] After Aer .14 is released, remove approximation=true from relevant pages After Aer .14 is released, remove approximation=true from relevant pages Apr 4, 2024
@abbycross
Copy link
Collaborator Author

Ready for review (need to debug the failing notebook check too)

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

Copy link
Member

@frankharkins frankharkins left a comment

Choose a reason for hiding this comment

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

Thanks! I think shots=None is unnecessary too

docs/api/migration-guides/qiskit-algorithms-module.mdx Outdated Show resolved Hide resolved
docs/api/migration-guides/qiskit-algorithms-module.mdx Outdated Show resolved Hide resolved
docs/api/migration-guides/qiskit-algorithms-module.mdx Outdated Show resolved Hide resolved
docs/api/migration-guides/qiskit-opflow-module.mdx Outdated Show resolved Hide resolved
docs/api/migration-guides/qiskit-opflow-module.mdx Outdated Show resolved Hide resolved
abbycross and others added 2 commits April 5, 2024 17:22
Co-authored-by: Frank Harkins <frankharkins@hotmail.co.uk>
Co-authored-by: Frank Harkins <frankharkins@hotmail.co.uk>
Co-authored-by: Frank Harkins <frankharkins@hotmail.co.uk>
abbycross and others added 2 commits April 5, 2024 17:23
Co-authored-by: Frank Harkins <frankharkins@hotmail.co.uk>
Co-authored-by: Frank Harkins <frankharkins@hotmail.co.uk>
@abbycross
Copy link
Collaborator Author

Thanks for catching those @frankharkins !

Copy link
Member

@frankharkins frankharkins left a comment

Choose a reason for hiding this comment

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

Thanks!

@abbycross abbycross added this pull request to the merge queue Apr 8, 2024
Merged via the queue into main with commit 4731f79 Apr 8, 2024
5 checks passed
@abbycross abbycross deleted the ajc/rmv-approx-true branch April 8, 2024 14:51
frankharkins added a commit to frankharkins/documentation that referenced this pull request Jul 22, 2024
…ges (Qiskit#1020)

Closes Qiskit#319

---------

Co-authored-by: Frank Harkins <frankharkins@hotmail.co.uk>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Remove usage of approximation=True with Estimator after Qiskit Aer 0.14
6 participants