qiboteam / qibocal

Quantum calibration, characterization and validation module for Qibo.
https://qibo.science
Apache License 2.0
28 stars 4 forks source link

Rasmey correction not working as expected using `signal` experiment #889

Open andrea-pasquale opened 2 weeks ago

andrea-pasquale commented 2 weeks ago

The ramsey_signal experiment could give a wrong correction in frequency. I think that the problem originates from the fact on the y axis we are using the amplitude $m = \sqrt{I^2+Q^2}$, and before running single shot classification we don't know whether $m_0 > m_1$. I don't know if there is short term solution for this. We should have encountered the same problem in flipping_signal so perhaps we could take inspiration from that to find a solution:

https://github.com/qiboteam/qibocal/blob/d5d9191c84b298b854520b443bd997cc242bff71/src/qibocal/protocols/flipping_signal.py#L234-L238

To make the code more robust we should try to write tests that tackle all possible scenarios described above.