qiskit-tutorials
qiskit-tutorials copied to clipboard
updated method to instantiate noisy backend, given deprecation of qis…
…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.

Therefore, I modified the old code to create a FakeVigo backend as such
import qiskit.providers.fake_provider as fake
device_backend = fake.FakeVigo()
Check out this pull request on ![]()
See visual diffs & provide feedback on Jupyter Notebooks.
Powered by ReviewNB