Comments (9)
You are running a modified version? Does the original notebook work?
What git commit of qiskit-research are you running?
from qiskit-research.
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.
What git commit of qiskit-research are you running?
from qiskit-research.
I believe it is: qiskit_research 0.0.1
from qiskit-research.
To get the git commit, you can run
git rev-parse HEAD
from the root directory of the qiskit-research
repository.
from qiskit-research.
This is what I receive when I run it: 31406c5
from qiskit-research.
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.
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.
Ok. Please close this issue if it is resolved.
from qiskit-research.
Related Issues (17)
- Refactor add_pulse_calibrations as a transpilation pass
- Update XXPlusYYGate decomposition for latest Qiskit
- port PeriodicDynamicalDecoupling to Qiskit Terra
- Runtime HOT 1
- release? HOT 2
- qiskit-terra 0.21.2 incompatible installation error HOT 2
- Update quantum simulation tutorial to use Qiskit Nature once Parameters are supported HOT 1
- SECRCalibrationBuilder does not work with Runtime
- Cost function using virtual qubits
- Include side chains of length >1 HOT 2
- 'int' object is not subscriptable error when running result HOT 1
- Documentation link in readme gives 404 error HOT 1
- Fix mypy HOT 1
- Upgrading mapomatic breaks DD tests
- Upgrade to Qiskit 1.0
- Module error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qiskit-research.