bloqade.analog.task.exclusive.ExclusiveRemoteTask
classExclusiveRemoteTask¶source
bloqade.analog.task.exclusive.ExclusiveRemoteTask
Bases: CustomRemoteTaskABC
Signature
class ExclusiveRemoteTask(_task_ir: QuEraTaskSpecification | None, _metadata: Dict[str, ParamType], _parallel_decoder: ParallelDecoder | None, _http_handler: HTTPHandlerABC = HTTPHandler(), _task_id: str | None = None, _task_result_ir: QuEraTaskResults | None = None)Parameters
| Name | Type | Default | Description |
|---|---|---|---|
_task_ir | QuEraTaskSpecification | None | required | |
_metadata | Dict[str, ParamType] | required | |
_parallel_decoder | ParallelDecoder | None | required | |
_http_handler | HTTPHandlerABC | HTTPHandler() | |
_task_id | str | None | None | |
_task_result_ir | QuEraTaskResults | None | None |
methodfrom_compile_results¶source
bloqade.analog.task.exclusive.ExclusiveRemoteTask.from_compile_results
def from_compile_results(task_ir, metadata, parallel_decoder)Parameters
| Name | Type | Description |
|---|---|---|
task_ir | — | |
metadata | — | |
parallel_decoder | — |
methodfetch¶source
bloqade.analog.task.exclusive.ExclusiveRemoteTask.fetch
def fetch()methodpull¶source
bloqade.analog.task.exclusive.ExclusiveRemoteTask.pull
def pull(poll_interval: float = 20)Blocking pull to get the task result. poll_interval is the time interval to poll the task status. Please ensure that it is relatively large, otherwise the server could get overloaded with queries.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
poll_interval | float | 20 |
methodcancel¶source
bloqade.analog.task.exclusive.ExclusiveRemoteTask.cancel
def cancel()methodstatus¶source
bloqade.analog.task.exclusive.ExclusiveRemoteTask.status
methodresult¶source
bloqade.analog.task.exclusive.ExclusiveRemoteTask.result
def result()propertymetadata¶source
bloqade.analog.task.exclusive.ExclusiveRemoteTask.metadata
metadatapropertygeometry¶source
bloqade.analog.task.exclusive.ExclusiveRemoteTask.geometry
geometrypropertytask_ir¶source
bloqade.analog.task.exclusive.ExclusiveRemoteTask.task_ir
task_irpropertytask_id¶source
bloqade.analog.task.exclusive.ExclusiveRemoteTask.task_id
task_id: strpropertytask_result_ir¶source
bloqade.analog.task.exclusive.ExclusiveRemoteTask.task_result_ir
task_result_irpropertyparallel_decoder¶source
bloqade.analog.task.exclusive.ExclusiveRemoteTask.parallel_decoder
parallel_decoder