Bloqade
BloqadePythonRoutine ¶
Bases: RoutineBase
run ¶
run(
shots,
args=(),
name=None,
blockade_radius=0.0,
interaction_picture=False,
cache_matrices=False,
multiprocessing=False,
num_workers=None,
solver_name="dop853",
atol=1e-14,
rtol=1e-07,
nsteps=2147483647,
)
Run the current program using bloqade python backend
Parameters:
Name | Type | Description | Default |
---|---|---|---|
shots | int | number of shots after running state vector simulation | required |
args | Tuple[Real, ...] | The values for parameters defined | () |
name | Optional[str] | Name to give this run. Defaults to None. | None |
blockade_radius | float | Use the Blockade subspace given a | 0.0 |
interaction_picture | bool | Use the interaction picture when | False |
cache_matrices | bool | Reuse previously evaluated matrcies when | False |
multiprocessing | bool | Use multiple processes to process the | False |
num_workers | Optional[int] | Number of processes to run with | None |
solver_name | str | Which SciPy Solver to use. Defaults to | 'dop853' |
atol | float | Absolute tolerance for ODE solver. Defaults to | 1e-14 |
rtol | float | Relative tolerance for adaptive step in ODE solver. | 1e-07 |
nsteps | int | Maximum number of steps allowed per integration | 2147483647 |
Raises:
Type | Description |
---|---|
ValueError | Cannot use multiprocessing and cache_matrices at the same time. |
Returns:
Name | Type | Description |
---|---|---|
LocalBatch | LocalBatch | Batch of local tasks that have been executed. |