bloqade.analog.ir.routine.braket.BraketLocalEmulatorRoutine
← Module overview
class
method
classBraketLocalEmulatorRoutine¶source
bloqade.analog.ir.routine.braket.BraketLocalEmulatorRoutine
Bases: RoutineBase
class BraketLocalEmulatorRoutinemethodrun¶source
bloqade.analog.ir.routine.braket.BraketLocalEmulatorRoutine.run
Signature
def run(shots: int, args: Tuple[LiteralType, ...] = (), name: Optional[str] = None, multiprocessing: bool = False, num_workers: Optional[int] = None, **kwargs={}) -> LocalBatchCompile to a LocalBatch, and run. The LocalBatch contain tasks to run on local emulator.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
shots | int | required | number of shots |
args | Tuple[LiteralType, ...] | () | additional arguments for args variables. |
name | Optional[str] | None | |
multiprocessing | bool | False | enable multi-process |
num_workers | Optional[int] | None | number of workers to run the emulator |
**kwargs | — | {} |
Returns
LocalBatch
Note
This is sync, and will wait until remote results finished.
Return
LocalBatch
source