qtt.measurements.acquisition package

Submodules

qtt.measurements.acquisition.configuration_storage module

Functionality to store and load instrument configurations.

qtt.measurements.acquisition.configuration_storage.load_configuration(file_path: str) → qilib.utils.python_json_structure.PythonJsonStructure[source]

Loads the instrument configuration from disk storage.

Parameters:file_path – The store file location on disk.
Returns:The loaded configuration from disk.
qtt.measurements.acquisition.configuration_storage.save_configuration(file_path: str, configuration: qilib.utils.python_json_structure.PythonJsonStructure) → None[source]

Saves the instrument configuration to disk storage.

Parameters:
  • file_path – The store file location on disk.
  • configuration – The instrument configuration that needs to be stored to disk.

qtt.measurements.acquisition.uhfli_scope_reader module

Provides oscilloscope functionality for the Zurich Instruments UHFLI.

class qtt.measurements.acquisition.uhfli_scope_reader.UHFLIScopeReader(address)[source]

Bases: qtt.measurements.acquisition.interfaces.acquisition_scope_interface.AcquisitionScopeInterface

Represents an acquisition wrapper for acquiring data with the Zurich Instruments UHFLI.

acquire(number_of_averages: int, timeout: float = 30) → List[qilib.data_set.data_array.DataArray][source]

Collects records from the UHFLI.

Parameters:
  • number_of_averages – The number of averages taken during acquiring.
  • timeout – The time the collecting of records can maximally take before raising an error.
Returns:

A list with the recorded scope records as data arrays.

acquire_single_sample(channel: int, parameter: str, partial: bool = False) → Union[qcodes.instrument.parameter.Parameter, float][source]

Collect a single point for each added measurement signal.

Parameters:
  • channel – Input channel that signal is acquired from.
  • parameter – Modulation parameter, ‘x’, ‘y’, ‘phi’ or ‘R’
  • partial – If True return this method as partial, else acquire a sample and return it.
Returns:

This method as a partial method or single sample.

enabled_channels

Gets the channel enabled states.

Returns:The channels which are set to be enabled.
get_nearest_sample_rate(sample_rate: float) → float[source]

Gets the nearest sample rate corresponding to the given value.

Parameters:sample_rate – A possible sample rate to check for a nearest actual settable sample rate value.
Returns:The nearest settable sample rate value on the UHFLI.
initialize(configuration: qilib.utils.python_json_structure.PythonJsonStructure) → None[source]

Applies the configuration to the UHFLI.

Parameters:configuration – The configuration with all the UHFLI settings.
input_range

Gets the amplitude input range of the channels.

Returns:The amplitude input range of the channels set value.
number_of_samples

Gets the sample count to take during a acquisition.

Returns:The number of samples set value.
period

Gets the measuring period of the acquisition.

Returns:The measuring period set value in seconds.
sample_rate

Gets the sample rate of the acquisition device.

Returns:The input range amplitude in Volt for each channel.
set_channel_limits(channel: int, lower_limit: float, upper_limit: float) → None[source]

Sets the upper and lower limit of the scope full scale range.

Parameters:
  • channel – The input channel number.
  • lower_limit – The lower limit range.
  • upper_limit – The upper limit range.
set_input_signal(channel: int, attribute: Optional[str]) → None[source]

Adds an input channel to the scope.

Parameters:
  • channel – The input channel number.
  • attribute – The input signal to acquire.
start_acquisition() → None[source]

Starts the acquisition mode of the scope in the UHFLI.

stop_acquisition() → None[source]

Stops the acquisition mode of the scope in the UHFLI.

trigger_channel

Gets the external triggering channel.

Returns:Signal Input 1, Signal Input 2, Trig Input 1, Trig Input 2, Aux Output 1, Aux Output 2, Aux Output 3, Aux Output 4, Aux In 1 Ch 1, Aux In 1 Ch 2, Osc phi Demod 4, Osc phi Demod 8, AU Cartesian 1, AU Cartesian 2, AU Polar 1, AU Polar 2.
Return type:The trigger channel value. The possible trigger channel values are
trigger_delay

Gets the delay in seconds between the external trigger and acquisition.

Returns:The scope trigger delay in seconds.
trigger_enabled

Gets the external triggering enabled status.

Returns:The trigger enabled status set value.
trigger_level

Gets the external triggering level in Volts.

Returns:The trigger level in Volts.
trigger_slope

Gets the external triggering slope.

Returns:Rise, Fall, Both or None).
Return type:The scope trigger slope (possible values are

qtt.measurements.acquisition.uhfli_stimulus module

class qtt.measurements.acquisition.uhfli_stimulus.UHFLIStimulus(address: str)[source]

Bases: object

A wrapper that provides methods to control Lock-in of Zurich instrument’s UHF-LI devices.

connect_oscillator_to_demodulator(oscillator: int, demodulator: int) → None[source]

Connects an oscillator (1 - 8) to the given demodulator.

Parameters:
  • oscillator – The oscillator number to connect to (1 - 8).
  • demodulator – Which demodulator the oscillator belongs to.
initialize(configuration: qilib.utils.python_json_structure.PythonJsonStructure) → None[source]

Apply configuration to the UHFLI.

Parameters:configuration – The configuration for the UHFLI.
set_demodulation_enabled(channel: int, is_enabled: bool) → None[source]

Enable data transfer in the demodulators.

Parameters:
  • channel – The output channel number to enable (1 - 8).
  • is_enabled – True to enable and False to disable.
set_demodulator_signal_input(demodulator: int, input_channel: int) → None[source]

Set the signal demodulator input channel.

Parameters:
  • demodulator – Which demodulator the channel belongs to.
  • input_channel – The input channel (1 or 2).
set_oscillator_frequency(oscillator: int, frequency: Optional[float] = None) → Optional[qcodes.instrument.parameter.Parameter][source]

Set the oscillators frequencies.

Parameters:
  • oscillator – Output channel the the oscillator belongs to (1 - 8) with MF enabled.
  • frequency – Optional parameter that if not provided, this method returns a QCoDeS parameter that can be used to set the oscillator frequency. Allowed frequencies are 0 - 600 MHz.
set_output_enabled(output: int, is_enabled: bool) → None[source]

Control the outputs on the device.

Parameters:
  • output – One of the two outputs on the device.
  • is_enabled – True to enable and False to disable.
set_signal_output_amplitude(channel: int, demodulator: int, amplitude: float) → None[source]

Set the amplitude of the output signal.

Parameters:
  • channel – The output channel to set the amplitude on (1 - 8).
  • demodulator – Which demodulator the channel belongs to.
  • amplitude – Amplitude in volts, allowed values are 0.0 - 1.5 V.
set_signal_output_enabled(channel: int, demodulator: int, is_enabled: bool) → None[source]

Enable one of the 16 output amplitudes.

Parameters:
  • channel – The output channel to enable (1 - 8).
  • demodulator – Which demodulator the channel belongs to.
  • is_enabled – True to enable and False to disable.