Workloads
A workload is a unit of work to be executed on Pasqal Cloud Services infrastructure.
Create a workload
Section titled “Create a workload”To submit a new workload, select a type, target one of the available backends and provide a configuration object to execute it.
You can create a Workload
through the SDK
with the following command:
workload = sdk.create_workload(workload_type="", backend="", config={"config_param_1": "value"})
Get a workload status/result
Section titled “Get a workload status/result”Refresh the workload status/results with the following:
workload = sdk.get_workload(workload.id)
Once the workload has been processed, you can fetch the result like this:
print(f"workload-id: {workload.id}, status: {workload.status}, result: {workload.result}")
Cancel a workload
Section titled “Cancel a workload”You can cancel a workload by doing:
sdk.cancel_workload(workload.id)