Skip to content

bloqade.task.AbstractRemoteTask

← Module overview

classAbstractRemoteTasksource

bloqade.task.AbstractRemoteTask

Bases: AbstractTask[Params, RetType]

Base class for tasks generated by the devices.

Signature
class AbstractRemoteTask(kernel: ir.Method[Params, RetType], args: tuple[Any, ...], kwargs: dict[str, Any])

Parameters

NameTypeDescription
kernelir.Method[Params, RetType]
argstuple[Any, ...]
kwargsdict[str, Any]

methodrunsource

bloqade.task.AbstractRemoteTask.run

Signature
def run(*, shots: int = 1, timeout: float | None = None) -> list[RetType]

Parameters

NameTypeDefaultDescription
shotsint1
timeoutfloat | NoneNone

Returns

list[RetType]

source

methodrun_asyncsource

bloqade.task.AbstractRemoteTask.run_async

def run_async(*, shots: int = 1) -> BatchFuture[RetType]

Executes the kernel asynchronously and returns a Future object.

Parameters

NameTypeDefaultDescription
shotsint1

Returns

BatchFuture[RetType]

source