Qiskit / qiskit-tutorials

A collection of Jupyter notebooks showing how to use the Qiskit SDK
Apache License 2.0
2.31k stars 1.29k forks source link

updated method to instantiate noisy backend, given deprecation of qis… #1348

Closed googlercolin closed 1 year ago

googlercolin commented 2 years ago

…kit.test.mock

Summary

Modified code to instantiate noisy backend object using qiskit.providers.fake_provider, as the module qiskit.test.mock is deprecated since Qiskit Terra 0.21.0.

Details and comments

The tutorial highlights the deprecation.

image

Therefore, I modified the old code to create a FakeVigo backend as such

import qiskit.providers.fake_provider as fake
device_backend = fake.FakeVigo()
review-notebook-app[bot] commented 2 years ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB