qunicorn_core.db.models.device module

class qunicorn_core.db.models.device.DeviceDataclass(name, num_qubits, is_simulator, is_local, provider, qprov_id=None)

Bases: DbModel

Dataclass for storing CloudDevices of a provider

Attributes:

id (int): The id of the device. (set by the database) name (str): The name of the device. num_qubits (int): The amount of qubits that is available at this device. is_simulator (bool): The information whether the device is a simulator (true) or not (false). is_local (bool): The information whether jobs executed on this device are executed local or not. provider (ProviderDataclass): The provider of this device.

classmethod get_by_name(name: str, provider: int | str | ProviderDataclass | None = None)
id: Mapped[int]
is_local: Mapped[bool]
is_simulator: Mapped[bool]
name: Mapped[str]
num_qubits: Mapped[int]
provider: Mapped[ProviderDataclass]
provider_id: Mapped[int]
qprov_id: Mapped[UUID | None]