- class BackendV1(configuration, provider=None, **fields)¶
Abstract class for Backends
This abstract class is to be used for all Backend objects created by a provider. There are several classes of information contained in a Backend. The first are the attributes of the class itself. These should be used to defined the immutable characteristics of the backend. The
optionsattribute of the backend is used to contain the dynamic user configurable options of the backend. It should be used more for runtime options that configure how the backend is used. For example, something like a
shotsfield for a backend that runs experiments which would contain an int for how many shots to execute. The
propertiesattribute is optionally defined
BackendPropertiesobject and is used to return measured properties, or properties of a backend that may change over time. The simplest example of this would be a version string, which will change as a backend is updated, but also could be something like noise parameters for backends that run experiments.
This first version of the Backend abstract class is written to be mostly backwards compatible with the legacy providers interface. This includes reusing the model objects
BackendConfiguration. This was done to ease the transition for users and provider maintainers to the new versioned providers. Expect, future versions of this abstract class to change the data model and interface.
Initialize a backend class
AttributeError – if input field not a valid options
In addition to the public abstract methods, subclasses should also implement the following private methods:
- abstract classmethod _default_options()¶
Return the default options
This method will return a
qiskit.providers.Optionssubclass object that will be used for the default options. These should be the default parameters to use for the options of the backend.
- A options object with
default values set
- Type renvoyé
Return the backend configuration.
Return the backend name.
Return the backend properties.
Return the backend Provider.
Run on the backend.
Set the options fields for the backend
Return the backend status.
Return the options for the backend
The options of a backend are the dynamic parameters defining how the backend is used. These are used to control the
- version = 1¶