Base
Geometry ¶
Class representing geometry of an atom arrangement.
Attributes:
Name | Type | Description |
---|---|---|
sites | List[Tuple[float, float]] | Atom site arrangement |
filling | List[int] | Which sites are filled |
parallel_decoder | Optional[ParallelDecoder] | Decoder object for decoding Geometry object |
LocalTask ¶
Bases: Task
Task
to use for local executions for simulation purposes..
RemoteTask ¶
Bases: Task
Task
to use for remote executions to run the program on Quera Quantum Computers.
Report ¶
Report is a helper class for organizing and analysing data
Analyzing Results¶
When you've retrieved your results from either emulation or hardware you can generate a .report()
:
For the examples below we analyze the results of a two atom program.
The report contains useful information such as:
The raw bitstrings measured per each execution of the program
The number of times each unique bitstring occurred:
The Rydberg Density for each atom
Source code in src/bloqade/analog/task/base.py
bitstrings ¶
Get the bitstrings from the data.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
filter_perfect_filling | bool | whether return will only contain perfect filling shots. Defaults to True. | True |
clusters | Union[tuple[int, int], List[tuple[int, int]]] | (tuple[int, int], Sequence[Tuple[int, int]]): cluster index to filter shots from. If none are provided all clusters are used, defaults to []. | [] |
Returns:
Name | Type | Description |
---|---|---|
bitstrings | list of ndarray |
Note
Note that nshots may vary between tasks if filter_perfect_filling is set to True.
Source code in src/bloqade/analog/task/base.py
counts ¶
Get the counts of unique bit strings.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
filter_perfect_filling | bool | whether return will only contain perfect filling shots. Defaults to True. | True |
clusters | Union[tuple[int, int], List[tuple[int, int]]] | (tuple[int, int], Sequence[Tuple[int, int]]): cluster index to filter shots from. If none are provided all clusters are used, defaults to []. | [] |
Returns:
Name | Type | Description |
---|---|---|
counts | list of OrderedDict[str, int] |
Note
Note that nshots may vary between tasks if filter_perfect_filling is set to True.
Source code in src/bloqade/analog/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/analog/task/base.py
rydberg_densities ¶
Get rydberg density for each task.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
filter_perfect_filling | bool | whether return will only contain perfect filling shots. Defaults to True. | True |
clusters | Union[tuple[int, int], List[tuple[int, int]]] | (tuple[int, int], Sequence[Tuple[int, int]]): cluster index to filter shots from. If none are provided all clusters are used, defaults to []. | [] |
Returns: