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

adding FakeGeneva #8322

Merged
merged 18 commits into from
Sep 20, 2022
Merged
Show file tree
Hide file tree
Changes from 3 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
2 changes: 2 additions & 0 deletions qiskit/providers/fake_provider/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@
FakeCasablancaV2
FakeEssexV2
FakeGuadalupeV2
FakeGenevaV2
FakeHanoiV2
FakeJakartaV2
FakeJohannesburgV2
Expand Down Expand Up @@ -174,6 +175,7 @@
FakeCasablanca
FakeEssex
FakeGuadalupe
FakeGeneva
FakeHanoi
FakeJakarta
FakeJohannesburg
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 @@ -29,6 +29,7 @@
from .casablanca import FakeCasablancaV2
from .essex import FakeEssexV2
from .guadalupe import FakeGuadalupeV2
from .geneva import FakeGenevaV2
from .hanoi import FakeHanoiV2
from .jakarta import FakeJakartaV2
from .johannesburg import FakeJohannesburgV2
Expand Down Expand Up @@ -72,6 +73,7 @@
from .casablanca import FakeCasablanca
from .essex import FakeEssex
from .guadalupe import FakeGuadalupe
from .geneva import FakeGeneva
from .hanoi import FakeHanoi
from .jakarta import FakeJakarta
from .johannesburg import FakeJohannesburg
Expand Down
16 changes: 16 additions & 0 deletions qiskit/providers/fake_provider/backends/geneva/__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 geneva backend"""
1ucian0 marked this conversation as resolved.
Show resolved Hide resolved

from .fake_geneva import FakeGenevaV2
from .fake_geneva import FakeGeneva

Large diffs are not rendered by default.

Large diffs are not rendered by default.

38 changes: 38 additions & 0 deletions qiskit/providers/fake_provider/backends/geneva/fake_geneva.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# 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 Geneva device (27 qubit).
"""

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


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

dirname = os.path.dirname(__file__)
conf_filename = "conf_geneva.json"
props_filename = "props_geneva.json"
defs_filename = "defs_geneva.json"
backend_name = "fake_geneva_v2"


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

dirname = os.path.dirname(__file__)
conf_filename = "conf_geneva.json"
props_filename = "props_geneva.json"
defs_filename = "defs_geneva.json"
backend_name = "fake_geneva"

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 @@ -101,6 +101,7 @@ def __init__(self):
FakeCasablancaV2(),
FakeEssexV2(),
FakeGuadalupeV2(),
FakeGenevaV2(),
FakeHanoiV2(),
FakeJakartaV2(),
FakeJohannesburgV2(),
Expand Down Expand Up @@ -170,6 +171,7 @@ def __init__(self):
FakeCasablanca(),
FakeEssex(),
FakeGuadalupe(),
FakeGeneva(),
FakeHanoi(),
FakeJakarta(),
FakeJohannesburg(),
Expand Down
4 changes: 4 additions & 0 deletions releasenotes/notes/ibm_geneva-5b1e9308dc302e2e.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
1ucian0 marked this conversation as resolved.
Show resolved Hide resolved
features:
- |
The fake backend :class:`~FakeGeneva` was added to with the information from IBM Quantum `ibm_geneva` system.
1ucian0 marked this conversation as resolved.
Show resolved Hide resolved