bloqade.analog.task.batch.LocalBatch
← Module overview
class
method
method
classLocalBatch¶source
bloqade.analog.task.batch.LocalBatch
Bases: Serializable, Filter
Signature
class LocalBatch(source: Optional[Builder], tasks: OrderedDict[int, Union[BraketEmulatorTask, BloqadeTask]], name: Optional[str] = None)Parameters
| Name | Type | Default | Description |
|---|---|---|---|
source | Optional[Builder] | required | |
tasks | OrderedDict[int, Union[BraketEmulatorTask, BloqadeTask]] | required | |
name | Optional[str] | None |
Attributes
| Name | Type | Default | Description |
|---|---|---|---|
source | Optional[Builder] | required | |
tasks | OrderedDict[int, Union[BraketEmulatorTask, BloqadeTask]] | required | |
name | Optional[str] | None |
methodreport¶source
bloqade.analog.task.batch.LocalBatch.report
def report() -> ReportGenerate analysis report base on currently completed tasks in the LocalBatch.
Returns
Report
Return
Report
sourcemethodrerun¶source
bloqade.analog.task.batch.LocalBatch.rerun
Signature
def rerun(multiprocessing: bool = False, num_workers: Optional[int] = None, **kwargs={})Rerun all the tasks in the LocalBatch.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
multiprocessing | bool | False | |
num_workers | Optional[int] | None | |
**kwargs | — | {} |
Return
Report
source