mirror of https://github.com/Qiskit/qiskit.git
Use pulse configuration in fake Bogota, Rome, Manila and Santiago (#7688)
* Update fake_bogota.py - refer to the defs file and turn it into a FakePulseBackend * Update fake_manila.py - refer to the defs file and turn it into a FakePulseBackend * Update fake_rome.py - refer to the defs file and turn it into a FakePulseBackend * Update fake_santiago.py - refer to the defs file and turn it into a FakePulseBackend * Update fake_bogota.py - make sure we are using FakePulseLegacyBackend where it is needed. * Create bogota-manila-rome-santiago-as-fakepulsebackends-2907dec149997a27.yaml - add release notes * Update releasenotes/notes/bogota-manila-rome-santiago-as-fakepulsebackends-2907dec149997a27.yaml no need for prelude 🎹🎵 😕 Co-authored-by: Matthew Treinish <mtreinish@kortar.org> * Update releasenotes/notes/bogota-manila-rome-santiago-as-fakepulsebackends-2907dec149997a27.yaml 🧐 using proper notation. Co-authored-by: Matthew Treinish <mtreinish@kortar.org> * Fix typo Co-authored-by: Matthew Treinish <mtreinish@kortar.org> Co-authored-by: Jake Lishman <jake@binhbar.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
parent
3591fa635d
commit
9ec0c4eed3
|
@ -15,23 +15,24 @@ Fake Bogota device (5 qubit).
|
|||
"""
|
||||
|
||||
import os
|
||||
|
||||
from qiskit.test.mock import fake_qasm_backend
|
||||
from qiskit.test.mock import fake_pulse_backend
|
||||
|
||||
|
||||
class FakeBogota(fake_qasm_backend.FakeQasmBackend):
|
||||
class FakeBogota(fake_pulse_backend.FakePulseBackend):
|
||||
"""A fake 5 qubit backend."""
|
||||
|
||||
dirname = os.path.dirname(__file__)
|
||||
conf_filename = "conf_bogota.json"
|
||||
props_filename = "props_bogota.json"
|
||||
defs_filename = "defs_bogota.json"
|
||||
backend_name = "fake_bogota"
|
||||
|
||||
|
||||
class FakeLegacyBogota(fake_qasm_backend.FakeQasmLegacyBackend):
|
||||
class FakeLegacyBogota(fake_pulse_backend.FakePulseLegacyBackend):
|
||||
"""A fake 5 qubit backend."""
|
||||
|
||||
dirname = os.path.dirname(__file__)
|
||||
conf_filename = "conf_bogota.json"
|
||||
props_filename = "props_bogota.json"
|
||||
defs_filename = "defs_bogota.json"
|
||||
backend_name = "fake_bogota"
|
||||
|
|
|
@ -15,13 +15,14 @@ Fake Manila device (5 qubit).
|
|||
"""
|
||||
|
||||
import os
|
||||
from qiskit.test.mock import fake_qasm_backend
|
||||
from qiskit.test.mock import fake_pulse_backend
|
||||
|
||||
|
||||
class FakeManila(fake_qasm_backend.FakeQasmBackend):
|
||||
class FakeManila(fake_pulse_backend.FakePulseBackend):
|
||||
"""A fake 5 qubit backend."""
|
||||
|
||||
dirname = os.path.dirname(__file__)
|
||||
conf_filename = "conf_manila.json"
|
||||
props_filename = "props_manila.json"
|
||||
defs_filename = "defs_manila.json"
|
||||
backend_name = "fake_manila"
|
||||
|
|
|
@ -15,22 +15,24 @@ Fake Rome device (5 qubit).
|
|||
"""
|
||||
|
||||
import os
|
||||
from qiskit.test.mock import fake_qasm_backend
|
||||
from qiskit.test.mock import fake_pulse_backend
|
||||
|
||||
|
||||
class FakeRome(fake_qasm_backend.FakeQasmBackend):
|
||||
class FakeRome(fake_pulse_backend.FakePulseBackend):
|
||||
"""A fake 5 qubit backend."""
|
||||
|
||||
dirname = os.path.dirname(__file__)
|
||||
conf_filename = "conf_rome.json"
|
||||
props_filename = "props_rome.json"
|
||||
defs_filename = "defs_rome.json"
|
||||
backend_name = "fake_rome"
|
||||
|
||||
|
||||
class FakeLegacyRome(fake_qasm_backend.FakeQasmLegacyBackend):
|
||||
class FakeLegacyRome(fake_pulse_backend.FakePulseLegacyBackend):
|
||||
"""A fake 5 qubit backend."""
|
||||
|
||||
dirname = os.path.dirname(__file__)
|
||||
conf_filename = "conf_rome.json"
|
||||
props_filename = "props_rome.json"
|
||||
defs_filename = "defs_rome.json"
|
||||
backend_name = "fake_rome"
|
||||
|
|
|
@ -15,22 +15,24 @@ Fake Santiago device (5 qubit).
|
|||
"""
|
||||
|
||||
import os
|
||||
from qiskit.test.mock import fake_qasm_backend
|
||||
from qiskit.test.mock import fake_pulse_backend
|
||||
|
||||
|
||||
class FakeSantiago(fake_qasm_backend.FakeQasmBackend):
|
||||
class FakeSantiago(fake_pulse_backend.FakePulseBackend):
|
||||
"""A fake Santiago backend."""
|
||||
|
||||
dirname = os.path.dirname(__file__)
|
||||
conf_filename = "conf_santiago.json"
|
||||
props_filename = "props_santiago.json"
|
||||
defs_filename = "defs_santiago.json"
|
||||
backend_name = "fake_santiago"
|
||||
|
||||
|
||||
class FakeLegacySantiago(fake_qasm_backend.FakeQasmLegacyBackend):
|
||||
class FakeLegacySantiago(fake_pulse_backend.FakePulseLegacyBackend):
|
||||
"""A fake Santiago backend."""
|
||||
|
||||
dirname = os.path.dirname(__file__)
|
||||
conf_filename = "conf_santiago.json"
|
||||
props_filename = "props_santiago.json"
|
||||
defs_filename = "defs_santiago.json"
|
||||
backend_name = "fake_santiago"
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
features:
|
||||
- |
|
||||
The ``FakeBogota``, ``FakeManila``, ``FakeRome``, and ``FakeSantiago`` fake backends which can be found
|
||||
in the ``qiskit.test.mock`` module can now be used as backends in Pulse experiments as they now include
|
||||
a :class:`~qiskit.providers.models.PulseDefaults` created from a snapshot of the IBM Quantum's properties.
|
Loading…
Reference in New Issue