Skip to content
Snippets Groups Projects
Commit 7717d4f5 authored by Sander de Snoo's avatar Sander de Snoo
Browse files

Fixed bug in corner case for Qblox backend

parent 79d7a082
No related branches found
No related tags found
No related merge requests found
...@@ -452,7 +452,7 @@ class Voltage1nsSequenceBuilder(VoltageSequenceBuilder): ...@@ -452,7 +452,7 @@ class Voltage1nsSequenceBuilder(VoltageSequenceBuilder):
self._aligned = self._t_wave_end % 4 == 0 self._aligned = self._t_wave_end % 4 == 0
# Note: this will be overwritten in _render_ramp. # Note: this will be overwritten in _render_ramp.
iend = self._t_wave_end - self._t_wave_start iend = self._t_wave_end - self._t_wave_start - 1
self._equal_voltage = abs(waveform[istart] - waveform[iend]) < _lsb_step self._equal_voltage = abs(waveform[istart] - waveform[iend]) < _lsb_step
self._t_constant = 0 self._t_constant = 0
...@@ -805,7 +805,7 @@ class AcquisitionSequenceBuilder(SequenceBuilderBase): ...@@ -805,7 +805,7 @@ class AcquisitionSequenceBuilder(SequenceBuilderBase):
if rf_source is not None: if rf_source is not None:
if isinstance(rf_source.output,str): if isinstance(rf_source.output,str):
raise Exception('Qblox RF source must be configured using module name and channel numbers') raise Exception('Qblox RF source must be configured using module name and channel numbers')
scaling = 1/(rf_source.attenuation * self.max_output_voltage*1000) scaling = 1/(rf_source.attenuation * self.max_output_voltage*1000) # @@@@ Multiply with sqrt(2)
self._rf_amplitude = rf_source.amplitude * scaling self._rf_amplitude = rf_source.amplitude * scaling
self._n_out_ch = 1 if isinstance(rf_source.output[1], int) else 2 self._n_out_ch = 1 if isinstance(rf_source.output[1], int) else 2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment