atomiq.components.dummies¶
This module gathers differnt dummy components that mimic hardware but do nothing. They are mainly used for debugging atomiq
Classes¶
An analog-to-ditigal converter (ADC) with multiple channels |
|
A dummy RFSource used for debugging |
|
A DAC with multiple channels |
|
An atomiq Component |
|
An atomiq Component |
|
An atomiq Component |
Module Contents¶
- class atomiq.components.dummies.DummyADC(return_value, *args, **kwargs)[source]¶
Bases:
atomiq.components.electronics.adc.ADCAn analog-to-ditigal converter (ADC) with multiple channels
Many ADCs come with multiple channels that are always sampled together. This class represents such ADCs
- Parameters:
num_chan -- Number of channels the ADC has.
return_value (artiq.language.types.TFloat)
- kernel_invariants¶
- return_value¶
- class atomiq.components.dummies.DummyRFSource(default_frequency=100000000.0, default_amplitude=0.0, default_phase=0.0, freq_limit=(0.0, float('inf')), amp_limit=(0.0, 1.0), blind=False, default_ramp_steps=30, *args, **kwargs)[source]¶
Bases:
atomiq.components.electronics.rfsource.RFSourceA dummy RFSource used for debugging
- Parameters:
default_frequency (artiq.language.types.TFloat)
default_amplitude (artiq.language.types.TFloat)
default_phase (artiq.language.types.TFloat)
freq_limit (tuple)
amp_limit (tuple)
blind (artiq.language.types.TBool)
default_ramp_steps (artiq.language.types.TInt32)
- class atomiq.components.dummies.DummyDAC(*args, **kwargs)[source]¶
Bases:
atomiq.components.electronics.voltagesource.DACA DAC with multiple channels
- Parameters:
num_chan -- Number of channels the DAC has
- values¶
- class atomiq.components.dummies.DummyActor(*args, **kwargs)[source]¶
Bases:
atomiq.components.primitives.Component,atomiq.components.primitives.ParametrizableAn atomiq Component
Every component in atomiq inherits from this class. It provides basic functionality for automatic and recursive building and initialization of components (prepare, build, prerun). It also takes care for joining kernel invariants along the inheritance tree.
Note
The arguments parent and identifier are automatically passed to the component object by the atomiq object builder.
- Parameters:
parent -- The parent context of the component. Usually this is the experiment that uses the component
identifier -- A unique name to identify the component.
debug_output -- Set whether the component should show debug output. Using this switch rather than the debug kernel logger can allow the compiler to not include the debug commands in the kernel code if the output is not needed.
- amplitude = 0.0¶
- class atomiq.components.dummies.DummyMonitor(dummy_actor, *args, **kwargs)[source]¶
Bases:
atomiq.components.primitives.Component,atomiq.components.primitives.MeasurableAn atomiq Component
Every component in atomiq inherits from this class. It provides basic functionality for automatic and recursive building and initialization of components (prepare, build, prerun). It also takes care for joining kernel invariants along the inheritance tree.
Note
The arguments parent and identifier are automatically passed to the component object by the atomiq object builder.
- Parameters:
parent -- The parent context of the component. Usually this is the experiment that uses the component
identifier -- A unique name to identify the component.
debug_output -- Set whether the component should show debug output. Using this switch rather than the debug kernel logger can allow the compiler to not include the debug commands in the kernel code if the output is not needed.
dummy_actor (DummyActor)
- dummy_actor¶
- class atomiq.components.dummies.DummySwitch(channels, *args, **kwargs)[source]¶
Bases:
atomiq.components.primitives.Component,atomiq.components.primitives.SwitchableAn atomiq Component
Every component in atomiq inherits from this class. It provides basic functionality for automatic and recursive building and initialization of components (prepare, build, prerun). It also takes care for joining kernel invariants along the inheritance tree.
Note
The arguments parent and identifier are automatically passed to the component object by the atomiq object builder.
- Parameters:
parent -- The parent context of the component. Usually this is the experiment that uses the component
identifier -- A unique name to identify the component.
debug_output -- Set whether the component should show debug output. Using this switch rather than the debug kernel logger can allow the compiler to not include the debug commands in the kernel code if the output is not needed.
- states¶