Skip to content

Commit

Permalink
Tests passing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus committed Jul 13, 2022
1 parent 62bd58e commit 238e4dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ version = "0.3.18"
[deps]
BitIntegers = "c3b6d118-76ef-56ca-8cc7-ebb389d030a1"
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
Combinatorics = "861a8166-3701-5b0c-9a16-15d98fcdc6aa"
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"
Dictionaries = "85a47980-9c8c-11e8-2b9f-f7ca1fa99fb4"
HDF5 = "f67ccb44-e63f-5c2f-98bd-6dc0ccc4ba2f"
Expand Down
5 changes: 3 additions & 2 deletions test/mps.jl
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ include("util.jl")
end

@testset "randomMPS bond dimensions" begin
phi = randomMPS(ComplexF64, sites)
phi = randomMPS(ComplexF64, sites, 50)
expected_dims = [2, 4, 8, 16, 32, 16, 8, 4, 2]

for i in 1:9
Expand Down Expand Up @@ -492,7 +492,8 @@ include("util.jl")

ϕ2 = +(ψ1, ψ2; alg="directsum")
for j in 1:8
@test linkdim(ϕ2, j) == χ1 + χ2
#@test linkdim(ϕ2, j) == χ1 + χ2
@test linkdim(ϕ2, j) == linkdim(ψ1, j) + linkdim(ψ2, j)
end
@test inner(ϕ2, ψ1) + inner(ϕ2, ψ2) inner(ϕ2, ϕ2)
end
Expand Down

0 comments on commit 238e4dc

Please sign in to comment.