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()
…kit.test.mock
Summary
Modified code to instantiate noisy backend object using
qiskit.providers.fake_provider
, as the moduleqiskit.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