-
Notifications
You must be signed in to change notification settings - Fork 3k
adding FakeGeneva #8322
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
Merged
Merged
adding FakeGeneva #8322
Changes from 3 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
8ade92e
conf_geneva
1ucian0 0430e61
reno
1ucian0 ca4d827
adding to the test
1ucian0 d2d0cf1
Merge branch 'main' into ibm_geneva
HuangJunye 6cf67f5
order
1ucian0 3e6d07c
Merge branch 'main' into ibm_geneva
1ucian0 5ad5065
calibration data 2022-07-12 15:40:30+02:00
1ucian0 d5977ea
Merge branch 'main' into ibm_geneva
1ucian0 c8fe61b
Merge branch 'main' of github.com:Qiskit/qiskit-terra into ibm_geneva
1ucian0 36c925e
calibration from 2022-06-24 23:00:30+02:00
1ucian0 a02d819
Merge branch 'main' of github.com:Qiskit/qiskit-terra into ibm_geneva
1ucian0 6f4e596
Update releasenotes/notes/ibm_geneva-5b1e9308dc302e2e.yaml
1ucian0 fa35e90
Merge branch 'main' of github.com:Qiskit/qiskit-terra into ibm_geneva
1ucian0 e79518e
Merge branch 'main' of github.com:Qiskit/qiskit-terra into ibm_geneva
1ucian0 f8b4015
remove v1
1ucian0 9cf4b61
Merge branch 'main' of github.com:Qiskit/qiskit-terra into ibm_geneva
1ucian0 0d0181e
reno new
1ucian0 ef4b934
Merge branch 'main' into ibm_geneva
mergify[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
qiskit/providers/fake_provider/backends/geneva/__init__.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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""" | ||
|
|
||
| from .fake_geneva import FakeGenevaV2 | ||
| from .fake_geneva import FakeGeneva | ||
1 change: 1 addition & 0 deletions
1
qiskit/providers/fake_provider/backends/geneva/conf_geneva.json
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
qiskit/providers/fake_provider/backends/geneva/defs_geneva.json
Large diffs are not rendered by default.
Oops, something went wrong.
38 changes: 38 additions & 0 deletions
38
qiskit/providers/fake_provider/backends/geneva/fake_geneva.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" |
1 change: 1 addition & 0 deletions
1
qiskit/providers/fake_provider/backends/geneva/props_geneva.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| --- | ||
|
1ucian0 marked this conversation as 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.
Outdated
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.