Skip to content

Commit

Permalink
Add FakeAuckland backend to fake provider (#8467)
Browse files Browse the repository at this point in the history
* adding FakePerth

* Update releasenotes/notes/ibm_perth-5b1e9308dc302e2e.yaml

* adding FakeAuckland

This PRs adds FakeAuckland based on ibm_auckland.

* V1 removed

* Mock over Fake

* remove V1

* removing v2

* remove v2 name

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
1ucian0 and mergify[bot] authored Sep 19, 2022
1 parent 4b5a5bf commit b454a8d
Show file tree
Hide file tree
Showing 9 changed files with 55 additions and 0 deletions.
1 change: 1 addition & 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
FakeAuckland
FakeBelemV2
FakeBoeblingenV2
FakeBogotaV2
Expand Down
1 change: 1 addition & 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 FakeAuckland
from .belem import FakeBelemV2
from .boeblingen import FakeBoeblingenV2
from .bogota import FakeBogotaV2
Expand Down
15 changes: 15 additions & 0 deletions qiskit/providers/fake_provider/backends/auckland/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# 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 qubits)"""

from .fake_auckland import FakeAuckland

Large diffs are not rendered by default.

Large diffs are not rendered by default.

29 changes: 29 additions & 0 deletions qiskit/providers/fake_provider/backends/auckland/fake_auckland.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# 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 qubits).
"""

import os
from qiskit.providers.fake_provider import fake_backend


class FakeAuckland(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"

Large diffs are not rendered by default.

1 change: 1 addition & 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(),
FakeAuckland(),
FakeBelemV2(),
FakeBoeblingenV2(),
FakeBogotaV2(),
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.

0 comments on commit b454a8d

Please sign in to comment.