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

qiskit.test.mock is deprecated #1349

Merged
merged 5 commits into from
Jul 11, 2023
Merged

qiskit.test.mock is deprecated #1349

merged 5 commits into from
Jul 11, 2023

Conversation

WhiteSymmetry
Copy link
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

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
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!

tutorials/circuits_advanced/01_advanced_circuits.ipynb Outdated Show resolved Hide resolved
Copy link
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
5 checks passed
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