unclear error message when calling cudaq.adjoint outside of a kernel #1855
Labels
user experience
Issue or PR that significantly impacts user experience
Milestone
Required prerequisites
Describe the bug
There is no (or difficult to find) documentation on the
cudaq.adjoint
operator applied to a kernel to indicate that the behaviors below might not be allowed (unless one has a solid understanding of decorators, which I don't think all of our user base will necessarily have). The error message produced doesn't really help since it seems to indicate that this function doesn't even exist.error message: module 'cudaq' has no attribute 'adjoint'
Steps to reproduce the bug
Expected behavior
An error message that better explains the problem and doesn't mislead the user that this operation isn't defined at all.
Is this a regression? If it is, put the last known working version (or commit) here.
Not a regression
Environment
Suggestions
No response
The text was updated successfully, but these errors were encountered: