FakeProviderForBackendV2
class qiskit.providers.fake_provider.FakeProviderForBackendV2
Bases: ProviderV1
Fake provider containing fake V2 backends.
Only filtering backends by name is implemented. This class contains all fake V2 backends available in the qiskit.providers.fake_provider
.
The class qiskit.providers.fake_provider.fake_provider.FakeProviderForBackendV2
is deprecated as of qiskit 0.46.0. It will be removed in qiskit 1.0. This class has been migrated to the qiskit_ibm_runtime package. To migrate your code, run pip install qiskit-ibm-runtime and use from qiskit_ibm_runtime.fake_provider import FakeProviderExample instead of from qiskit.providers.fake_provider import FakeProviderExample.
Attributes
version
Default value: 1
Methods
backends
backends(name=None, **kwargs)
Return a list of backends matching the specified filtering.
Parameters
- name (str) – name of the backend.
- **kwargs – dict used for filtering.
Returns
a list of Backends that match the filtering
criteria.
Return type
get_backend
get_backend(name=None, **kwargs)
Return a single backend matching the specified filtering.
Parameters
- name (str) – name of the backend.
- **kwargs – dict used for filtering.
Returns
a backend matching the filtering.
Return type
Raises
QiskitBackendNotFoundError – if no backend could be found or more than one backend matches the filtering criteria.