-
Notifications
You must be signed in to change notification settings - Fork 3
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
Qhc 736 bug wrong array output for qbloxresult from qprogram #853
base: main
Are you sure you want to change the base?
Qhc 736 bug wrong array output for qbloxresult from qprogram #853
Conversation
AI AnalysisReview:The code changes in qblox_qrm.py and qblox_measurement_result.py to add a new 'shape' attribute seem consistent and useful for reshaping data. The fix for the typo in qblox_qrm.py is straightforward and improves code readability. The changes in qblox_compiler.py to calculate and store the shape of acquisition data appear well-implemented and enhance the functionality of the class.
|
Hello. You may have forgotten to update the changelog!
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #853 +/- ##
=======================================
Coverage 96.67% 96.67%
=======================================
Files 221 221
Lines 7729 7739 +10
=======================================
+ Hits 7472 7482 +10
Misses 257 257
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
Left some comments.
Another remark: Take note that QuantumMachines in case there is 1 loop let's say 10 iterations, returns an array with shape (2, 1, 10) and not (2, 10) |
Co-authored-by: Vyron Vasileiadis <[email protected]>
Then we should adopt this format right? So both results have the same one. |
Yes, we should have the same shapes for both vendors. |
Cool, I will re-adapt QBlox then, thanks. |
I double checked and is the same as you have it now. sorry for the confusion |
So (2, N) for one loop, (2, M, N) for nested loop etc. |
Music to my ears then! Will fix the unittest failing then. |
This might need to wait until January to be merged as I really want to test it on real hardware before merging, and we will be warming up on Friday and need to give Adrián some measurement room before then. |
This PR reshapes QBlox acquisitions so they are standard with other vendors acquisitions when having nested loops, i.e.:
outer_loop = 51
inner_loop = 11
old_acquisitions.shape(561, 2)
new_acquisitions.shape(51, 11, 2)