3.2.1.2. qupulse.hardware.awgs.dummy¶
Classes
|
Dummy AWG for automated testing, debugging and usage in examples. |
- class DummyAWG(sample_rate: float = 10, output_range: Tuple[float, float] = (-5, 5), num_channels: int = 1, num_markers: int = 1)[source]¶
Bases:
AWGDummy AWG for automated testing, debugging and usage in examples.
- Parameters:
- arm(name: str) None[source]¶
Load the program ‘name’ and arm the device for running it. If name is None the awg will “dearm” its current program.
- clear() None[source]¶
Removes all programs and waveforms from the AWG.
Caution: This affects all programs and waveforms on the AWG, not only those uploaded using qupulse!
- property num_channels¶
Number of channels
- property num_markers¶
Number of marker channels
- property programs: Set[str]¶
The set of program names that can currently be executed on the hardware AWG.
- remove(name) None[source]¶
Remove a program from the AWG.
Also discards all waveforms referenced only by the program identified by name.
- Parameters:
name – The name of the program to remove.
- set_volatile_parameters(program_name: str, parameters)[source]¶
Set the values of parameters which were marked as volatile on program creation.
- upload(name, program, channels, markers, voltage_transformation, force=False) None[source]¶
Upload a program to the AWG.
Physically uploads all waveforms required by the program - excluding those already present - to the device and sets up playback sequences accordingly. This method should be cheap for program already on the device and can therefore be used for syncing. Programs that are uploaded should be fast(~1 sec) to arm.
- Parameters:
name – A name for the program on the AWG.
program – The program (a sequence of instructions) to upload.
channels – Tuple of length num_channels that ChannelIDs of in the program to use. Position in the list corresponds to the AWG channel
markers – List of channels in the program to use. Position in the List in the list corresponds to the AWG channel
voltage_transformation – transformations applied to the waveforms extracted rom the program. Position
channel (in the list corresponds to the AWG)
force – If a different sequence is already present with the same name, it is overwritten if force is set to True. (default = False)