VQE tutorial for H2 example is giving NLOpt runtime error
marwafar opened this issue · 0 comments
marwafar commented
Required prerequisites
- Consult the security policy. If reporting a security vulnerability, do not report the bug using this form. Use the process described in the policy to report the issue.
- Make sure you've read the documentation. Your issue may be addressed there.
- Search the issue tracker to verify that this hasn't already been reported. +1 or comment there if it has.
- If possible, make a PR with a failing test to give us a starting point to work on!
Describe the bug
The VQE code for H2: https://github.com/NVIDIA/cuda-quantum/blob/main/docs/sphinx/examples/python/tutorials/vqe.ipynb
When executing this cell of the code
optimizer = cudaq.optimizers.COBYLA()
energy, parameters = cudaq.vqe(kernel,
molecule,
optimizer,
argument_mapper=lambda parameters:
(parameters, qubit_count, electron_count),
parameter_count=parameter_count)
print(energy)
I have NLOpt runtime error
Steps to reproduce the bug
Run the tutorial here:
https://github.com/NVIDIA/cuda-quantum/blob/main/docs/sphinx/examples/python/tutorials/vqe.ipynb
Expected behavior
It should print the energy
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:
CUDA Quantum version: latest image (April 11)
Suggestions
No response