Skip to content

Commit

Permalink
adding FakeGeneva (Qiskit#8322)
Browse files Browse the repository at this point in the history
* conf_geneva

* reno

* adding to the test

* order

* calibration data 2022-07-12 15:40:30+02:00

* calibration from 2022-06-24 23:00:30+02:00

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

* remove v1

* reno new

Co-authored-by: Junye Huang <h.jun.ye@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Sep 20, 2022
1 parent 4dcf035 commit a417757
Show file tree
Hide file tree
Showing 8 changed files with 50 additions and 0 deletions.
1 change: 1 addition & 0 deletions qiskit_ibm_provider/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_ibm_provider/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_ibm_provider/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_ibm_provider/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_ibm_provider/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

0 comments on commit a417757

Please sign in to comment.