-
Notifications
You must be signed in to change notification settings - Fork 17
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
Fix for TOF routine on QM #898
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #898 +/- ##
==========================================
- Coverage 66.61% 66.60% -0.02%
==========================================
Files 55 55
Lines 5943 5944 +1
==========================================
Hits 3959 3959
- Misses 1984 1985 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
This should be ready, I think it is fixing the time of flight routine. I don't think I can fix the coverage because it is qua code which I am not yet sure how to execute in the CI. |
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.
Fine by me, it's a minimal internal change.
Just to understand: why do you need an explicit phase reset?
Thanks. I took it from here https://github.com/qua-platform/qua-libs/blob/066d7c7588419f84cf8c3a20a47ac2696ac52257/Quantum-Control-Applications/Superconducting/Single-Fixed-Transmon/02_raw_adc_traces.py#L29 and there is a brief explanation on the comment above. If you search for |
About integration, maybe the phase is cancelled because we are also demodulating? |
I get that the bare reading would be a two-dimensional array, sample and time. Since you average over sample, you want to establish a common reference, otherwise you would get a random average (possibly zero) for the first entry of each given sample. However, if the variation is consistent over time, the I'm reasoning about the acquired value, though the phase being set is the one of the readout pulse. For sure I'm missing something... |
Demodulation should subtract a frequency, so only a time-dependent phase, not the initial value (you could consider as if the initial value of the modulating wave has always a 0 phase, which most likely is true...). |
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.
Yeah, I'm still a bit lost about the reset phase. I may look at it later.
I think this is needed to see the time of flight.