FakeProviderForBackendV2#

class qiskit.providers.fake_provider.FakeProviderForBackendV2[source]#

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.

Attributes

version = 1#

Methods

backends(name=None, **kwargs)[source]#

Return a list of backends matching the specified filtering.

প্যারামিটার:
  • name (str) -- name of the backend.

  • **kwargs -- dict used for filtering.

রিটার্নস:

a list of Backends that match the filtering

criteria.

রিটার্ন টাইপ:

list[Backend]

get_backend(name=None, **kwargs)[source]#

Return a single backend matching the specified filtering.

প্যারামিটার:
  • name (str) -- name of the backend.

  • **kwargs -- dict used for filtering.

রিটার্নস:

a backend matching the filtering.

রিটার্ন টাইপ:

Backend

রেইজেস:

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