Skip to content

Commit

Permalink
Formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
lkdvos committed Oct 28, 2023
1 parent aee97db commit 0ca7726
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/utility/plotting.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function entanglementplot end
)
mps = h.args[1]
site <= length(mps) || throw(ArgumentError("Not a valid site for the given mps."))

spectra = entanglement_spectrum(mps)
sectors = []
spectrum = []
Expand Down
4 changes: 2 additions & 2 deletions test/other.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ end
@test !isnan(sum(entropy(ts)))
@test !isnan(sum(entropy(ts, 2)))
end

@testset "changebonds with unitcells" begin
ψ = InfiniteMPS([ℂ^2, ℂ^2, ℂ^2], [ℂ^2, ℂ^3, ℂ^4])
H = repeat(transverse_field_ising(), 3)
ψ1, envs = changebonds(ψ, H, OptimalExpand(; trscheme=truncdim(2)))
@test ψ1 isa InfiniteMPS
@test norm(ψ1) 1

ψ2 = changebonds(ψ, RandExpand(; trscheme=truncdim(2)))
@test ψ2 isa InfiniteMPS
@test norm(ψ2) 1
Expand Down

0 comments on commit 0ca7726

Please sign in to comment.