Skip to content
Pasqal Documentation

Workloads

A workload is a unit of work to be executed on Pasqal Cloud Services infrastructure.

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"})

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}")

You can cancel a workload by doing:

sdk.cancel_workload(workload.id)