Remove fake backends based on BackendV1 and related tools#13805
Remove fake backends based on BackendV1 and related tools#13805mtreinish merged 10 commits intoQiskit:mainfrom
BackendV1 and related tools#13805Conversation
Pull Request Test Coverage Report for Build 13587359090Warning: 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 |
ca5a45b to
6c8d616
Compare
|
One or more of the following people are relevant to this code:
|
BackendV1 and related toolsBackendV1 and related tools
…y tests that checked V1 functionality, mitigators (independent removal). Update rest of unit tests to use GenericBackendV2
…d in 2.0 so no alternative is provided)
fc3c929 to
9cf239c
Compare
eliarbel
left a comment
There was a problem hiding this comment.
Looks good overall. I've left some minor comments regarding a reno and some tests.
Co-authored-by: Eli Arbel <46826214+eliarbel@users.noreply.github.com>
…move non-relevant tests
Co-authored-by: Eli Arbel <46826214+eliarbel@users.noreply.github.com>
mtreinish
left a comment
There was a problem hiding this comment.
This LGTM. I had a few inline comments but nothing critical mostly idle musings as a I read through the code. There was one question about one test being added but it's not a blocker.
| If the time unit is 'dt', the duration must be an integer. | ||
| dt: Backend sample time (resolution) in seconds. | ||
| If ``None`` (default), ``backend.configuration().dt`` is used. | ||
| If ``None`` (default), ``backend.dt`` is used. |
There was a problem hiding this comment.
This might have slipped in from the backendv1 removal pr. Not a big deal though
| large_qasm_path = os.path.join(self.qasm_path, "test_eoh_qasm.qasm") | ||
| self.large_qasm = QuantumCircuit.from_qasm_file(large_qasm_path) | ||
| self.melbourne = Fake20QV1() | ||
| self.melbourne = GenericBackendV2(num_qubits=20, coupling_map=MELBOURNE_CMAP, seed=0) |
There was a problem hiding this comment.
Unfortunately this will invalidate the benchmarking results for these benchmarks. There's no helping it since we're removing the code they rely on. But I'm going to miss the data:
| ).result() | ||
| self.assertEqual(result.get_counts(qc), {"010000": 1024}) | ||
|
|
||
| def test_parallel_compile(self): |
There was a problem hiding this comment.
Did this test get lost? Also this won't trigger parallelism by default, we have a dedicated class that overrides the defaults to ensure we run under multiprocessing here: https://github.com/Qiskit/qiskit/blob/main/test/python/compiler/test_transpiler.py#L2628
But there is no harm in having this test.
| def setUp(self): | ||
| super().setUp() | ||
| with self.assertWarns(DeprecationWarning): | ||
| backend = FakeOpenPulse2Q() |
There was a problem hiding this comment.
I find it disappointing that we didn't have tests in this file that just built a BackendConfiguration standalone. Not a comment on this PR, but more just a general comment. Removing these makes sense since we're removing BackendV1 after this, I was just surprised to see the file deleted here.

Summary
This PR branches off #13793 and contains the changes related to the fake backend removal. This PR is built on top of #13722 and currently BLOCKED by it.
Details and comments
TODOs: