Skip to content

Commit

Permalink
Flat-top with 0 rise/fall
Browse files Browse the repository at this point in the history
  • Loading branch information
BillyKalfus committed Dec 17, 2019
1 parent 5f287ea commit d60d109
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions QGL/PulsePrimitives.py
Original file line number Diff line number Diff line change
Expand Up @@ -638,9 +638,12 @@ def flat_top_gaussian(chan,
"""
A constant pulse with rising and falling gaussian shape
"""
p = Utheta(chan, length=riseFall, amp=amp, phase=phase, shape_fun=PulseShapes.gaussOn, label=label+"_rise") + \
Utheta(chan, length=length, amp=amp, phase=phase, shape_fun=PulseShapes.constant, label=label+"_top") + \
Utheta(chan, length=riseFall, amp=amp, phase=phase, shape_fun=PulseShapes.gaussOff, label=label+"_fall")
if riseFall == 0:
p = Utheta(chan, length=length, amp=amp, phase=phase, shape_fun=PulseShapes.constant, label=label+"_top")
else:
p = Utheta(chan, length=riseFall, amp=amp, phase=phase, shape_fun=PulseShapes.gaussOn, label=label+"_rise") + \
Utheta(chan, length=length, amp=amp, phase=phase, shape_fun=PulseShapes.constant, label=label+"_top") + \
Utheta(chan, length=riseFall, amp=amp, phase=phase, shape_fun=PulseShapes.gaussOff, label=label+"_fall")
return p._replace(label=label)


Expand Down

0 comments on commit d60d109

Please sign in to comment.