Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""

import os
from qiskit.providers.fake_provider import fake_pulse_backend, fake_backend
from qiskit.providers.fake_provider import fake_qasm_backend, fake_backend


class FakeAlmadenV2(fake_backend.FakeBackendV2):
Expand All @@ -35,11 +35,10 @@ class FakeAlmadenV2(fake_backend.FakeBackendV2):
dirname = os.path.dirname(__file__)
conf_filename = "conf_almaden.json"
props_filename = "props_almaden.json"
defs_filename = "defs_almaden.json"
backend_name = "fake_almaden_v2"


class FakeAlmaden(fake_pulse_backend.FakePulseBackend):
class FakeAlmaden(fake_qasm_backend.FakeQasmBackend):
"""A fake Almaden backend.

.. code-block:: text
Expand All @@ -56,5 +55,4 @@ class FakeAlmaden(fake_pulse_backend.FakePulseBackend):
dirname = os.path.dirname(__file__)
conf_filename = "conf_almaden.json"
props_filename = "props_almaden.json"
defs_filename = "defs_almaden.json"
backend_name = "fake_almaden"

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""

import os
from qiskit.providers.fake_provider import fake_pulse_backend, fake_backend
from qiskit.providers.fake_provider import fake_qasm_backend, fake_backend


class FakeJohannesburgV2(fake_backend.FakeBackendV2):
Expand All @@ -35,11 +35,10 @@ class FakeJohannesburgV2(fake_backend.FakeBackendV2):
dirname = os.path.dirname(__file__)
conf_filename = "conf_johannesburg.json"
props_filename = "props_johannesburg.json"
defs_filename = "defs_johannesburg.json"
backend_name = "fake_johannesburg_v2"


class FakeJohannesburg(fake_pulse_backend.FakePulseBackend):
class FakeJohannesburg(fake_qasm_backend.FakeQasmBackend):
"""A fake Johannesburg backend.

.. code-block:: text
Expand All @@ -56,5 +55,4 @@ class FakeJohannesburg(fake_pulse_backend.FakePulseBackend):
dirname = os.path.dirname(__file__)
conf_filename = "conf_johannesburg.json"
props_filename = "props_johannesburg.json"
defs_filename = "defs_johannesburg.json"
backend_name = "fake_johannesburg"

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""

import os
from qiskit.providers.fake_provider import fake_pulse_backend, fake_backend
from qiskit.providers.fake_provider import fake_qasm_backend, fake_backend


class FakeSingaporeV2(fake_backend.FakeBackendV2):
Expand All @@ -35,11 +35,10 @@ class FakeSingaporeV2(fake_backend.FakeBackendV2):
dirname = os.path.dirname(__file__)
conf_filename = "conf_singapore.json"
props_filename = "props_singapore.json"
defs_filename = "defs_singapore.json"
backend_name = "fake_singapore_v2"


class FakeSingapore(fake_pulse_backend.FakePulseBackend):
class FakeSingapore(fake_qasm_backend.FakeQasmBackend):
"""A fake Singapore backend.

.. code-block:: text
Expand All @@ -56,5 +55,4 @@ class FakeSingapore(fake_pulse_backend.FakePulseBackend):
dirname = os.path.dirname(__file__)
conf_filename = "conf_singapore.json"
props_filename = "props_singapore.json"
defs_filename = "defs_singapore.json"
backend_name = "fake_singapore"
21 changes: 21 additions & 0 deletions releasenotes/notes/remove-pulse-defs-old-20q-4ed46085b4a15678.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
upgrade:
- |
The fake backend objects :class:`~.FakeJohannesburg`,
:class:`~.FakeJohannesburgV2`, :class:`~.FakeAlmaden`,
:class:`~.FakeAlmadenV2, :class:`~.FakeSingapore`, and
Comment thread
jakelishman marked this conversation as resolved.
Outdated
:class:`~.FakeSingaporeV2` no longer contain the pulse defaults payloads.
This means for the :class:`~.BackendV1` based classes the
:meth:`.BackendV1.defaults` method and pulse simulation via
:meth:`.BackendV1.run` is no longer available. For :class:`~.BackendV2`
based classes the :attr:`~InstructionProperties.calibration` property for
instructions in the :class:`~.Target` is no longer populated. This
change was done because these systems had exceedingly large pulse defaults
payloads (in total ~50MB) due to using sampled waveforms instead of
parameteric pulse definitions. These three payload files took > 50% of the
disk space required to install qiskit-terra. When weighed against the
potential value of being able to compile with pulse awareness or pulse
simulate these retired devices the file size is not worth the cost. If
you require to leverage these properties you can leverage an older version
of Qiskit and leverage :mod:`~qiskit.qpy` to transfer circuits from
older versions of qiskit into the current release.