diff --git a/src/qibolab/pulses/envelope.py b/src/qibolab/pulses/envelope.py index a61c6e50e..85a087fcf 100644 --- a/src/qibolab/pulses/envelope.py +++ b/src/qibolab/pulses/envelope.py @@ -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))