-
Notifications
You must be signed in to change notification settings - Fork 159
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 V2 primitive Q-Ctrl tests #1534
Conversation
Pull Request Test Coverage Report for Build 8565471759Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#1499 also says
Allow V2 primitives to be called with Q-Ctrl channel strategy, assuming there are no major issues found by the tests
test/qctrl/test_qctrl.py
Outdated
def setUp(self) -> None: | ||
super().setUp() | ||
self.bell = bell() | ||
self.backend = "alt_canberra" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't hard code backend name
test/qctrl/test_qctrl.py
Outdated
@run_integration_test | ||
def test_sampler_v2_qctrl(self, service): | ||
"""Test qctrl bell state with samplerV2""" | ||
shots = 1000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's save some QPU time if we are not verifying result data
shots = 1000 | |
shots = 1 |
test/qctrl/test_qctrl.py
Outdated
bell_circuit = QuantumCircuit(2) | ||
bell_circuit.h(0) | ||
bell_circuit.cx(0, 1) | ||
bell_circuit.measure_all() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit - why create your own bell circuit when there is a self.bell?
Summary
Ready for initial review - wasn't completely sure how detailed the tests should be, my understanding is that we're just testing "does it run"/happy path.
Details and comments
Fixes #1499