Remove redefinition of tensorexpr#268
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests.
🚀 New features to boost your workflow:
|
|
Seems like there are still some corner cases left that were not caught by the MPSKit implementation. Do you want to add them to a PR there or just leave this as is for now? In principle this is not a big copy, and |
|
All the errors seem to come from |
|
The problem is that
|
|
There actually is a
Then I think we should modify MPSKit. |
|
There are some weird segmentation faults in the tests which are also encountered in #273, so they are not caused by the PR, but some upstream regressions. |
|
It seems like it could be an issue with Julia v1.12.0 itself. I can't see much difference in package versions at first sight, the differences from the last time CI passed is that Julia v1.12.0 is used versus v1.11.7 before, and along with that LinearAlgebra.jl is on v1.12.0 versus v1.11.7 before. Most likely Julia v1.12.0 broke Zygote? |
|
@kshyatt is this what you meant with the thing caused by GC pressure? |
|
Might be related to JuliaLang/julia#59138. |
EDIT: This PR requires MPSKit v0.13.7 or higher.
This PR removes the following redefinition of
MPSKit.tensorexpr:PEPSKit.jl/src/algorithms/contractions/localoperator.jl
Lines 4 to 11 in f482711
When I look at the current MPSKit v0.13.6 (actually, since v0.12.6 or QuantumKitHub/MPSKit.jl#256), MPSKit no longer "restricts tensor names to symbols":
https://github.com/QuantumKitHub/MPSKit.jl/blob/440acdb19fb12b7b9e45b2b02ad865ab8adb66a1/src/utility/utility.jl#L123-L128
Since now PEPSKit depends on MPSKit v0.13 or higher, we should be able to remove the redefinition of
tensorexprsafely.