You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a bug with the envelope_waveform_q method of the Drag pulse. Its values are suppressed by the inverse of the sampling rate. The bug can be reproduced as follows:
In this case we see that envelope_waveform_i (blue) is behaving properly for different values of sampling_rate but envelope_waveform_q (red) in the sampling_rate=10 case is much smaller. To fix this, the output of envelope_waveform_q needs to be multiplied by the sampling_rate (black dashed).
The text was updated successfully, but these errors were encountered:
So, you're currently spotting the problem because you're attempting to keep the shape constant, while changing the sampling rate.
The sampling rate does not appear explicitly anywhere in the envelope. However, it is relevant through the duration, since that is effectively expressed as the number of samples, and not nanoseconds.
You don't see the problem in the I component because the width is also expressed in terms of samples, so the two things compensate each other. But when you change the sampling rate, you're actually also changing the duration in nanoseconds.
The result is apparent on Q, but, at this point, that's expected, since the derivative is done in actual time, not in samples. Thus, you're picking up a factor from the derivative because of the change of variables (which is actually the sampling rate), and that's what you see in your plot.
In 0.2, all the variables are expressed relative to the interval duration. However, the duration is expressed in nanoseconds, and the number of samples is dependent on the sampling rate. So, you should not see this "problem".
I'm not even sure if I would classify as an actual issue. Maybe the parametrization is not optimal (and it's already different in the new version), but it's possibly subjective...
There is a bug with the envelope_waveform_q method of the Drag pulse. Its values are suppressed by the inverse of the sampling rate. The bug can be reproduced as follows:
In this case we see that envelope_waveform_i (blue) is behaving properly for different values of sampling_rate but envelope_waveform_q (red) in the sampling_rate=10 case is much smaller. To fix this, the output of envelope_waveform_q needs to be multiplied by the sampling_rate (black dashed).
The text was updated successfully, but these errors were encountered: