From 34dba9eca43d92a640f5939fbb6d1a48f104905d Mon Sep 17 00:00:00 2001 From: Alessandro Candido Date: Mon, 15 Apr 2024 16:21:02 +0200 Subject: [PATCH] fix: Remove (again) duration from GaussianSquare envelope --- src/qibolab/pulses/envelope.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qibolab/pulses/envelope.py b/src/qibolab/pulses/envelope.py index a61c6e50e8..85a087fcf0 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))