Open
Conversation
Contributor
|
Your PR requires formatting changes to meet the project's style guidelines. Click here to view the suggested changes.diff --git a/test/states/infinitemps.jl b/test/states/infinitemps.jl
index 9389fe2..1c34162 100644
--- a/test/states/infinitemps.jl
+++ b/test/states/infinitemps.jl
@@ -12,7 +12,7 @@ using TensorKit
using TensorKit: ℙ
@testset "InfiniteMPS ($(sectortype(D)), $elt)" for (D, d, elt) in
- [(ℙ^10, ℙ^2, ComplexF64), (Rep[U₁](1 => 3), Rep[U₁](0 => 1), ComplexF64)]
+ [(ℙ^10, ℙ^2, ComplexF64), (Rep[U₁](1 => 3), Rep[U₁](0 => 1), ComplexF64)]
tol = Float64(eps(real(elt)) * 100)
ψ = InfiniteMPS([rand(elt, D * d, D), rand(elt, D * d, D)]; tol)
@@ -31,7 +31,7 @@ using TensorKit: ℙ
for i in 1:length(ψ)
@plansor difference[-1 -2; -3] := ψ.AL[i][-1 -2; 1] * ψ.C[i][1; -3] -
- ψ.C[i-1][-1; 1] * ψ.AR[i][1 -2; -3]
+ ψ.C[i - 1][-1; 1] * ψ.AR[i][1 -2; -3]
@test norm(difference, Inf) < tol * 10
@test l_LL(ψ, i) * TransferMatrix(ψ.AL[i], ψ.AL[i]) ≈ l_LL(ψ, i + 1) |
Codecov Report❌ Patch coverage is
... and 72 files with indirect coverage changes 🚀 New features to boost your workflow:
|
lkdvos
approved these changes
Feb 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #386. Probably should add more tests also for copy operations on all other objects like MPOs.