Skip to content
This repository was archived by the owner on Aug 21, 2023. It is now read-only.

qiskit.test.mock is deprecated#1349

Merged
mergify[bot] merged 5 commits intoQiskit:masterfrom
WhiteSymmetry:patch-3
Jul 11, 2023
Merged

qiskit.test.mock is deprecated#1349
mergify[bot] merged 5 commits intoQiskit:masterfrom
WhiteSymmetry:patch-3

Conversation

@WhiteSymmetry
Copy link
Copy Markdown
Contributor

@WhiteSymmetry WhiteSymmetry commented Aug 5, 2022

DeprecationWarning: The module 'qiskit.test.mock' is deprecated since Qiskit Terra 0.21.0, and will be removed 3 months or more later. Instead, you should import the desired object directly 'qiskit.providers.fake_provider'.
#from qiskit.test.mock import FakeVigo -->
from qiskit.providers.fake_provider import FakeVigo
(https://qiskit.org/documentation/apidoc/providers_fake_provider.html)

Summary

DeprecationWarning: The module 'qiskit.test.mock'

Details and comments

DeprecationWarning: The module 'qiskit.test.mock' is deprecated since Qiskit Terra 0.21.0, and will be removed 3 months or more later. Instead, you should import the desired object directly 'qiskit.providers.fake_provider'.
#from qiskit.test.mock import FakeVigo -->
from qiskit.providers.fake_provider import FakeVigo
(https://qiskit.org/documentation/apidoc/providers_fake_provider.html)

DeprecationWarning: The module 'qiskit.test.mock' is deprecated since Qiskit Terra 0.21.0, and will be removed 3 months or more later. Instead, you should import the desired object directly 'qiskit.providers.fake_provider'.
from qiskit.test.mock import FakeVigo --> from qiskit.providers.fake_provider import FakeVigo
@review-notebook-app
Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

WhiteSymmetry and others added 2 commits August 6, 2022 10:21
DeprecationWarning: The module 'qiskit.test.mock' is deprecated since Qiskit Terra 0.21.0, and will be removed 3 months or more later. Instead, you should import the desired object directly 'qiskit.providers.fake_provider'.
#from qiskit.test.mock import FakeVigo -->
from qiskit.providers.fake_provider import FakeVigo
(https://qiskit.org/documentation/apidoc/providers_fake_provider.html)
Copy link
Copy Markdown
Contributor

@HuangJunye HuangJunye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for your contribution!

Comment thread tutorials/circuits_advanced/01_advanced_circuits.ipynb Outdated
Copy link
Copy Markdown
Collaborator

@Eric-Arellano Eric-Arellano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for making Qiskit better! 🎉

@mergify mergify Bot merged commit 17f91fa into Qiskit:master Jul 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants