FakeProvider#

class qiskit.providers.fake_provider.FakeProvider[código fonte]#

Bases: ProviderV1

Fake provider containing fake V1 backends.

Only filtering backends by name is implemented. This class contains all fake V1 backends available in the qiskit.providers.fake_provider.

Attributes

version = 1#

Methods

backends(name=None, **kwargs)[código fonte]#

Return a list of backends matching the specified filtering.

Parâmetros:
  • name (str) – name of the backend.

  • **kwargs – dict used for filtering.

Retorno:

a list of Backends that match the filtering

criteria.

Tipo de retorno:

list[Backend]

get_backend(name=None, **kwargs)[código fonte]#

Return a single backend matching the specified filtering.

Parâmetros:
  • name (str) – name of the backend.

  • **kwargs – dict used for filtering.

Retorno:

a backend matching the filtering.

Tipo de retorno:

Backend

Levanta:

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