pasqal-io / Pulser

Library for pulse-level/analog control of neutral atom devices. Emulator with QuTiP.
Apache License 2.0
159 stars 57 forks source link

EOM buffer's detuning is drawn with a high value #614

Closed a-corni closed 7 months ago

a-corni commented 7 months ago

In pulser 15.2 when a pulse with some positive detuning is just before an EOM sequence, the initial buffer time detuning has a weird shape (see figure below).

from pulser import Sequence
from pulser import Register
from pulser import Pulse

from pulser.waveforms import ConstantWaveform
from pulser.devices import AnalogDevice

# make the sequence
seq = Sequence(Register.square(3, spacing=6), AnalogDevice)

#-------------------------------#
ch0 = "ryd_global"
seq.declare_channel(ch0, "rydberg_global")
# pulse 1
a1 = ConstantWaveform(200,5.0)
d1 = ConstantWaveform(200,5.0)
p1 = Pulse(a1, d1, phase=0)
seq.add(p1, ch0)
# EOM
seq.enable_eom_mode(ch0, amp_on=5.0, detuning_on=0.0, optimal_detuning_off=-5.0)
seq.add_eom_pulse(ch0, duration=100, phase=0.0)
seq.disable_eom_mode(ch0)
#-------------------------------#

seq.draw()

image