-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Update remaining unit tests to use FakeGeneric
#10918
Conversation
FakeGeneric
FakeGeneric
FakeGeneric
One or more of the the following people are requested to review this:
|
Pull Request Test Coverage Report for Build 7729421822
💛 - Coveralls |
Fix backend estimator test Fix lint, backend estimator test Include missing tests
Initial fix Fix calibrations Fix remaining tests
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.
This looks almost ready. The primary change I'd request is that the coupling maps be placed in their own file 🙂.
Co-authored-by: Kevin Hartman <[email protected]>
@@ -1145,29 +1086,33 @@ def test_inst_sched_map_get_measure_0(self): | |||
is actually Schedule for just qubit_0""" | |||
sched_from_backend = self.backend.instruction_schedule_map.get("measure", [0]) | |||
expected_sched = Schedule( | |||
(0, Acquire(1472, AcquireChannel(0), MemorySlot(0))), |
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.
@mtreinish can you take a look at these tests? I don't have enough exposure to pulse scheduling to do a proper review
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.
This looks good to me, we can always update the tests further if there are any issues.
Summary
(2/4) --> This is the second PR of the
FakeBackend
s refactoring epic.#10266 introduces the
FakeGeneric
andGenericTarget
classes. This PR is a follow-up that replaces all uses of V2FakeBackend
s in unit tests with the newFakeGeneric
class.Details and comments
FakeBackends
are handled in: Add generic V1 Fake Backends, replace use in tests #10952Files not covered by this PR that still use fake V2 backends:
Visualization tests will most likely be left for a follow up (joint V1 and V2 changes):
TO-DOs: