Giter Site home page Giter Site logo

Kernel dead error about qiskit-research HOT 9 CLOSED

hkndoga avatar hkndoga commented on September 6, 2024
Kernel dead error

from qiskit-research.

Comments (9)

kevinsung avatar kevinsung commented on September 6, 2024

You are running a modified version? Does the original notebook work?

What git commit of qiskit-research are you running?

from qiskit-research.

hkndoga avatar hkndoga commented on September 6, 2024

I actually tried a few different protein structure to compare and maybe this can help. The error above happened when I ran a longer protein sequence with 15 amino acids. I tried to run a shorter one today with only 6 amino acids and obtained the following error:

ValueError Traceback (most recent call last)
Cell In[34], line 1
----> 1 raw_result = vqe.compute_minimum_eigenvalue(qubit_op)
2 print(raw_result)

File c:\Users\8J6010897\AppData\Local\anaconda3\lib\site-packages\qiskit\algorithms\minimum_eigen_solvers\vqe.py:546, in VQE.compute_minimum_eigenvalue(self, operator, aux_operators)
542 opt_result = self.optimizer( # pylint: disable=not-callable
543 fun=energy_evaluation, x0=initial_point, jac=gradient, bounds=bounds
544 )
545 else:
--> 546 opt_result = self.optimizer.minimize(
547 fun=energy_evaluation, x0=initial_point, jac=gradient, bounds=bounds
548 )
550 eval_time = time() - start_time
552 result = VQEResult()

File c:\Users\8J6010897\AppData\Local\anaconda3\lib\site-packages\qiskit\algorithms\optimizers\scipy_optimizer.py:148, in SciPyOptimizer.minimize(self, fun, x0, jac, bounds)
145 swapped_deprecated_args = True
146 self._options["maxfun"] = self._options.pop("maxiter")
--> 148 raw_result = minimize(
149 fun=fun,
150 x0=x0,
151 method=self._method,
152 jac=jac,
...
--> 241 raise ValueError("Unsupported input to CVaRMeasurement.eval:", type(front))
243 obs = self.primitive
244 outcomes = list(data.items())

ValueError: ('Unsupported input to CVaRMeasurement.eval:', )

from qiskit-research.

kevinsung avatar kevinsung commented on September 6, 2024

What git commit of qiskit-research are you running?

from qiskit-research.

hkndoga avatar hkndoga commented on September 6, 2024

I believe it is: qiskit_research 0.0.1

from qiskit-research.

kevinsung avatar kevinsung commented on September 6, 2024

To get the git commit, you can run

git rev-parse HEAD

from the root directory of the qiskit-research repository.

from qiskit-research.

hkndoga avatar hkndoga commented on September 6, 2024

This is what I receive when I run it: 31406c5

from qiskit-research.

kevinsung avatar kevinsung commented on September 6, 2024

You mentioned that you modified the notebook before running it. If you run the notebook exactly as it appears in the repository, without any changes, does it work?

from qiskit-research.

hkndoga avatar hkndoga commented on September 6, 2024

Yes, I can run the original code with no issues! I realized that when initializing the VQE with CVar, I was supposed to use SamplingVQE. Sorry for all the trouble and thanks a lot for your help! The code works fine now!

from qiskit-research.

kevinsung avatar kevinsung commented on September 6, 2024

Ok. Please close this issue if it is resolved.

from qiskit-research.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.