-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'complex' object has no attribute 'norm' #162
Comments
👏👏👏 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. |
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
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 |
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: |
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.
The text was updated successfully, but these errors were encountered: