Skip to content
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

$Failed error in Mathematica 13.3.0.0 #5

Open
ianww opened this issue Jul 22, 2023 · 7 comments · May be fixed by #6
Open

$Failed error in Mathematica 13.3.0.0 #5

ianww opened this issue Jul 22, 2023 · 7 comments · May be fixed by #6

Comments

@ianww
Copy link

ianww commented Jul 22, 2023

I'm using Mathematica 13.3.0.0.

I've downloaded the wl file to C:\Users\ianww\Documents\Mathematica\BernDirac.wl

I run:

ClearAll["Global`*"]
Get["C:\\Users\\ianww\\Documents\\Mathematica\\BernDirac.wl"]

I try (using esc ket esc to create the ket operator):

image

but I get a failed error:

$Failed

I also get the error if I comment out //MatrixForm:

image
$Failed

I get the same error if I try to run your example file.

I've also tried using Import rather than Get:

Import["C:\\Users\\ianww\\Documents\\Mathematica\\BernDirac.wl", "Rules"]

and it shows the file is loading ok because I get a comprehensive list of rules. However, the same $Failed error occurs.

Do you know if your wl is compatible with Mathematica 13.3.0.0? Or could there be some other cause that I've missed?

@bernwo
Copy link
Owner

bernwo commented Jul 23, 2023

It seems to me that Bra and Ket has been updated in version 13.3 and thus broke this library. I will fix this and let you know.

@ianww
Copy link
Author

ianww commented Jul 23, 2023

Thanks!

@bernwo
Copy link
Owner

bernwo commented Jul 30, 2023

@ianww I pushed a fix to dev branch. Could you try the fix and see if it works? If so, I will merge the fix with the main branch.

@ianww
Copy link
Author

ianww commented Jul 30, 2023

Mostly working fine now, thanks, but a couple of things when working through your examples notebook -

I get a Symbol Global is protected error (for +, - and Sn) with ClearAll["Global'*"]. That might just be something my end though - I'm not sure what to do about it.

The DiracForm[] examples generates this output:

image

instead of

image

Similarly, PartialTr[] generates this output:

image

instead of:

image

@bernwo
Copy link
Owner

bernwo commented Jul 30, 2023

Thanks for testing and bringing this other issue to my attention. I found the root cause and fixing it now.

@bernwo
Copy link
Owner

bernwo commented Jul 30, 2023

@ianww Can you test again on dev branch for DiracForm[]? It should be fixed now.

@bernwo bernwo linked a pull request Jul 30, 2023 that will close this issue
@ianww
Copy link
Author

ianww commented Jul 30, 2023

All working ok apart from PartialTr[], which is still showing:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants