Skip to content

bloqade.analog.ir.routine.quera.QuEraHardwareRoutine

← Module overview

classQuEraHardwareRoutinesource

bloqade.analog.ir.routine.quera.QuEraHardwareRoutine

Bases: RoutineBase

class QuEraHardwareRoutine

Attributes

NameTypeDescription
backendUnion[QuEraBackend, MockBackend]

methodrun_asyncsource

bloqade.analog.ir.routine.quera.QuEraHardwareRoutine.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 QuEra backend specific tasks, and run_async through QuEra service.

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

Return

RemoteBatch

source

methodrunsource

bloqade.analog.ir.routine.quera.QuEraHardwareRoutine.run

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

Parameters

NameTypeDefaultDescription
shotsintrequired
argsTuple[LiteralType, ...]()
nameOptional[str]None
use_experimentalboolFalse
shuffleboolFalse
**kwargs—{}

Returns

RemoteBatch

source