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

Add support for SamplerV2 #507

Merged
merged 12 commits into from
Mar 25, 2024
Merged

Add support for SamplerV2 #507

merged 12 commits into from
Mar 25, 2024

Conversation

garrison
Copy link
Member

@garrison garrison commented Mar 19, 2024

Fixes #488.

This is waiting on requires one of the following before we can move forward (EDIT: the first item is now done!).

To-do list:

  • release note
  • PrimitiveResult test in test/cutting/test_cutting_reconstruction.py
  • update qiskit version in readme badge
  • test the first tutorial notebook locally using the SamplerV2 primitive from Qiskit Runtime.

@garrison garrison added enhancement New feature or request on hold Let's wait for something before merging cutting QPD-based circuit cutting code labels Mar 19, 2024
@garrison garrison self-assigned this Mar 19, 2024
@coveralls
Copy link

coveralls commented Mar 20, 2024

Pull Request Test Coverage Report for Build 8395326002

Details

  • 22 of 22 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.03%) to 93.574%

Totals Coverage Status
Change from base Build 8284062287: 0.03%
Covered Lines: 2359
Relevant Lines: 2521

💛 - Coveralls

Comment on lines -43 to -47
subexperiments = [QuantumCircuit(2)]
creg1 = ClassicalRegister(2, name="observable_measurements")
creg2 = ClassicalRegister(1, name="qpd_measurements")
subexperiments[0].add_register(creg1)
subexperiments[0].add_register(creg2)
Copy link
Member Author

Choose a reason for hiding this comment

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

There was some unnecessary code in this file that I removed. (subexperiments is constructed but then never used anywhere.)

@garrison garrison marked this pull request as ready for review March 22, 2024 19:15
@garrison garrison added this to the 0.7.0 milestone Mar 22, 2024
@garrison garrison removed the on hold Let's wait for something before merging label Mar 22, 2024
@garrison garrison requested a review from caleb-johnson March 22, 2024 19:43
Copy link
Collaborator

@caleb-johnson caleb-johnson left a comment

Choose a reason for hiding this comment

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

This looks great, thanks! 🥳

@garrison garrison merged commit 74286c4 into main Mar 25, 2024
11 checks passed
@garrison garrison deleted the samplerv2-cutting-reconstruction branch March 25, 2024 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cutting QPD-based circuit cutting code enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support SamplerV2
3 participants