Open gsteele13 opened 2 weeks ago
👏👏👏 You are awesome! Thank you for making your first issue to pyEPR ' first issue
ok, to my great sadness, reinstalling everything and downgrading to numpy 1.19 did not get my code to run. i will indeed have to pull the pyepr code and fix the bug.
OK, I realise that I am too much of a noob to figure out how to create a pull request. But in any case, this diff fixed my problem:
I see .norm() used a few more times in the file, but I have not yet run into issues with it causing errors.
Thank Gary! This is nice.You could use the online interface and just click the edit file icon at the top When you try to save it will ask if you want to set up as clone and pullSent from my iPhoneOn Nov 6, 2024, at 2:03 PM, Gary Steele @.***> wrote: OK, I realise that I am too much of a noob to figure out how to create a pull request. But in any case, this diff fixed my problem: image.png (view on web) I see .norm() used a few more times in the file, but I have not yet run into issues with it causing errors.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>
Hi Zlatko,
Yes, in fact, during the pip install .
, it upgraded already numpy to 1.24. I also just did some testing and it works fine, this was my test:
mamba create -n qiskit-metal-pip python=3.10 pint=0.23
mamba activate qiskit-metal-pip
mamba install qiskit-metal notebook
pip install git+https://github.com/gsteele13/pyEPR.git
jupyter notebook
then Open 4.02 Eigenmode and EPR.ipynb => Make sure all cells run
Python 3.12 does not work with qiskit metal (kernel crashes on import) so I rolled back to 3.10 there. And, furthermore, pint 0.24 also breaks qiskit metal, I found that rolling back to 0.23 solves the issue. I should probably make some issues in the qiskit-metal repo (may do that when I have time...)
In any case, with a pretty fresh install based on a constraint to python 3.10, the code in this pull request works fine.
Thanks @gsteele13
Yes we can update the requirements if we are confident what new ones will work
Thanks.I use Gary‘s to solve this problem and it works.But if numpy>=2.0(my numpy=2.1.3),I meet another problem:np.mat
was removed in the NumPy 2.0 release. Use np.asmatrix
instead.(core_quantum_analysis.py:788),my coding ability is very poor,cannot change it.So I change numpy2.1.3 to numpy1.25.It works and can run all the code of Startup example.
In a recnet install, I ran into this error:
Some googling suggests that this is related to problems with changes in numpy between 1.19 and 1.20:
https://groups.google.com/g/qutip/c/R0kXhv1rtO8 https://www.reddit.com/r/QuantumComputing/comments/1dll5gh/pyepr_tutorial_1_questions/
It looks like a pretty simple fix? I may look into fixing it and submitting a pull request.