Factory
constant ¶
Create a Constant waveform.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
| duration | ScalarType | Duration of the Constant waveform. | required | 
| value | ScalarType | Value of the Constant waveform.s | required | 
Returns:
| Name | Type | Description | 
|---|---|---|
| Constant | Constant | A Constant waveform. | 
Source code in src/bloqade/analog/factory.py
 get_capabilities ¶
Get the device capabilities for Aquila
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
| use_experimental | bool | Get experimental capabilities instead of standard ones. By default value is False. | False | 
Returns:
| Name | Type | Description | 
|---|---|---|
| QuEraCapabilities | QuEraCapabilities | capabilities object for Aquila device. | 
Note
Units of time, distance, and energy are microseconds (us), micrometers (um), and rad / us, respectively.
For a comprehensive list of capabilities, see the Hardware Reference page
Source code in src/bloqade/analog/factory.py
 linear ¶
Create a Linear waveform.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
| duration | ScalarType | Duration of linear waveform | required | 
| start | ScalarType | Starting value of linear waveform | required | 
| stop | ScalarType | Ending value of linear waveform | required | 
Returns:
| Name | Type | Description | 
|---|---|---|
| Linear | Linear | Linear waveform | 
Source code in src/bloqade/analog/factory.py
 piecewise_constant ¶
Create a piecewise linear waveform.
Create a piecewise constant waveform from a list of durations and values. The value duration[i] corresponds to the length of time for the i'th segment with a value of values[i].
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
| durations | List[ScalarType] | The duration of each segment | required | 
| values | List[ScalarType] | The values for each segment | required | 
Raises:
| Type | Description | 
|---|---|
| ValueError | If the length of  | 
Returns:
| Name | Type | Description | 
|---|---|---|
| Waveform | Waveform | The piecewise linear waveform. | 
Source code in src/bloqade/analog/factory.py
 piecewise_linear ¶
Create a piecewise linear waveform.
Create a piecewise linear waveform from a list of durations and values. The value duration[i] is of the linear segment between values[i] and values[i+1].
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
| durations | List[ScalarType] | The duration of each segment | required | 
| values | List[ScalarType] | The values for each segment | required | 
Raises:
| Type | Description | 
|---|---|
| ValueError | If the length of  | 
Returns:
| Name | Type | Description | 
|---|---|---|
| Waveform | Waveform | The piecewise linear waveform. | 
Source code in src/bloqade/analog/factory.py
 rydberg_h ¶
rydberg_h(
    atoms_positions,
    detuning=None,
    amplitude=None,
    phase=None,
    static_params={},
    batch_params=[],
    args=[],
)
Create a rydberg program with uniform detuning, amplitude, and phase.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
| atoms_positions | Any | Description of geometry of atoms in system. | required | 
| detuning | Optional[Waveform] | Waveform for detuning. Defaults to None. | None | 
| amplitude | Optional[Waveform] | Waveform describing the amplitude of the rabi term. Defaults to None. | None | 
| phase | Optional[Waveform] | Waveform describing the phase of rabi term. Defaults to None. | None | 
| static_params | Dict[str, Any] | Define static parameters of your program. Defaults to {}. | {} | 
| batch_params | Union[List[Dict[str, Any]], Dict[str, Any]] | Parmaters for a batch of tasks. Defaults to []. | [] | 
| args | List[str] | List of arguments to leave till runtime. Defaults to []. | [] | 
Returns:
| Name | Type | Description | 
|---|---|---|
| Routine | Routine | An object that can be used to dispatch a rydberg program to multiple backends. |