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

Hotfix for rabi length following #744 #754

Merged
merged 2 commits into from
Mar 20, 2024
Merged

Conversation

andrea-pasquale
Copy link
Contributor

@andrea-pasquale andrea-pasquale commented Mar 13, 2024

In #744 I forgot to update the rabi length protocol.

EDIT: Improved fit for rabi length with probabilities.

Checklist:

  • Reviewers confirm new code works as expected.
  • Tests are passing.
  • Coverage does not decrease.
  • Documentation is updated.
  • Compatibility with Qibo modules (Please edit this section if the current pull request is not compatible with the following branches).
    • Qibo: master
    • Qibolab: main
    • Qibolab_platforms_qrc: main

Copy link

codecov bot commented Mar 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.89%. Comparing base (1026f4f) to head (6cd7185).
Report is 5 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #754   +/-   ##
=======================================
  Coverage   96.88%   96.89%           
=======================================
  Files         108      108           
  Lines        7491     7508   +17     
=======================================
+ Hits         7258     7275   +17     
  Misses        233      233           
Flag Coverage Δ
unittests 96.89% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
.../qibocal/protocols/characterization/rabi/length.py 97.87% <100.00%> (-0.05%) ⬇️
...l/protocols/characterization/rabi/length_signal.py 97.93% <100.00%> (+0.50%) ⬆️

Copy link
Member

@stavros11 stavros11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @andrea-pasquale, I believe it fixes the fitting:
Before: http://login.qrccluster.com:9000/0dk2ahd8RjuAd1tPe_QUHQ==
After: http://login.qrccluster.com:9000/r3dZGTOaRHu21mr0RrNe7A==
(I guess qubit 2 fails in both cases because the signal is not really sinusoidal).

@andrea-pasquale
Copy link
Contributor Author

Thanks @andrea-pasquale, I believe it fixes the fitting:

Before: http://login.qrccluster.com:9000/0dk2ahd8RjuAd1tPe_QUHQ==

After: http://login.qrccluster.com:9000/r3dZGTOaRHu21mr0RrNe7A==

(I guess qubit 2 fails in both cases because the signal is not really sinusoidal).

Thanks @stavros11. The fix was just to show correctly the fit in the report. I did not touch or improve the performance of the fit. I can have a closer look at qubit 2 before merging.

@stavros11
Copy link
Member

stavros11 commented Mar 18, 2024

Thanks @stavros11. The fix was just to show correctly the fit in the report. I did not touch or improve the performance of the fit. I can have a closer look at qubit 2 before merging.

Well, the minima are clearly more flat than a sinusoidal, so I wouldn't blame the fit for failing in that case. There should be something wrong with the qubit/calibration parameters. We were just discussing with @rodolfocarobene why this happens but we don't have any idea. The insteresting thing is that this is the qubit that has 97% assignment fidelity...

@andrea-pasquale
Copy link
Contributor Author

Since you have 97% fidelity you could try to run rabi length with probabilities.

@stavros11
Copy link
Member

Since you have 97% fidelity you could try to run rabi length with probabilities.

Indeed, looks better but the fit still fails: http://login.qrccluster.com:9000/WfsuyLv_QmKTKPthroPbRQ==

@andrea-pasquale
Copy link
Contributor Author

Since you have 97% fidelity you could try to run rabi length with probabilities.

Indeed, looks better but the fit still fails: http://login.qrccluster.com:9000/WfsuyLv_QmKTKPthroPbRQ==

Yeah, there was a problem with the fit. Should be fixed by 6cd7185. Feel free to retry now @stavros11.

Screenshot from 2024-03-18 22-00-15

It turns out that just by normalizing the x axis everything seems to work...

Copy link
Member

@stavros11 stavros11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works for me as well, thanks.

@andrea-pasquale andrea-pasquale added this pull request to the merge queue Mar 20, 2024
Merged via the queue into main with commit d826492 Mar 20, 2024
21 checks passed
@andrea-pasquale andrea-pasquale deleted the fix_rabi_length branch March 20, 2024 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants