NVIDIA / NVIDIA/cuda-quantum

exception thrown in cobyla

Open
#399 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug stale-notified
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.