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

Add FakePrague Egret R1 to fake backends #9369

Merged
merged 6 commits into from
Jan 13, 2023
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 @@ -136,6 +136,7 @@
FakeOurenseV2
FakeParisV2
FakePerth
FakePrague
FakePoughkeepsieV2
FakeQuitoV2
FakeRochesterV2
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 @@ -48,6 +48,7 @@
from .ourense import FakeOurenseV2
from .paris import FakeParisV2
from .perth import FakePerth
from .prague import FakePrague
from .poughkeepsie import FakePoughkeepsieV2
from .quito import FakeQuitoV2
from .rochester import FakeRochesterV2
Expand Down
15 changes: 15 additions & 0 deletions qiskit/providers/fake_provider/backends/prague/__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 Prague device (33 qubits)"""

from .fake_prague import FakePrague

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions qiskit/providers/fake_provider/backends/prague/fake_prague.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# 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 Prague device (33 qubits).
"""

import os
from qiskit.providers.fake_provider import fake_backend


class FakePrague(fake_backend.FakeBackendV2):
"""A fake 33 qubit backend."""

dirname = os.path.dirname(__file__)
conf_filename = "conf_prague.json"
props_filename = "props_prague.json"
backend_name = "fake_prague"

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 @@ -120,6 +120,7 @@ def __init__(self):
FakeOurenseV2(),
FakeParisV2(),
FakePerth(),
FakePrague(),
FakePoughkeepsieV2(),
FakeQuitoV2(),
FakeRochesterV2(),
Expand Down
4 changes: 4 additions & 0 deletions releasenotes/notes/add_fake_prague-79f82b83c2e2329c.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
features:
- |
Adds the :class:`~.FakePrague` Egret R1 backend to the FakeProvider.