Improving flux fitting by using different mask#1229
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1229 +/- ##
=======================================
Coverage 97.81% 97.81%
=======================================
Files 132 132
Lines 10039 10041 +2
=======================================
+ Hits 9820 9822 +2
Misses 219 219
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
7f42286 to
f3c6a88
Compare
| unique_bias = np.unique(y) | ||
| unique_freq = np.unique(x) |
There was a problem hiding this comment.
Defining these at the beginning of the function, you could use them even in the reshape.
8212ec7 to
530c936
Compare
530c936 to
a5a7c5f
Compare
|
|
||
| for qubit in targets: | ||
| natives = platform.natives.single_qubit[qubit] | ||
| charging_energy[qubit] = platform.calibration.single_qubits[ |
There was a problem hiding this comment.
same as lines 143-144-145, remove for redundancy?
| ("phase", np.float64), | ||
| ] | ||
| ) | ||
| """Custom dtype for resonator flux dependence.""" |
There was a problem hiding this comment.
typo in the comment: correct:
"""Custom dtype for qubit flux dependence."""
There was a problem hiding this comment.
| """Custom dtype for resonator flux dependence.""" | |
| """Custom dtype for qubit flux dependence.""" |
There was a problem hiding this comment.
All changes in protocols are minor changes, mainly the elaboration of phase data of the measured signal is deleted, and only the magnitude is processed.
Parent class FluxFrequencySweepParameters is defined as a parent class for all single protocols, but in general all the input parameters are maintained for each protocol.
This branch was tested with qubit_flux experiment, when a problem in extract_feature arose for pathological cases for qubit_flux experiment: before merging to main see stabilize-extract-feature branch for stabilizing extract_feature


In this PR I'm trying to improve the performance of the fit by doing the following:
find_peakswith a suitableprominence.Here is how the fitting are looking now: http://login.qrccluster.com:9000/f4DP80QOStCzwaBP2XQxAQ==/
Compared to before where the fitting was failing: http://login.qrccluster.com:9000/x9YShaUsRU6rRJRAnmRd1w==/
I've also decided to remove the information related to the phase since it is not relevant for the fit. If we can confirm this I can refactor also the acquisition to simplify it removing the phase.