Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit Runtime client Go to the latest version

FakeProviderForBackendV2

class FakeProviderForBackendV2

GitHub

Fake provider containing fake V2 backends.

Only filtering backends by name is implemented. This class contains all fake V2 backends available in the qiskit_ibm_runtime.fake_provider.


Attributes

version

Default value: 1


Methods

backend

backend(name=None, **kwargs)

GitHub

Filter backends in provider by name.

backends

backends(name=None, **kwargs)

GitHub

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

list[Backend]

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

Backend

Raises

QiskitBackendNotFoundError – if no backend could be found or more than one backend matches the filtering criteria.

Was this page helpful?
Report a bug or request content on GitHub.