qunicorn_core.core.pilotmanager package
Submodules
qunicorn_core.core.pilotmanager.aws_pilot module
- class qunicorn_core.core.pilotmanager.aws_pilot.AWSPilot
Bases:
PilotThe AWS Pilot
- cancel_provider_specific(job_dto)
Cancel execution of a job at the corresponding backend
- 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
- 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.
qunicorn_core.core.pilotmanager.base_pilot module
- class qunicorn_core.core.pilotmanager.base_pilot.Pilot
Bases:
objectBase class for Pilots
- cancel(job: JobCoreDto)
Cancel the execution of a job, locally or if that is not possible at the backend
- cancel_provider_specific(job)
Cancel execution of a job at the corresponding backend
- 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
- provider_name: ProviderName
- static qubit_binary_to_hex(qubits_in_binary: dict, job_id: int) dict
To make sure that the qubits in the counts or probabilities are in hex format and not in binary format
- static qubits_decimal_to_hex(qubits_in_binary: dict, job_id: int) dict
To make sure that the qubits in the counts or probabilities are in hex format and not in decimal format
- 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