Repository navigation
What is the mean magnitude of an experiment? #1310
Replies: 3 comments 5 replies
|
From my side, there is not any existing agreement about this topic. Also, in general I was thinking to phase out the magnitude and phase when not strictly needed: in resonator spectroscopy, we could fit separately the two components of the resonance. But the For Rabi and the other qubit-signal routines, I was planning to switch to PCA #1292. However, for spectroscopies we may still need, since they do not have any state interpretation. Even if we have the circle picture for the resonator (all in all, I've just never thought about how a qubit spectroscopy should look like in the IQ plane - and it could be simpler to interpret also other sweeps just in magnitude, as the flux dependencies) |
|
@rodolfocarobene since we do not have any clear action plan, I moved this into a discussion. As soon as we reach an agreement, we can open an issue with the result of this process. |
|
After some thought, I would say that the two approaches are not equivalent. Taking the mean of the magnitudes mixes in a noise-dependent positive bias, so the baseline depends on the shot noise level. Averaging I and Q first and then computing magnitude gives a cleaner estimate of the coherent response and keeps baselines consistent across experiments and libraries. This also explains the discrepancy I was seeing and the solution is the standard treatment in microwave heterodyne detection. For the phase, the situation is similar: the meaningful quantity is the phase of the averaged complex signal, i.e. arg(⟨I⟩ + i⟨Q⟩). Averaging phases shot by shot is not equivalent and can behave badly in the presence of noise or wrapping. Unless someone objects or adds further considerations, I will start a PR soon to standardize on averaging I and Q first, and only then computing magnitude and phase, and align the behavior across libraries. |
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone,
the problem is a bit inter-library (qibocal-qibolab-qibosoq), but I am opening here since it is of characterization nature.
I was running a resonator spectroscopy followed by a qubit spectroscopy and I noticed that the "baseline" of the qubit spectroscopy was different than the corresponding value of the resonator spectroscopy. Tracing back the problem, I think the difference was that in qibocal the mean magnitude across multiple shots is computed as the mean of all the magnitudes (this was used in the res spec), while in qibosoq I was following the "QICK practice" of computing the mean value of I, the mean value of Q and only than compute the magnitude.
Now, I am not 100% sure of what is the best/correct way but for sure we need to stick to one of the two options otherwise we get incoherent values. At the moment, it seems to me that is more reasonable to consider the mean of I and the mean of Q and than compute phase/magnitude.
What are your thoughts on this? Maybe you already discussed it and already reached an agreement, in that case I'll change my side of the libraries
All reactions