Skip to content

Commit

Permalink
Merge pull request #189 from BBN-Q/fix/align-left
Browse files Browse the repository at this point in the history
Fix alignment for equal-length pulses
  • Loading branch information
Diego Ristè authored Feb 1, 2019
2 parents 22fe0bd + f3e9659 commit 6f62640
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion QGL/PulseSequencer.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def flatten_to_pulses(obj):
pulse_list.append(pulse)
if max(pad_lengths) == 0:
# no padding element required
return pulses
return reduce(operator.mul, pulses)
elif mode == 'left':
return reduce(operator.mul,[p + TAPulse('Id', p.channel, max(pulse_lengths) - p.length,0) if p.length < max(pulse_lengths) else p for p in pulse_list])
elif mode == 'right':
Expand Down

0 comments on commit 6f62640

Please sign in to comment.