Skip to content

Commit

Permalink
test vumps; passed
Browse files Browse the repository at this point in the history
  • Loading branch information
tangwei94 committed May 17, 2024
1 parent 15c6442 commit cc0b1fd
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 21 deletions.
42 changes: 21 additions & 21 deletions Manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ version = "0.5.0"

[[deps.ChainRules]]
deps = ["Adapt", "ChainRulesCore", "Compat", "Distributed", "GPUArraysCore", "IrrationalConstants", "LinearAlgebra", "Random", "RealDot", "SparseArrays", "SparseInverseSubset", "Statistics", "StructArrays", "SuiteSparse"]
git-tree-sha1 = "e7d1016142a71c980309114ee30a3e4f870902f4"
git-tree-sha1 = "291821c1251486504f6bae435227907d734e94d2"
uuid = "082447d4-558c-5d27-93f4-14fc19e9eca2"
version = "1.65.0"
version = "1.66.0"

[[deps.ChainRulesCore]]
deps = ["Compat", "LinearAlgebra"]
Expand All @@ -123,9 +123,9 @@ version = "0.3.0"

[[deps.Compat]]
deps = ["TOML", "UUIDs"]
git-tree-sha1 = "c955881e3c981181362ae4088b35995446298b80"
git-tree-sha1 = "b1c55339b7c6c350ee89f2c1604299660525b248"
uuid = "34da2185-b29b-5c13-b0c7-acf172513d20"
version = "4.14.0"
version = "4.15.0"
weakdeps = ["Dates", "LinearAlgebra"]

[deps.Compat.extensions]
Expand Down Expand Up @@ -239,9 +239,9 @@ uuid = "7b1f6079-737a-58dc-b8bc-7a2ca5c1b5ee"

[[deps.FillArrays]]
deps = ["LinearAlgebra"]
git-tree-sha1 = "57f08d5665e76397e96b168f9acc12ab17c84a68"
git-tree-sha1 = "0653c0a2396a6da5bc4766c43041ef5fd3efbe57"
uuid = "1a297f60-69ca-5386-bcde-b61e274b549b"
version = "1.10.2"
version = "1.11.0"

[deps.FillArrays.extensions]
FillArraysPDMatsExt = "PDMats"
Expand Down Expand Up @@ -298,10 +298,10 @@ uuid = "f0d1745a-41c9-11e9-1dd9-e5d34d218721"
version = "1.6.0"

[[deps.IRTools]]
deps = ["InteractiveUtils", "MacroTools", "Test"]
git-tree-sha1 = "d05027a62b4c9a2223820a9fdeae1110ad3946a5"
deps = ["InteractiveUtils", "MacroTools"]
git-tree-sha1 = "950c3717af761bc3ff906c2e8e52bd83390b6ec2"
uuid = "7869d1d1-7146-5819-86e3-90919afe41df"
version = "0.4.13"
version = "0.4.14"

[[deps.InitialValues]]
git-tree-sha1 = "4da0f88e9a39111c2fa3add390ab15f3a44f3ca3"
Expand Down Expand Up @@ -339,9 +339,9 @@ version = "1.0.0"

[[deps.JLD2]]
deps = ["FileIO", "MacroTools", "Mmap", "OrderedCollections", "Pkg", "PrecompileTools", "Printf", "Reexport", "Requires", "TranscodingStreams", "UUIDs"]
git-tree-sha1 = "5ea6acdd53a51d897672edb694e3cc2912f3f8a7"
git-tree-sha1 = "dca9ff5abdf5fab4456876bc93f80c59a37b81df"
uuid = "033835bb-8acc-5ee8-8aae-3f567f8a3819"
version = "0.4.46"
version = "0.4.47"

[[deps.JLLWrappers]]
deps = ["Artifacts", "Preferences"]
Expand Down Expand Up @@ -458,9 +458,9 @@ version = "1.0.3"

[[deps.LoweredCodeUtils]]
deps = ["JuliaInterpreter"]
git-tree-sha1 = "31e27f0b0bf0df3e3e951bfcc43fe8c730a219f6"
git-tree-sha1 = "c6a36b22d2cca0e1a903f00f600991f97bf5f426"
uuid = "6f1432cf-f94c-5a45-995e-cdbf5db27b0b"
version = "2.4.5"
version = "2.4.6"

[[deps.MLStyle]]
git-tree-sha1 = "bc38dff0548128765760c79eb7388a4b37fae2c8"
Expand Down Expand Up @@ -657,9 +657,9 @@ version = "0.1.2"

