qunicorn_core.core.device_service module

qunicorn_core.core.device_service.check_if_device_available(device_id: int, token: str | None) dict

Checks if the backend is available at the provider currently

qunicorn_core.core.device_service.get_all_devices(provider: int | None = None, min_qubits: int | None = None, is_simulator: bool | None = None, is_local: bool | None = None) list[SimpleDeviceDto]

Gets all Devices from the DB and maps them

qunicorn_core.core.device_service.get_device_by_id(device_id: int) DeviceDto

Gets a Device from the DB by its ID and maps it

qunicorn_core.core.device_service.get_device_data_from_provider(device_id: int, token: str) dict

Get the device from the provider and return the configuration as dict

qunicorn_core.core.device_service.update_devices(provider_id: int, token: str | None = None) list[SimpleDeviceDto]

Update all backends for the provider from device_request