Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rasmey correction not working as expected using signal experiment #889

Open
andrea-pasquale opened this issue Jun 19, 2024 · 0 comments
Open
Assignees
Labels
bug Something isn't working calibration

Comments

@andrea-pasquale
Copy link
Contributor

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:

# TODO: this might be related to the resonator type
if popt[3] > np.pi / 2 and popt[3] < 3 * np.pi / 2:
signed_correction = translated_popt[2] / 2
else:
signed_correction = -translated_popt[2] / 2

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working calibration
Projects
None yet
Development

No branches or pull requests

2 participants