Skip to content

bloqade.task.AbstractSimulatorTask

← Module overview

classAbstractSimulatorTasksource

bloqade.task.AbstractSimulatorTask

Bases: AbstractTask[Params, RetType], Generic[Params, RetType, StateType]

Base class for tasks generated by local simulators.

Signature
class AbstractSimulatorTask(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.AbstractSimulatorTask.run

def run() -> RetType

Executes the kernel and returns the result.

Returns

RetType

source

propertystatesource

bloqade.task.AbstractSimulatorTask.state

state: StateType

Returns the state of the simulator after running the task.

source