-
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
Improve error message for invalid measurement in adjoint() region #1425
Conversation
@sengthai Have a look at the failing CI, it looks like you need to update the corresponding tests with the new error message :) |
Update test case Update changelog
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1425 +/- ##
==========================================
- Coverage 96.67% 96.67% -0.01%
==========================================
Files 75 75
Lines 8230 8229 -1
Branches 859 859
==========================================
- Hits 7956 7955 -1
Misses 221 221
Partials 53 53 ☔ 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.
Nice 👍
Co-authored-by: David Ittah <dime10@users.noreply.github.com>
Co-authored-by: David Ittah <dime10@users.noreply.github.com>
I appreciate your suggestion, @dime10. 🚀 |
Update the code format
Context:
Improve the error message when using measure within an
adjoin()
region.Example
Description of the Change:
Write and insert an error message
"Measurements are not invertible and cannot be used within an adjoint() region."
Related GitHub Issues:
#1188