Skip to content

bloqade.analog.ir.routine.braket.BraketHardwareRoutine

← Module overview

classBraketHardwareRoutinesource

bloqade.analog.ir.routine.braket.BraketHardwareRoutine

Bases: RoutineBase

class BraketHardwareRoutine

Attributes

NameTypeDescription
backendBraketBackend

methodrun_asyncsource

bloqade.analog.ir.routine.braket.BraketHardwareRoutine.run_async

Signature
def run_async(shots: int, args: Tuple[LiteralType, ...] = (), name: Optional[str] = None, use_experimental: bool = False, shuffle: bool = False, **kwargs={}) -> RemoteBatch

Compile to a RemoteBatch, which contain Braket backend specific tasks, and run_async to Braket.

Parameters

NameTypeDefaultDescription
shotsintrequirednumber of shots
argsTuple[LiteralType, ...]()Values of the parameter defined in `args`, defaults to ()
nameOptional[str]Nonecustom name of the batch, defaults to None
use_experimentalboolFalseUse experimental hardware capabilities
shuffleboolFalseshuffle the order of jobs
**kwargs—{}

Returns

RemoteBatch

Note

This is async.

Return

RemoteBatch

source

methodrunsource

bloqade.analog.ir.routine.braket.BraketHardwareRoutine.run

Signature
def run(shots: int, args: Tuple[LiteralType, ...] = (), name: Optional[str] = None, use_experimental: bool = False, shuffle: bool = False, **kwargs={}) -> RemoteBatch

Compile to a RemoteBatch, which contain Braket backend specific tasks, run_async to Braket, and wait until the results are coming back.

Parameters

NameTypeDefaultDescription
shotsintrequirednumber of shots
argsTuple[LiteralType, ...]()additional arguments
nameOptional[str]Nonecustom name of the batch
use_experimentalboolFalse
shuffleboolFalseshuffle the order of jobs
**kwargs—{}

Returns

RemoteBatch

Note

This is sync, and will wait until remote results finished.

Return

RemoteBatch

source