qunicorn_core.core.pilotmanager package

Submodules

qunicorn_core.core.pilotmanager.aws_pilot module

class qunicorn_core.core.pilotmanager.aws_pilot.AWSPilot

Bases: Pilot

The AWS Pilot

execute_provider_specific(job_core_dto: JobCoreDto)

Execute a job of a provider specific type on a backend using a Pilot

get_standard_job_with_deployment(user: UserDataclass, device: DeviceDataclass) JobDataclass

Get the standard job including its deployment for a certain user and device

get_standard_provider()

Create the standard ProviderDataclass Object for the pilot and return it

is_device_available(device: DeviceDto, token: str) bool

Check if a device is available for a user

provider_name: ProviderName = 'AWS'
run(job_core_dto: JobCoreDto)

Execute the job on a local simulator and saves results in the database

save_devices_from_provider(device_request)

Save the available aws device into the database. Since there is currently only a local simulator in use, the device_request parameter is unused.

supported_language: AssemblerLanguage = 'BRAKET'

qunicorn_core.core.pilotmanager.base_pilot module

class qunicorn_core.core.pilotmanager.base_pilot.Pilot

Bases: object

Base class for Pilots

execute(job_core_dto: JobCoreDto) list[ResultDataclass]

Execute a job on a backend using a Pilot

execute_provider_specific(job_core_dto: JobCoreDto) list[ResultDataclass]

Execute a job of a provider specific type on a backend using a Pilot

get_device_data_from_provider(device: DeviceDto, token: str) dict

Get device data for a specific device from the provider

get_standard_devices() -> (list[qunicorn_core.db.models.device.DeviceDataclass], <class 'qunicorn_core.db.models.device.DeviceDataclass'>)

Get all devices from the provider

get_standard_job_with_deployment(user: UserDataclass, device: DeviceDataclass) JobDataclass

Create the standard ProviderDataclass Object for the pilot and return it

get_standard_provider() ProviderDataclass

Create the standard ProviderDataclass Object for the pilot and return it

has_same_provider(provider_name: ProviderName) bool

Check if the provider name is the same as the pilot provider name

is_device_available(device: DeviceDto, token: str) bool

Check if a device is available for a user

provider_name: ProviderName
run(job: JobCoreDto) list[ResultDataclass]

Run a job of type RUNNER on a backend using a Pilot

save_devices_from_provider(device_request: DeviceRequestDto)

Create the standard ProviderDataclass Object for the pilot and return it

supported_language: AssemblerLanguage

qunicorn_core.core.pilotmanager.qiskit_pilot module

Module contents