From 238e4dcb183ed9171027370db11c32eb40af4d53 Mon Sep 17 00:00:00 2001 From: Markus Date: Wed, 13 Jul 2022 12:59:27 +0200 Subject: [PATCH] Tests passing. --- Project.toml | 1 + test/mps.jl | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index edb849908c..b15ffe42ee 100644 --- a/Project.toml +++ b/Project.toml @@ -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" diff --git a/test/mps.jl b/test/mps.jl index 832d40e3ac..e88751db10 100644 --- a/test/mps.jl +++ b/test/mps.jl @@ -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 @@ -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