3.4.4. qupulse.hardware.util

qupulse.hardware.util.voltage_to_uint16(voltage, output_amplitude, output_offset, resolution)[source]
Parameters
Return type

ndarray

Returns

qupulse.hardware.util.get_sample_times(waveforms, sample_rate_in_GHz, tolerance=1e-10)[source]

Calculates the sample times required for the longest waveform in waveforms and returns it together with an array of the lengths.

If only one waveform is given, the number of samples has shape ()

Raises a ValueError if any waveform has a length that is zero or not a multiple of the inverse sample rate.

Parameters
Return type

Tuple[array, array]

Returns

Array of sample times sufficient for the longest waveform Number of samples of each waveform