-
Notifications
You must be signed in to change notification settings - Fork 125
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
Fixed a bug in MPS from string. #1338
Conversation
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main ITensor/ITensors.jl#1338 +/- ##
===========================================
- Coverage 84.32% 53.79% -30.54%
===========================================
Files 100 99 -1
Lines 8568 8525 -43
===========================================
- Hits 7225 4586 -2639
- Misses 1343 3939 +2596 ☔ View full report in Codecov by Sentry. |
Thanks Ben, but let me take a close look at this before we decide to merge. I remember needing to reverse the link indices from the usual direction in order to make this function work properly with our "auto fermion" system. |
Is this reverse order causing an issue later on in your code? Or is it just not the ordering you expected when printing the tensors? |
It produces an error when trying to add two MPSs using the "directsum" method (see above). I think it's just a consistency issue, that the direction from |
I think a better solution would be to make |
I raised an issue about |
Fixes what I believe to be a bug in the construction of a QN MPS from a list of strings. Specifically I think the direction of the link indices was backwards.
Demonstration of previous behavior
Demonstration of new behavior
using JuliaFormatter; format(".")
in the base directory of the repository (~/.julia/dev/ITensors
) to format your code according to our style guidelines.