Jupyter Kernel Crashes on Windows #118
Replies: 1 comment 2 replies
-
It is common that when you run a code on different hardware, you get different speed. If it is more stable on Mac, you may simply use Mac.
If you make significant changes to what you get from the documentation, it is your responsibility to understand its behavior. In general I do not recommend you to reorganize the documentation script and then assume the outcome will still make sense. In fact, there are some evident errors in your script, such as: Q, driver, b = initialVals(params)
gaps = []
for T in params['t_list']:
b.add_term("CD", np.array([[i, i+1, i+1, i] for i in range(params['L']-1)]).flatten(), -T) Here when you keep calling The safest way is to run the 10 cases in 10 separate scripts, and each script should look exactly like the one given in the documentation, apart from some small changes for the parameters. |
Beta Was this translation helpful? Give feedback.
-
I am trying to plot the first excitation gap as a function of the Hopping Amplitude J. With increase in J value, it takes more time to compute the gap using the script given here (script-1). For example, if t goes from 0 to 1 with a step of 0.1, after computing gap for these cases, the kernel crashes.
To debug this, I run the script on python interpreter and got this error
I tried uninstalling and reinstalling numpy and matplotlib as given some of the stackexchange answers - these did not work either.
I tested the same using the script (script-2) for Bose Hubbard Model on the documentation site. In this case, it takes about approx 60 seconds for each value of J to compute the gap.
Also, the two scripts above when on run Mac, it gave the output in a few seconds.
Beta Was this translation helpful? Give feedback.
All reactions