forked from Qiskit/qiskit-ibm-provider
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move
qiskit.test.mock
to qiskit.providers.fake_provider
and depre…
…cate (Qiskit/qiskit#8121) * redirect imports from qiskit.test.mock to qiskit.providers.fake_provider * import the rest of classes in fake_backend_v2 to fake_provider * redirect imports to fake_provider Anything that can be imported from fake_provider root are imported from there instead of sub files. * change jupyter-execute to code-block * redirect import * Combine multiple imports into one * Add missing ) * move all files except __init__ from qiskit.test.mock to qiskit.providers.fake_provider * redirect imports in fake_provider.__init__.py * redirect imports in mock.__init__.py * Use relative imports in fake_provider.__init__.py * redirect .utlis imports * Don't import fake_backend_v2.py in __init__ to avoid clashes of FakeBackendV2 names * Match imports from the old and new __init__ * Organize imports * black linting * Fix FakePulseBackend import order dependency * fix cyclic import * move relative import after absolute import * fix cyclic import * Update MANIFEST.ini with new path * add deprecation warning * add deprecation test * add release note * move test files from test.python.mock to test.python.providers.fake_provider * linting * linting * change deprecation warning location * update path for tools/update_fake_backends.py * rename docstrings * Update ibmq_mock.py * import back FakeBackendV2 and FakeBackend5QV2 in __init__ * Modify release note * reformat release note * remove unnecessary tests These two tests were introduced in PR Qiskit/qiskit#7437 to test the new imports which are not needed any more: Qiskit/qiskit#7437 (comment) * Use relative imports * redirect import in test_schedular.py * first draft of module level doc * Update docstring of fake provider v1 and v2 * Update wording of module level doc * add fake V1 and V2 backends * Correct fake v1 and v2 backends in the list * comment on backends that do not have V2 versions * list special fake backends * Add descriptions for sections * add code example using jupyter execute * Update code example and improve descriptions of the module * not using fake provider before fake provider get backend name is fixed * modify comment * formating fix * Remove fake backend coupling map from docstrings * linting * remove coupling map of Pooughkeepsie * add qiskit-aer to tox.ini as deps for docs build * Revert "remove coupling map of Pooughkeepsie" This reverts commit 45607489303fde0e65e550f117735ec4f468ff3d. * Revert "linting" This reverts commit eddfa65bf6f65f076c7eff4d1a20bb251c56658b. * Revert "Remove fake backend coupling map from docstrings" This reverts commit 3aee7a8b57e8ea248ede0bec9db67e02dcb08eed. * fix coupling maps * Fix minor typos * Issue deprecation warnings from all levels of package The previous commits in this PR did not maintain the old import paths for submodules of `qisit.test.mock`. This re-instatates them, with suitable deprecation warnings. Hopefully nobody is using these anyway, but it's better to be on the safe side. * Import from the correct location Co-authored-by: Jake Lishman <[email protected]> Co-authored-by: Jake Lishman <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
ec63dc2
commit 597922f
Showing
221 changed files
with
6,770 additions
and
74 deletions.
There are no files selected for viewing
This file contains 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 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,104 @@ | ||
# This code is part of Qiskit. | ||
# | ||
# (C) Copyright IBM 2019. | ||
# | ||
# 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. | ||
|
||
|
||
""" | ||
Mocked versions of real quantum backends. | ||
""" | ||
|
||
# BackendV2 Backends | ||
from .almaden import FakeAlmadenV2 | ||
from .armonk import FakeArmonkV2 | ||
from .athens import FakeAthensV2 | ||
from .belem import FakeBelemV2 | ||
from .boeblingen import FakeBoeblingenV2 | ||
from .bogota import FakeBogotaV2 | ||
from .brooklyn import FakeBrooklynV2 | ||
from .burlington import FakeBurlingtonV2 | ||
from .cairo import FakeCairoV2 | ||
from .cambridge import FakeCambridgeV2 | ||
from .casablanca import FakeCasablancaV2 | ||
from .essex import FakeEssexV2 | ||
from .guadalupe import FakeGuadalupeV2 | ||
from .hanoi import FakeHanoiV2 | ||
from .jakarta import FakeJakartaV2 | ||
from .johannesburg import FakeJohannesburgV2 | ||
from .kolkata import FakeKolkataV2 | ||
from .lagos import FakeLagosV2 | ||
from .lima import FakeLimaV2 | ||
from .london import FakeLondonV2 | ||
from .manhattan import FakeManhattanV2 | ||
from .manila import FakeManilaV2 | ||
from .melbourne import FakeMelbourneV2 | ||
from .montreal import FakeMontrealV2 | ||
from .mumbai import FakeMumbaiV2 | ||
from .nairobi import FakeNairobiV2 | ||
from .ourense import FakeOurenseV2 | ||
from .paris import FakeParisV2 | ||
from .poughkeepsie import FakePoughkeepsieV2 | ||
from .quito import FakeQuitoV2 | ||
from .rochester import FakeRochesterV2 | ||
from .rome import FakeRomeV2 | ||
from .santiago import FakeSantiagoV2 | ||
from .singapore import FakeSingaporeV2 | ||
from .sydney import FakeSydneyV2 | ||
from .toronto import FakeTorontoV2 | ||
from .valencia import FakeValenciaV2 | ||
from .vigo import FakeVigoV2 | ||
from .washington import FakeWashingtonV2 | ||
from .yorktown import FakeYorktownV2 | ||
|
||
# BackendV1 Backends | ||
from .almaden import FakeAlmaden | ||
from .armonk import FakeArmonk | ||
from .athens import FakeAthens | ||
from .belem import FakeBelem | ||
from .boeblingen import FakeBoeblingen | ||
from .bogota import FakeBogota | ||
from .brooklyn import FakeBrooklyn | ||
from .burlington import FakeBurlington | ||
from .cairo import FakeCairo | ||
from .cambridge import FakeCambridge | ||
from .cambridge import FakeCambridgeAlternativeBasis | ||
from .casablanca import FakeCasablanca | ||
from .essex import FakeEssex | ||
from .guadalupe import FakeGuadalupe | ||
from .hanoi import FakeHanoi | ||
from .jakarta import FakeJakarta | ||
from .johannesburg import FakeJohannesburg | ||
from .kolkata import FakeKolkata | ||
from .lagos import FakeLagos | ||
from .lima import FakeLima | ||
from .london import FakeLondon | ||
from .manhattan import FakeManhattan | ||
from .manila import FakeManila | ||
from .melbourne import FakeMelbourne | ||
from .montreal import FakeMontreal | ||
from .mumbai import FakeMumbai | ||
from .nairobi import FakeNairobi | ||
from .ourense import FakeOurense | ||
from .paris import FakeParis | ||
from .poughkeepsie import FakePoughkeepsie | ||
from .quito import FakeQuito | ||
from .rochester import FakeRochester | ||
from .rome import FakeRome | ||
from .rueschlikon import FakeRueschlikon | ||
from .santiago import FakeSantiago | ||
from .singapore import FakeSingapore | ||
from .sydney import FakeSydney | ||
from .tenerife import FakeTenerife | ||
from .tokyo import FakeTokyo | ||
from .toronto import FakeToronto | ||
from .valencia import FakeValencia | ||
from .vigo import FakeVigo | ||
from .washington import FakeWashington | ||
from .yorktown import FakeYorktown |
16 changes: 16 additions & 0 deletions
16
qiskit_ibm_provider/fake_provider/backends/almaden/__init__.py
This file contains 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 2019. | ||
# | ||
# 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 almaden backend""" | ||
|
||
from .fake_almaden import FakeAlmadenV2 | ||
from .fake_almaden import FakeAlmaden |
1 change: 1 addition & 0 deletions
1
qiskit_ibm_provider/fake_provider/backends/almaden/conf_almaden.json
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
qiskit_ibm_provider/fake_provider/backends/almaden/defs_almaden.json
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.