qiskit-tutorials icon indicating copy to clipboard operation
qiskit-tutorials copied to clipboard

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

Open googlercolin opened this issue 3 years ago • 1 comments

…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()

googlercolin avatar Jul 14 '22 02:07 googlercolin

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB