Comments (5)
It seems in your algorithm there is an infinite loop. Following are the places where you can find it:
- Check
len(paramaters)
iflen(paramaters)
>>1 then it will take long time to complete. - Check your hamiltonian, loss function, or any other observable if it is diverging (hence cannot be converged).
Tip:
For optimization problems use tqdm and GPUs or HPCs as they take alot time.
from qiskit-tutorials.
It seems in your algorithm there is an infinite loop. Following are the places where you can find it:
- Check
len(paramaters)
iflen(paramaters)
>>1 then it will take long time to complete.- Check your hamiltonian, loss function, or any other observable if it is diverging (hence cannot be converged).
Tip:
For optimization problems use tqdm and GPUs or HPCs as they take alot time.
I run my 4-vertex example by copying the whole notebook code on Google colab, adding
print(len(parameters))
after the original code, and run it in the same time, it currently ran for 4 hours, and the length did not have an output.
from qiskit-tutorials.
It seems in your algorithm there is an infinite loop. Following are the places where you can find it:
- Check
len(paramaters)
iflen(paramaters)
>>1 then it will take long time to complete.- Check your hamiltonian, loss function, or any other observable if it is diverging (hence cannot be converged).
Tip:
For optimization problems use tqdm and GPUs or HPCs as they take alot time.I run my 4-vertex example by copying the whole notebook code on Google colab, adding print(len(parameters)) after the original code, and run it in the same time, it currently ran for 4 hours, and the length did not have an output.
After 12 hours, my notebook on Google Colab stopped running after the kernel stopped automatically, the picture is here:
The length of parameters is still not given.
from qiskit-tutorials.
Hey! @OuCheng-Fu i can understand how it feels to wait hrs to get results. For debugging purposes please share your code or colab notebook so that i can better understand problem . I really suggest to not use git /github platform for code discussions use slack or stack overflow for that.
from qiskit-tutorials.
Hey! @OuCheng-Fu i can understand how it feels to wait hrs to get results. For debugging purposes please share your code or colab notebook so that i can better understand problem . I really suggest to not use git /github platform for code discussions use slack or stack overflow for that.
The python code on colab notebook is here:
https://colab.research.google.com/drive/1J_iw_vTHkDXpNyX5GwN9HOuTXbeBsNsN?usp=sharing
it is also on slack:
https://qiskit.slack.com/archives/CB6C24TPB/p1689016161818919?thread_ts=1688397470.409429&cid=CB6C24TPB
Thank you for reply.
from qiskit-tutorials.
Related Issues (20)
- Tutorial missing dependecies HOT 3
- Add a State Fidelities tutorial HOT 1
- AttributeError: 'Estimator' object has no attribute 'draw' HOT 2
- deploy qiskit-tutorials in ecosystem HOT 1
- Broken thumbnail for Grover tutorial HOT 3
- Refer to Trotter Evolution in the video "Time Evolution with Qiskit Nature & Opflow" HOT 2
- Refer to the problem of the tutorial "Max-Cut and Traveling Salesman Problem" HOT 4
- Add a tutorial about Quantum Imaginary Time Evolution HOT 16
- Algorithms tutorials 02_, 03_ and 04_ need amending to not use deprecated code. HOT 5
- For the problem in Qiskit Youtube Video "Time Evolution with Qiskit Nature & Opflow" HOT 2
- HHL algorithm section HOT 1
- Quantum circuit generated by Traveling Salesman Problem raise an error: "Image size of 2228x191753 pixels is too large" HOT 2
- Tutorial on using Qiskit's qiskit.algorithms.time_evolvers.variational package for variational quantum imaginary and real-time evolution based on McLachlan's variational principle HOT 2
- ParameterExpression with unbound parameters ({Parameter($\gammma$)}) cannot be cast to a float HOT 4
- Minimum Eigen Optimizer Solve Function "list index out of range" HOT 4
- Tutorial moving status HOT 3
- Typo error in QI_MIGRATION.PO source string
- Add a tutorial about Quantum Imaginary Time Evolution
- create a tutorial to demonstrate different entangled states HOT 2
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-tutorials.