Base
Report ¶
Source code in src/bloqade/task/base.py
bitstrings ¶
Get the bitstrings from the data.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
filter_perfect_filling | bool | whether return will | True |
clusters | Union[tuple[int, int], List[tuple[int, int]]] | (tuple[int, int], Sequence[Tuple[int, int]]): | [] |
Returns:
Name | Type | Description |
---|---|---|
bitstrings | list of ndarray | list corresponding to each |
List[NDArray] | task in the report. Each element is an ndarray of shape | |
List[NDArray] | (nshots, nsites) where nshots is the number of shots for | |
List[NDArray] | the task and nsites is the number of sites in the task. |
Note
Note that nshots may vary between tasks if filter_perfect_filling is set to True.
Source code in src/bloqade/task/base.py
counts ¶
Get the counts of unique bit strings.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
filter_perfect_filling | bool | whether return will | True |
clusters | Union[tuple[int, int], List[tuple[int, int]]] | (tuple[int, int], Sequence[Tuple[int, int]]): | [] |
Returns:
Name | Type | Description |
---|---|---|
bitstrings | list of ndarray | list corresponding to each |
List[OrderedDict[str, int]] | task in the report. Each element is an ndarray of shape | |
List[OrderedDict[str, int]] | (nshots, nsites) where nshots is the number of shots for | |
List[OrderedDict[str, int]] | the task and nsites is the number of sites in the task. |
Note
Note that nshots may vary between tasks if filter_perfect_filling is set to True.
Source code in src/bloqade/task/base.py
list_param ¶
List the parameters associate with the given variable field_name for each tasks.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
field_name | str | variable name | required |
Source code in src/bloqade/task/base.py
rydberg_densities ¶
Get rydberg density for each task.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
filter_perfect_filling | bool | whether return will | True |
Return
per-site rydberg density for each task as a pandas DataFrame or Series.