Skip to content

Commit

Permalink
Add fake backends for new IBM Quantum systems (Qiskit/qiskit#7392)
Browse files Browse the repository at this point in the history
* Add fake backends for new IBM Quantum systems (Qiskit/qiskit#6808)

This commit adds new fake backend classes for new IBM Quantum systems:
Cairo, Hanoi, Kolkata, Nairobi, and Washington. Just as with the other
fake backends these new classes contain snapshots of calibration and error
data taken from the real system, and can be used for local testing,
compilation and simulation.

Legacy backends are not added for these new fake backends as the
legacy backend interface is deprecated and will be removed in a future
release so there is no need to expose that for the new backends (it was
only added for compatibility testing on the old fake backends).

* Update qiskit/test/mock/backends/washington/fake_washington.py

Co-authored-by: Ali Javadi-Abhari <[email protected]>

* Update releasenotes/notes/new-fake-backends-04ea9cb26374e385.yaml

Co-authored-by: Luciano Bello <[email protected]>

* Fix lint

Co-authored-by: Ali Javadi-Abhari <[email protected]>
Co-authored-by: Luciano Bello <[email protected]>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
4 people authored Feb 21, 2022
1 parent aef12f6 commit e0bde61
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/integration/test_fake_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ def setUpClass(cls):
@combine(
backend=[be for be in FAKE_PROVIDER.backends() if be.configuration().num_qubits > 1],
optimization_level=[0, 1, 2, 3],
dsc="Test execution path on {backend} with optimization level {optimization_level}",
name="{backend}_opt_level_{optimization_level}",
)
def test_circuit_on_fake_backend(self, backend, optimization_level):
if not optionals.HAS_AER and backend.configuration().num_qubits > 20:
Expand All @@ -71,6 +73,8 @@ def test_circuit_on_fake_backend(self, backend, optimization_level):
@combine(
backend=[be for be in FAKE_LEGACY_PROVIDER.backends() if be.configuration().num_qubits > 1],
optimization_level=[0, 1, 2, 3],
dsc="Test execution path on {backend} with optimization level {optimization_level}",
name="{backend}_opt_level_{optimization_level}",
)
def test_circuit_on_fake_legacy_backend(self, backend, optimization_level):
if not optionals.HAS_AER and backend.configuration().num_qubits > 20:
Expand Down

0 comments on commit e0bde61

Please sign in to comment.