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
2022-08-04 09:34:29,863 - qm - ERROR - Invalidation ERROR integration [email protected]_minus_sin: Integration weight segment must have a length that is a multiple of 4
I was wondering whether there's a bug or what's the correct way of using it.
Thanks,
Sherry
The text was updated successfully, but these errors were encountered:
Hi @xueyue-sherry-zhang!
The ConstantIntegrationWeights class generates integration weights in the form of a list containing a single tuple of the value and duration.
This format of integration weights requires the duration to be in units of ns and a multiple of 4. In your example, the input duration is 250, which is not a multiple of 4, so you see this error in the config validation.
The correct way for your example would be to use the duration of the measurement pulse - 200. Of course, in the general case, the integration weights don't have to match the length of the pulse (in the case of smearing, for example), but nonetheless, they should be a multiple of 4 length. :)
Hello,
When I tried to use
ConstantIntegrationWeights
(py-qua-tools/qualang_tools/config/components.py
Line 210 in cdc3541
ro.add( Operation( MeasurePulse( "zero_pulse", [ zero_wf, zero_wf, ], 200, ) .add(DigitalWaveform("ON", [(1,0)])) .add(ConstantIntegrationWeights("integW_cos", 1.0, 0.0, int(1000 / 4))) .add(ConstantIntegrationWeights("integW_sin", 0.0, 1.0, int(1000 / 4))) .add(ConstantIntegrationWeights("integW_minus_sin", 0.0, -1.0, int(1000 / 4))), name='zero' )
I would get the error that
2022-08-04 09:34:29,863 - qm - ERROR - Invalidation ERROR integration [email protected]_minus_sin: Integration weight segment must have a length that is a multiple of 4
I was wondering whether there's a bug or what's the correct way of using it.
Thanks,
Sherry
The text was updated successfully, but these errors were encountered: