-
Notifications
You must be signed in to change notification settings - Fork 7
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
Readout characterization #435
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Jacfomg. I tested the routine on hardware and it works.
I have some suggestions, mainly moving the computation of the fidelity and QNDness from the plot to the fit and some general improvements.
src/qibocal/protocols/characterization/readout_characterization.py
Outdated
Show resolved
Hide resolved
src/qibocal/protocols/characterization/readout_characterization.py
Outdated
Show resolved
Hide resolved
src/qibocal/protocols/characterization/readout_characterization.py
Outdated
Show resolved
Hide resolved
src/qibocal/protocols/characterization/readout_characterization.py
Outdated
Show resolved
Hide resolved
"""Store output for single qubit.""" | ||
ar = np.empty(probability.shape, dtype=ReadoutCharacterizationType) | ||
ar["probability"] = probability | ||
self.data[qubit, state, number_readout] = np.rec.array(ar) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As in the other PR maybe we can drop the number_readout
considering that the number_readout
is just the row of the array.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think in this case they are separate arrays.
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #435 +/- ##
==========================================
+ Coverage 97.15% 97.24% +0.09%
==========================================
Files 49 50 +1
Lines 3233 3341 +108
==========================================
+ Hits 3141 3249 +108
Misses 92 92
Flags with carried forward coverage won't be shown. Click here to find out more.
|
As per https://arxiv.org/abs/2106.06173. Calculate Fidelity and QND-ness of our readout.
Works with qiboteam/qibolab#517
Checklist: