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

Replace deprecated module qiskit.test.mock #1387

Merged
merged 4 commits into from
Jan 25, 2023
Merged

Replace deprecated module qiskit.test.mock #1387

merged 4 commits into from
Jan 25, 2023

Conversation

king-p3nguin
Copy link
Contributor

@king-p3nguin king-p3nguin commented Dec 22, 2022

Summary

  • Replace deprecated module qiskit.test.mock by qiskit.providers.fake_provider

Details and comments

  • When I run the 04_transpiler_passes_and_passmanager.ipynb and 06_building_pulse_schedules.ipynb, I got the following DeprecationWarning
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'.

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

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 for the contribution! Can you also make similar changes in this file: https://github.com/Qiskit/qiskit-tutorials/blob/master/tutorials/simulators/2_device_noise_simulation.ipynb ?

This should be the last one of these in addition to #1349 that will be merged in the next hour or so.

@HuangJunye
Copy link
Contributor

Thanks for the contribution! Can you also make similar changes in this file: https://github.com/Qiskit/qiskit-tutorials/blob/master/tutorials/simulators/2_device_noise_simulation.ipynb ?

This should be the last one of these in addition to #1349 that will be merged in the next hour or so.

Just realized the device noise simulation notebook is updated in #1348. I will approve and merge this PR as is.

@mergify mergify bot merged commit 9819801 into Qiskit:master Jan 25, 2023
@king-p3nguin king-p3nguin deleted the pr-mock-to-fake branch January 25, 2023 19:31
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.

2 participants