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

Add FakeAuckland backend to fake provider #8467

Merged
merged 14 commits into from
Sep 19, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 2 additions & 0 deletions qiskit/providers/fake_provider/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@
FakeAlmadenV2
FakeArmonkV2
FakeAthensV2
FakeAucklandV2
FakeBelemV2
FakeBoeblingenV2
FakeBogotaV2
Expand Down Expand Up @@ -164,6 +165,7 @@
FakeAlmaden
FakeArmonk
FakeAthens
FakeAuckland
FakeBelem
FakeBoeblingen
FakeBogota
Expand Down
2 changes: 2 additions & 0 deletions qiskit/providers/fake_provider/backends/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from .almaden import FakeAlmadenV2
from .armonk import FakeArmonkV2
from .athens import FakeAthensV2
from .auckland import FakeAucklandV2
from .belem import FakeBelemV2
from .boeblingen import FakeBoeblingenV2
from .bogota import FakeBogotaV2
Expand Down Expand Up @@ -61,6 +62,7 @@
from .almaden import FakeAlmaden
from .armonk import FakeArmonk
from .athens import FakeAthens
from .auckland import FakeAuckland
from .belem import FakeBelem
from .boeblingen import FakeBoeblingen
from .bogota import FakeBogota
Expand Down
16 changes: 16 additions & 0 deletions qiskit/providers/fake_provider/backends/auckland/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2022.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.

"""Mock Auckland backend"""

from .fake_auckland import FakeAucklandV2
from .fake_auckland import FakeAuckland

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2022.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.


"""
Fake Auckland device (27 qubit).
"""

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


class FakeAucklandV2(fake_backend.FakeBackendV2):
"""A fake 27 qubit backend."""

dirname = os.path.dirname(__file__)
conf_filename = "conf_auckland.json"
props_filename = "props_auckland.json"
defs_filename = "defs_auckland.json"
backend_name = "fake_auckland_v2"


class FakeAuckland(fake_pulse_backend.FakePulseBackend):
"""A fake 27 qubit backend."""

dirname = os.path.dirname(__file__)
conf_filename = "conf_auckland.json"
props_filename = "props_auckland.json"
defs_filename = "defs_auckland.json"
backend_name = "fake_auckland"

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions qiskit/providers/fake_provider/fake_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ def __init__(self):
FakeAlmadenV2(),
FakeArmonkV2(),
FakeAthensV2(),
FakeAucklandV2(),
FakeBelemV2(),
FakeBoeblingenV2(),
FakeBogotaV2(),
Expand Down Expand Up @@ -159,6 +160,7 @@ def __init__(self):
FakeAlmaden(),
FakeArmonk(),
FakeAthens(),
FakeAuckland(),
FakeBelem(),
FakeBoeblingen(),
FakeBogota(),
Expand Down
5 changes: 5 additions & 0 deletions releasenotes/notes/fake_auckland-deadbeef.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
features:
- |
The fake backend :class:`~FakeAuckland` was added with the information
from IBM Quantum `ibm_auckland` system.