Skip to content

Commit fcb5d29

Browse files
ElePTeliarbel
andauthored
Remove fake backends based on BackendV1 and related tools (Qiskit#13805)
* Remove FakeBackend, FakeQasmBackend, FakePulseBackend, subclasses, any tests that checked V1 functionality, mitigators (independent removal). Update rest of unit tests to use GenericBackendV2 * Remove FakeBackend references from docs (these classes will be removed in 2.0 so no alternative is provided) * Fix lint and apply desperate measures until better measures are found (visual tests). * Add renos * Fix scheduling tests, lints and docs issue. * Apply suggestions from Eli's code review Co-authored-by: Eli Arbel <[email protected]> * Migrate relevant fake backend tests to test_generic_backend_v2.py, remove non-relevant tests * Fix merge conflict, apply review suggestions reno * Fix reno typo Co-authored-by: Eli Arbel <[email protected]> --------- Co-authored-by: Eli Arbel <[email protected]>
1 parent 20f83e5 commit fcb5d29

File tree

87 files changed

+375
-8648
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+375
-8648
lines changed

qiskit/compiler/transpiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def transpile( # pylint: disable=too-many-return-statements
201201
If unit is omitted, the default is 'dt', which is a sample time depending on backend.
202202
If the time unit is 'dt', the duration must be an integer.
203203
dt: Backend sample time (resolution) in seconds.
204-
If ``None`` (default), ``backend.configuration().dt`` is used.
204+
If ``None`` (default), ``backend.dt`` is used.
205205
approximation_degree (float): heuristic dial used for circuit approximation
206206
(1.0=no approximation, 0.0=maximal approximation)
207207
timing_constraints: An optional control hardware restriction on instruction time resolution.

qiskit/providers/fake_provider/__init__.py

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -65,42 +65,5 @@
6565
6666
GenericBackendV2
6767
68-
V1 Fake Backends (Legacy interface)
69-
===================================
70-
71-
.. autosummary::
72-
:toctree: ../stubs/
73-
74-
FakeOpenPulse2Q
75-
FakeOpenPulse3Q
76-
Fake1Q
77-
Fake5QV1
78-
Fake20QV1
79-
Fake7QPulseV1
80-
Fake27QPulseV1
81-
Fake127QPulseV1
82-
83-
Fake Backend Base Classes
84-
=========================
85-
86-
The V1 fake backends are based on a set of base classes:
87-
88-
.. currentmodule:: qiskit.providers.fake_provider
89-
.. autoclass:: FakeBackend
90-
.. autoclass:: FakeQasmBackend
91-
.. autoclass:: FakePulseBackend
9268
"""
93-
94-
# Base classes for fake backends
95-
from .fake_backend import FakeBackend
96-
from .fake_qasm_backend import FakeQasmBackend
97-
from .fake_pulse_backend import FakePulseBackend
98-
99-
# Special fake backends for special testing purposes
100-
from .fake_openpulse_2q import FakeOpenPulse2Q
101-
from .fake_openpulse_3q import FakeOpenPulse3Q
102-
from .fake_1q import Fake1Q
103-
104-
# Generic fake backends
105-
from .backends_v1 import Fake5QV1, Fake20QV1, Fake7QPulseV1, Fake27QPulseV1, Fake127QPulseV1
10669
from .generic_backend_v2 import GenericBackendV2

qiskit/providers/fake_provider/backends_v1/__init__.py

Lines changed: 0 additions & 22 deletions
This file was deleted.

qiskit/providers/fake_provider/backends_v1/fake_127q_pulse/__init__.py

Lines changed: 0 additions & 18 deletions
This file was deleted.

qiskit/providers/fake_provider/backends_v1/fake_127q_pulse/conf_washington.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

qiskit/providers/fake_provider/backends_v1/fake_127q_pulse/defs_washington.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

qiskit/providers/fake_provider/backends_v1/fake_127q_pulse/fake_127q_pulse_v1.py

Lines changed: 0 additions & 37 deletions
This file was deleted.

qiskit/providers/fake_provider/backends_v1/fake_127q_pulse/props_washington.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

qiskit/providers/fake_provider/backends_v1/fake_20q/__init__.py

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)