bloqade.analog.ir.routine.braket.BraketHardwareRoutine
← Module overview
class
method
method
classBraketHardwareRoutine¶source
bloqade.analog.ir.routine.braket.BraketHardwareRoutine
Bases: RoutineBase
class BraketHardwareRoutineAttributes
| Name | Type | Description |
|---|---|---|
backend | BraketBackend |
methodrun_async¶source
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={}) -> RemoteBatchCompile to a RemoteBatch, which contain Braket backend specific tasks, and run_async to Braket.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
shots | int | required | number of shots |
args | Tuple[LiteralType, ...] | () | Values of the parameter defined in `args`, defaults to () |
name | Optional[str] | None | custom name of the batch, defaults to None |
use_experimental | bool | False | Use experimental hardware capabilities |
shuffle | bool | False | shuffle the order of jobs |
**kwargs | — | {} |
Returns
RemoteBatch
Note
This is async.
Return
RemoteBatch
sourcemethodrun¶source
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={}) -> RemoteBatchCompile to a RemoteBatch, which contain Braket backend specific tasks, run_async to Braket, and wait until the results are coming back.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
shots | int | required | number of shots |
args | Tuple[LiteralType, ...] | () | additional arguments |
name | Optional[str] | None | custom name of the batch |
use_experimental | bool | False | |
shuffle | bool | False | shuffle the order of jobs |
**kwargs | — | {} |
Returns
RemoteBatch
Note
This is sync, and will wait until remote results finished.
Return
RemoteBatch
source