atomiq.components.sinara.sampler

Classes

Sampler

Sinara Sampler 8 Channel ADC

SamplerChannel

Single ADC Channel of a Sinara Sampler

Module Contents

class atomiq.components.sinara.sampler.Sampler(sampler_device, default_gain=[0] * 8, *args, **kwargs)[source]

Bases: atomiq.components.electronics.adc.ADC

Sinara Sampler 8 Channel ADC

This class represents the Sinara Sampler with all its 8 channels. It allows to sample all channels at once and to read out the result.

Parameters:
  • sampler_device -- The ARTIQ device for the sampler from the device_db, e.g. @sampler0

  • default_gain (TList(TInt32)) -- List with 8 entries setting the default gain for the 8 channels at startup. (default [0, .. , 0])

kernel_invariants
_sampler_device
default_gain = [0, 0, 0, 0, 0, 0, 0, 0]
_prerun()[source]

Specify here what should be done for this component before the run starts. In contrast to the _build() method, the _prerun() routine is executed on the core device before the actual experiment starts.

set_gain(channel, gain=0)[source]
Parameters:
  • channel (artiq.language.types.TInt32)

  • gain (artiq.language.types.TInt32)

_measure(target_arr)[source]

Measure a single sample on all 8 channels at once.

This function advances the timeline by 175 us

Parameters:

target_arr (TArray(TFloat))

Return type:

TArray(TFloat)

class atomiq.components.sinara.sampler.SamplerChannel(default_gain=0, *args, **kwargs)[source]

Bases: atomiq.components.electronics.adc.ADCChannel

Single ADC Channel of a Sinara Sampler

This class represents a single channel of a Sinara Sampler as an ADCChannel.

Parameters:

default_gain (artiq.language.types.TInt32) -- Default gain to set for the Sampler channel at startup. (default 0)

set_gain(gain)[source]

Set the gain for the Sampler Channel

Parameters:

gain (artiq.language.types.TInt32) -- Gain in machine units (0: 1, ..., 3: 1000)