Skip to content

Commit

Permalink
Actually fix the thing I said I fixed before... (#38)
Browse files Browse the repository at this point in the history
* Actually fix degenerate singular value check

* Fix attempt III

* attempt IV

* Add empty tensor check infinitepeps constructor
  • Loading branch information
lkdvos authored May 30, 2024
1 parent bb007b0 commit 4bc4980
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/algorithms/ctmrg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ function left_move(state, env::CTMRGEnv{C,T}, alg::CTMRG) where {C,T}
# Compute SVD truncation error and check for degenerate singular values
ignore_derivatives() do
if alg.verbosity > 0 && is_degenerate_spectrum(S)
svals = SectorDict{sectortype(S)}(c => diag(b) for (c, b) in blocks(S))
svals = TensorKit.SectorDict(c => diag(b) for (c, b) in blocks(S))
@warn("degenerate singular values detected: ", svals)
end
end
Expand Down
1 change: 1 addition & 0 deletions src/states/infinitepeps.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ struct InfinitePEPS{T<:PEPSTensor} <: AbstractPEPS
)
space(A[d, w], 3) == space(A[d, _next(w, end)], 5)' ||
throw(SpaceMismatch("East virtual space at site $((d, w)) does not match."))
dim(space(A[d, w])) > 0 || @warn "no fusion channels at site ($d, $w)"
end
return new{T}(A)
end
Expand Down

0 comments on commit 4bc4980

Please sign in to comment.