Skip to content

Commit

Permalink
Add FakePrague Egret R1 to fake backends (Qiskit/qiskit#9369)
Browse files Browse the repository at this point in the history
* Add FakePrague device

* Add release note

* Update releasenotes/notes/add_fake_prague-79f82b83c2e2329c.yaml

Co-authored-by: Matthew Treinish <[email protected]>

* Add suggestions

Co-authored-by: Matthew Treinish <[email protected]>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Jan 13, 2023
1 parent 0e499b3 commit e3d1a69
Show file tree
Hide file tree
Showing 7 changed files with 48 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 @@ -136,6 +136,7 @@
FakeOurenseV2
FakeParisV2
FakePerth
FakePrague
FakePoughkeepsieV2
FakeQuitoV2
FakeRochesterV2
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 @@ -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_ibm_provider/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_ibm_provider/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_ibm_provider/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

0 comments on commit e3d1a69

Please sign in to comment.