diff --git a/src/qililab/qprogram/quantum_machines_compiler.py b/src/qililab/qprogram/quantum_machines_compiler.py index 359b62e0f..f55e19332 100644 --- a/src/qililab/qprogram/quantum_machines_compiler.py +++ b/src/qililab/qprogram/quantum_machines_compiler.py @@ -428,8 +428,8 @@ def _handle_measure(self, element: Measure): ) warmup_pulse = element.warmup_pulse - if warmup_pulse != None: - play_warmup=Play(bus=element.bus, waveform=warmup_pulse) + if warmup_pulse is not None: + play_warmup = Play(bus=element.bus, waveform=warmup_pulse) self._handle_play(play_warmup) variable_I = qua.declare(qua.fixed)