Skip to content

Commit

Permalink
Remove "step" pulse play
Browse files Browse the repository at this point in the history
  • Loading branch information
nulinspiratie committed Dec 3, 2024
1 parent 8e5fd37 commit dc0feb1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions qualang_tools/control_panel/video_mode/inner_loop_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@ def perform_ramp(self, element, previous_voltage, new_voltage):
assign(self.reached_voltage, previous_voltage - Cast.mul_fixed_by_int(qua_ramp, duration << 2))
play(ramp(-self.ramp_rate / 1e9), element.name, duration=duration)
with else_():
element.play("step", amplitude_scale=dV << 2)
ramp_rate = dV * (1 / 16e-9)
play(ramp(ramp_rate), element.name, duration=4)
# element.play("step", amplitude_scale=dV << 2)
assign(self.reached_voltage, new_voltage)

def set_dc_offsets(self, x: QuaVariableType, y: QuaVariableType):
Expand All @@ -156,8 +158,6 @@ def set_dc_offsets(self, x: QuaVariableType, y: QuaVariableType):

assign(self._last_x_voltage, x)
assign(self._last_y_voltage, y)
# self._last_x_voltage = x
# self._last_y_voltage = y

def __call__(self, x: QuaVariableType, y: QuaVariableType) -> Tuple[QuaVariableType, QuaVariableType]:
self.set_dc_offsets(x, y)
Expand Down

0 comments on commit dc0feb1

Please sign in to comment.