Add target parameters validation
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 1.1k
- Forks
- 456
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 165
Description
Discussed in https://github.com/NVIDIA/cuda-quantum/discussions/3175
Originally posted by lucas-slattery July 8, 2025
How do I validate the options for cudaq.set_target?
All of these settings produce simulations that 'run'.
cudaq.set_target("tensornet")
cudaq.set_target("tensornet",options="mpgu")
cudaq.set_target("tensornet",options="fp32")
cudaq.set_target("tensornet",options="mgpu,fp32")
cudaq.set_target("tensornet",options="anyrandomstring")
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the cudaq.set_target entry point and review how the target and its options are handled. Reproduce the examples from the issue, including the invalid options, then add validation so unsupported values no longer run silently and cover the behavior with tests; the payload names no specific files or tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, python
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100