Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove pulse defaults for old fake 20q backends #8665

Merged
merged 11 commits into from
Sep 29, 2022

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
jakelishman marked this conversation as resolved.
Show resolved Hide resolved
: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.