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 all 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
1 change: 1 addition & 0 deletions qiskit/providers/fake_provider/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@
FakeCambridgeV2
FakeCasablancaV2
FakeEssexV2
FakeGeneva
FakeGuadalupeV2
FakeHanoiV2
FakeJakartaV2
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 @@ -29,6 +29,7 @@
from .cambridge import FakeCambridgeV2
from .casablanca import FakeCasablancaV2
from .essex import FakeEssexV2
from .geneva import FakeGeneva
from .guadalupe import FakeGuadalupeV2
from .hanoi import FakeHanoiV2
from .jakarta import FakeJakartaV2
Expand Down
15 changes: 15 additions & 0 deletions qiskit/providers/fake_provider/backends/geneva/__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 Geneva device (27 qubits)"""

from .fake_geneva import FakeGeneva

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/geneva/fake_geneva.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 Geneva device (27 qubits).
"""

import os
from qiskit.providers.fake_provider import fake_backend


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

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 @@ -101,6 +101,7 @@ def __init__(self):
FakeCambridgeV2(),
FakeCasablancaV2(),
FakeEssexV2(),
FakeGeneva(),
FakeGuadalupeV2(),
FakeHanoiV2(),
FakeJakartaV2(),
Expand Down
4 changes: 4 additions & 0 deletions releasenotes/notes/ibm_geneva-34b848b0a49278dc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
features:
- |
The fake backend :class:`~FakeGeneva` was added with the information from IBM Quantum `ibm_geneva` system.