exception thrown in cobyla
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 1.1k
- Forks
- 456
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 165
Description
Describe the bug
The generated executable terminates with an uncaught exception being thrown.
Steps to reproduce the bug
% nvq++ docs/sphinx/examples/cpp/other/gradients.cpp --target ionq
% ./a.out
Optimize with no gradients.
terminate called after throwing an instance of 'std::exception'
what(): std::exception
Aborted
Expected behavior
The example should run and produce a result.
Is this a regression? If it is, put the last known working version (or commit) here.
Not a regression
Environment
- CUDA Quantum version:
- Python version:
- C++ compiler:
- Operating system:
Suggestions
No response
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
Reproduce the failure with nvq++ docs/sphinx/examples/cpp/other/gradients.cpp --target ionq, then run ./a.out and inspect the COBYLA path used by the gradients example. Trace the uncaught exception from the optimization step; done means the example runs to completion and produces a result without aborting.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- quantum-computing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100