-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Move qiskit.test.mock to qiskit.providers.fake_provider and deprecate
#8121
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
Changes from all commits
Commits
Show all changes
73 commits
Select commit
Hold shift + click to select a range
60e56d7
redirect imports from qiskit.test.mock to qiskit.providers.fake_provider
HuangJunye 6e2fd80
import the rest of classes in fake_backend_v2 to fake_provider
HuangJunye 49e532a
redirect imports to fake_provider
HuangJunye f63b1ff
change jupyter-execute to code-block
HuangJunye d63922c
redirect import
HuangJunye b1262fb
Combine multiple imports into one
HuangJunye eab4d67
Add missing )
HuangJunye b4ec80e
move all files except __init__ from qiskit.test.mock to qiskit.provid…
HuangJunye 3775c05
redirect imports in fake_provider.__init__.py
HuangJunye bc65bc3
redirect imports in mock.__init__.py
HuangJunye 701688f
Use relative imports in fake_provider.__init__.py
HuangJunye 048acf8
redirect .utlis imports
HuangJunye f446ab9
Don't import fake_backend_v2.py in __init__ to avoid clashes of FakeB…
HuangJunye 66710f5
Match imports from the old and new __init__
HuangJunye 7d09331
Organize imports
HuangJunye d718007
Merge branch 'main' into move-qiskit-test-mock
HuangJunye c9f7daa
black linting
HuangJunye e27ab0c
Fix FakePulseBackend import order dependency
HuangJunye 60851fc
fix cyclic import
HuangJunye 0c52266
move relative import after absolute import
HuangJunye 9c8f719
fix cyclic import
HuangJunye d3b55d9
Update MANIFEST.ini with new path
HuangJunye 53a888c
add deprecation warning
HuangJunye af0f110
add deprecation test
HuangJunye a012590
add release note
HuangJunye b238b65
move test files from test.python.mock to test.python.providers.fake_p…
HuangJunye 0588806
linting
HuangJunye dc1e9bc
linting
HuangJunye 95ae51f
change deprecation warning location
HuangJunye 434da55
update path for tools/update_fake_backends.py
HuangJunye 3e3f7a7
rename docstrings
HuangJunye ad7a0e8
Update ibmq_mock.py
HuangJunye ab0ce9a
import back FakeBackendV2 and FakeBackend5QV2 in __init__
HuangJunye 1082bd8
Modify release note
HuangJunye 1bb25ff
Merge remote-tracking branch 'upstream/main' into move-qiskit-test-mock
HuangJunye 113a65a
reformat release note
HuangJunye cab72ae
remove unnecessary tests
HuangJunye 19bf4c0
Merge remote-tracking branch 'upstream/main' into move-qiskit-test-mock
HuangJunye 94369f0
Use relative imports
HuangJunye 3ae61e8
redirect import in test_schedular.py
HuangJunye f456e83
Merge branch 'main' into move-qiskit-test-mock
HuangJunye 98c7fc4
first draft of module level doc
HuangJunye b3b19dc
Update docstring of fake provider v1 and v2
HuangJunye dcfe277
Update wording of module level doc
HuangJunye 2a79ab0
add fake V1 and V2 backends
HuangJunye 61a33eb
Correct fake v1 and v2 backends in the list
HuangJunye 61308eb
comment on backends that do not have V2 versions
HuangJunye 2c24b47
list special fake backends
HuangJunye a864a38
Add descriptions for sections
HuangJunye 2af0c11
add code example using jupyter execute
HuangJunye b43ed0c
Update code example and improve descriptions of the module
HuangJunye 1b4f8a3
not using fake provider before fake provider get backend name is fixed
HuangJunye 98225d0
Merge branch 'main' into move-qiskit-test-mock
HuangJunye 7ead738
modify comment
HuangJunye 88d6812
formating fix
HuangJunye 3aee7a8
Remove fake backend coupling map from docstrings
HuangJunye 170e075
Merge branch 'main' into move-qiskit-test-mock
HuangJunye eddfa65
linting
HuangJunye 4560748
remove coupling map of Pooughkeepsie
HuangJunye fe1f927
Merge branch 'main' into move-qiskit-test-mock
HuangJunye c750e79
add qiskit-aer to tox.ini as deps for docs build
HuangJunye 7dee87f
Merge branch 'main' into move-qiskit-test-mock
HuangJunye e4170e1
Revert "remove coupling map of Pooughkeepsie"
HuangJunye 20cdd4f
Revert "linting"
HuangJunye a29f409
Revert "Remove fake backend coupling map from docstrings"
HuangJunye 4547eb2
fix coupling maps
HuangJunye 7390620
Merge branch 'main' into move-qiskit-test-mock
HuangJunye c2d2939
Fix minor typos
jakelishman 3991e70
Issue deprecation warnings from all levels of package
jakelishman c956195
Merge remote-tracking branch 'ibm/main' into move-qiskit-test-mock
jakelishman be51db0
Merge remote-tracking branch 'ibm/main' into move-qiskit-test-mock
jakelishman 795f688
Import from the correct location
jakelishman 20da0cc
Merge branch 'main' into move-qiskit-test-mock
mergify[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| .. _qiskit-providers-fakeprovider: | ||
|
|
||
| .. automodule:: qiskit.providers.fake_provider | ||
| :no-members: | ||
| :no-inherited-members: | ||
| :no-special-members: |
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
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,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 |
Oops, something went wrong.
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.