Skip to content

Commit

Permalink
fix: Remove (again) duration from GaussianSquare envelope
Browse files Browse the repository at this point in the history
  • Loading branch information
alecandido committed Jun 25, 2024
1 parent 4758a16 commit 34dba9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qibolab/pulses/envelope.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def i(self, samples: int) -> Waveform:
"""Generate a Gaussian envelope, with a flat central window."""

pulse = np.ones(samples)
u, hw = samples / 2, self.width * samples / self.duration / 2
u, hw = samples / 2, self.width / 2
ts = np.arange(samples)
tails = (ts < (u - hw)) | ((u + hw) < ts)
pulse[tails] = gaussian(len(ts[tails]), _samples_sigma(self.rel_sigma, samples))
Expand Down

0 comments on commit 34dba9e

Please sign in to comment.