-
Notifications
You must be signed in to change notification settings - Fork 40
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 the default value of qubits_len
for the qinst
primitive
#496
Conversation
Two issues are being fixed: - The default value of `-1`, intended to represent all arguments are qubits, does not actually work. Instead, it introduces a off by one error, cutting off one of the qubit values. - The abstract evaluation did not work with the default value, and instead assumed the value was always set manually.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #496 +/- ##
=======================================
Coverage 99.57% 99.57%
=======================================
Files 43 43
Lines 7740 7740
Branches 533 533
=======================================
Hits 7707 7707
Misses 17 17
Partials 16 16 ☔ 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.
🥳
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.
🪂
Co-authored-by: Ali Asadi <10773383+maliasadi@users.noreply.github.com>
Two issues are being fixed:
-1
, intended to represent all arguments arequbits, does not actually work. Instead, it introduces a off by one
error, cutting off one of the qubit values.
instead assumed the value was always set manually.
Credit to @positr0nium for unearthing this :)