Unclear error message on passing ndarray to kernels that accept cudaq.State #1814
Labels
user experience
Issue or PR that significantly impacts user experience
Milestone
Required prerequisites
Describe the bug
Python gives unclear message when I pass a
ndarray
to a kernel that takerscudaq.State
as a parameter"Steps to reproduce the bug
Expected behavior
A better error message would mention the actual type (
ndarray
) not matching the formal type (cudaq.State
)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: