-
Notifications
You must be signed in to change notification settings - Fork 201
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
Validate Python arguments #1940
Conversation
khalatepradnya
commented
Jul 16, 2024
- Check the expected number of arguments and datatypes in Python AST bridge
- Add bugs reported in the following issues as tests
- Error should be thrown when trying to access qubit outside range of allocated qubits #9,
- Improving Error Message Clarity for 'ry' Gate Datatype Mismatch #670, and
- [compiler bug] Python MLIR doesn't catch incorrect arguments to rotation gates #1641 as tests
bridge * Check that control argument(s) is provided if `.ctrl` attribute is used * Add bugs reported in issues NVIDIA#9, NVIDIA#670, and NVIDIA#1641 as tests
981b0e0
to
692dcf5
Compare
CUDA Quantum Docs Bot: A preview of the documentation can be found here. |
CUDA Quantum Docs Bot: A preview of the documentation can be found here. |
Just my opinion. Seems like visit_call function is too long (1250 lines). I think it should be refactored. Reviewing other changes in this PR. |
CUDA Quantum Docs Bot: A preview of the documentation can be found here. |
Agreed. Refactoring opportunity for sure. Do you want to capture this in a separate issue? |
Or I can quickly code it up in a PR? Or let me know if you would like to refactor it? |
Separate PR sounds good. I won't get to it right away, please go ahead. |
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.
Thanks @khalatepradnya. LGTM!
Once this PR is merged in, mind closing the associated issues? |
Will do. |