-
Notifications
You must be signed in to change notification settings - Fork 45
Fix_notebook.jl #286
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
Fix_notebook.jl #286
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅ see 3 files with indirect coverage changes 🚀 New features to boost your workflow:
|
lkdvos
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just making sure I get this right, the issue effectively was that the momentum function already took the angle, while it shouldn't have?
Also, the normalization was unnecessary because the vectors already come out as normalized?
Otherwise I'm definitely happy with this change, thanks for the fix!
If you don't mind I'll rerun the example and push the changes here so the docs get updated appropriately?
Yes, basically!
Yes please :) |
|
I also realized that imposing Z2 helps to keep the degeneracies and thus the better momentum |
| " id = complex(isomorphism(ℂ^2, ℂ^2))\n", | ||
| " @tensor O[-1 -2; -3 -4] := id[-1, -3] * id[-2, -4]\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about? id is already a function in TensorKit.jl
" I = id(ComplexF64, ℂ^2)\n",
" @tensor O[-1 -2; -3 -4] := I[-1, -3] * I[-2, -4]\n",There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, I didn't notice this PR is merged already; was reading it via email.
| id = complex(isomorphism(ℂ^2, ℂ^2)) | ||
| @tensor O[-1 -2; -3 -4] := id[-1, -3] * id[-2, -4] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here.
The fixing of degeneracy was incorrect. I fixed the fix_degeneracies function and added some comments concerning the relation between the momentum and conformal spins.