[[deps.SpecialFunctions]]
deps = ["IrrationalConstants", "LogExpFunctions", "OpenLibm_jll", "OpenSpecFun_jll"]
git-tree-sha1 = "e2cfc4012a19088254b3950b85c3c1d8882d864d"
git-tree-sha1 = "2f5d4697f21388cbe1ff299430dd169ef97d7e14"
uuid = "276daf66-3868-5448-9aa4-cd146d93841b"
version = "2.3.1"
version = "2.4.0"
weakdeps = ["ChainRulesCore"]

[deps.SpecialFunctions.extensions]
Expand Down Expand Up @@ -750,7 +750,7 @@ version = "1.10.0"

[[deps.TensorKit]]
deps = ["HalfIntegers", "LRUCache", "LinearAlgebra", "PackageExtensionCompat", "Strided", "TensorOperations", "TupleTools", "VectorInterface", "WignerSymbols"]
git-tree-sha1 = "953512236ffa16f20aafa1444f907a44ee7cf297"
git-tree-sha1 = "5f8c091f397710b21d7d04a4885331100157045e"
repo-rev = "master"
repo-url = "https://github.com/Jutho/TensorKit.jl.git"
uuid = "07d1fe3e-3e46-537d-9eac-e9e13d0d4cec"
Expand All @@ -768,7 +768,7 @@ version = "0.6.2"

[[deps.TensorOperations]]
deps = ["LRUCache", "LinearAlgebra", "PackageExtensionCompat", "Strided", "StridedViews", "TupleTools", "VectorInterface"]
git-tree-sha1 = "8b40b71d6d9c8cc3470a27435b7f1f07a6e539be"
git-tree-sha1 = "0767566d35a97db1f5b3e1f7b90a8788530cba81"
repo-rev = "master"
repo-url = "https://github.com/Jutho/TensorOperations.jl.git"
uuid = "6aa20fa7-93e2-5fca-9bc0-fbd0db3c71a2"
Expand All @@ -788,9 +788,9 @@ deps = ["InteractiveUtils", "Logging", "Random", "Serialization"]
uuid = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[[deps.TranscodingStreams]]
git-tree-sha1 = "71509f04d045ec714c4748c785a59045c3736349"
git-tree-sha1 = "5d54d076465da49d6746c647022f3b3674e64156"
uuid = "3bb67fe8-82b1-5028-8e26-92a6c54297fa"
version = "0.10.7"
version = "0.10.8"
weakdeps = ["Random", "Test"]

[deps.TranscodingStreams.extensions]
Expand Down Expand Up @@ -847,9 +847,9 @@ version = "1.2.13+1"

[[deps.Zygote]]
deps = ["AbstractFFTs", "ChainRules", "ChainRulesCore", "DiffRules", "Distributed", "FillArrays", "ForwardDiff", "GPUArrays", "GPUArraysCore", "IRTools", "InteractiveUtils", "LinearAlgebra", "LogExpFunctions", "MacroTools", "NaNMath", "PrecompileTools", "Random", "Requires", "SparseArrays", "SpecialFunctions", "Statistics", "ZygoteRules"]
git-tree-sha1 = "4ddb4470e47b0094c93055a3bcae799165cc68f1"
git-tree-sha1 = "19c586905e78a26f7e4e97f81716057bd6b1bc54"
uuid = "e88e6eb3-aa80-5325-afca-941959d7151f"
version = "0.6.69"
version = "0.6.70"

[deps.Zygote.extensions]
ZygoteColorsExt = "Colors"
Expand Down
1 change: 1 addition & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using Test
using TensorKit, TensorOperations, KrylovKit
using ChainRules, ChainRulesCore, Zygote
using MPSKit

using Revise
using AD4VUMPS
Expand Down
12 changes: 12 additions & 0 deletions test/test_vumps.jl
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,18 @@ end
test_ADgrad(_F, T; α=1e-4, tol=1e-4)
end

@testset "test vumps" begin
T = tensor_square_ising(asinh(1) / 2)
A = TensorMap(rand, ComplexF64, ℂ^6*^2, ℂ^6)
AL, AR, AC, C = vumps(A, T)
ϕ = InfiniteMPS([AL])

ψi = InfiniteMPS([A])
ψ, _ = leading_boundary(ψi, DenseMPO([T]), VUMPS())

@test log(norm(dot(ψ, ϕ))) < 1e-9
end

@testset "test ad for vumps (partial test)" for ix in 1:10
T = tensor_square_ising(asinh(1) / 2)
A = TensorMap(rand, ComplexF64, ℂ^4*^2, ℂ^4)
Expand Down

0 comments on commit cc0b1fd

Please sign in to comment.