Fix map_eigvals for fermionic case and test#250
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #250 +/- ##
==========================================
+ Coverage 0.00% 77.42% +77.42%
==========================================
Files 75 77 +2
Lines 3784 3823 +39
==========================================
+ Hits 0 2960 +2960
+ Misses 3784 863 -2921
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Not sure why those codecov tests are failing since I put in a test of these code pathways. But mainly these changes are quite similar to those in the recent ITensors.jl PR. |
|
@emstoudenmire I noticed in #248 some TEBD tests are failing in this arrow direction check: https://github.com/ITensor/ITensors.jl/blob/c019c65a0f3cb4d7a88e57714bbcfa3986f56de4/src/tensor_operations/matrix_algebra.jl#L79-L84 introduced in ITensor/ITensors.jl#1661. I think the issue might be that in some of the tests, the auto fermion system is enabled but a non-QN calculation is being run, and those checks are assuming the tensors have QNs. EDIT: Tests in this PR are failing now too after rerunning them, they were passing before since ITensor/ITensors.jl#1661 wasn't registered. |
|
Latest updates to this PR include changing the code to be more similar to the final version of the recent ITensors You may want to have a look at lines 68 and 69 of the |
|
Some of the other tests, such as in at the top of |
I see, thanks for investigating this. I forgot that |
|
Made that change. As a future pair of PR's, I could move the |
I would prefer to just have repeated definitions of |
Along similar lines to the recent PR in ITensors.jl, this PR fixes the
map_eigvalsfunction in ITensorNetworks.ITensorsExtensions to handle the case of fermionic tensors correctly. The PR includes tests of the case where the non-linear map is the functionsqrt, checking that the resulting tensors square back to the original one.