-
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
fix frequency range type #803
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #803 +/- ##
==========================================
- Coverage 97.13% 97.11% -0.03%
==========================================
Files 104 104
Lines 7786 7786
==========================================
- Hits 7563 7561 -2
- Misses 223 225 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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 @Edoardo-Pedicillo.
Two points:
- Can we have a function to generate the
delta_frequency_range
? In this way we can avoid to change many times the same thing. - Before merging we should check that all drivers work with float frequencies? Is this the case @stavros11 @hay-k @alecandido?
This was one (tiny) point in Qibolab 0.2: the goal is to always make use of floats in the interface for real quantities (not only for frequencies), and integers inside the drivers (when needed). I would say that there is no electronics actually supporting floats, but they should all support fixed precision. So, the conversion should happen inside. (the rfsoc is already using floats for frequencies, laboneq should always accept floats, and in QUA you declare them as fixed, but they are initialized with floats - for qblox I still have to find out...) |
In QM frequency sweeps are casted to
That's correct, however for frequency sweeps which are relevant for this PR we have to use the In any case, I agree that these conversions should be handled by the drivers and we should just use floats externally. |
Thanks for the feedback @stavros11 @alecandido! |
The changes do not brake QM |
The moment we will get to the drivers' update, the goal is to make the required casts in the driver (this will go together a units update, since the goal is to use GHz and ns everywhere, and to avoid 1e9/1e6 conversions - confining all the required conversions to the drivers). |
Also Zurich seems fine http://login.qrccluster.com:9000/vwrYTwXoTGe6Nu8u1KYkuQ==/ |
Qblox is also fine: http://login.qrccluster.com:9000/W97M2TjkRKCzAEh-BdPPNw==/ |
This PR closes #762
Checklist:
master
main
main