Workloads
Pasqal has developed a set of quantum-based or quantum-inspired algorithms which can be executed using the dedicated workload API. A workload is the execution of one of these algorithms on the Pasqal Cloud infrastructure.
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="<WORKLOAD_TYPE>", backend="<BACKEND>", config={"config_param_1": "value"})
You can cancel the workload by doing:
sdk.cancel_workload(workload.id)
Or refresh the workload status/results by with the following:
workload = sdk.get_workload(workload.id)
Once the workload has been processed, you can print the result like this:
print(f"workload-id: {workload.id}, status: {workload.status}, result: {workload.result}")