From 50d4da7dc8cd4ae7a3a2140b4a7020eb7ae9c30d Mon Sep 17 00:00:00 2001 From: mtfishman Date: Mon, 6 May 2024 08:20:12 -0400 Subject: [PATCH] Start reexporting ITensorTDVP and ITensors.ITensorMPS --- src/ITensorMPS.jl | 9 ++++++--- test/Project.toml | 3 +++ test/runtests.jl | 24 ++++++++++++++++++++---- 3 files changed, 29 insertions(+), 7 deletions(-) create mode 100644 test/Project.toml diff --git a/src/ITensorMPS.jl b/src/ITensorMPS.jl index f302f08..abf6120 100644 --- a/src/ITensorMPS.jl +++ b/src/ITensorMPS.jl @@ -1,5 +1,8 @@ module ITensorMPS - -# Write your package code here. - +using ITensorTDVP: TimeDependentSum, dmrg_x, linsolve, tdvp, to_vec +export TimeDependentSum, dmrg_x, linsolve, tdvp, to_vec +using ITensorTDVP: ITensorTDVP +alternating_update_dmrg(args...; kwargs...) = ITensorTDVP.dmrg(args...; kwargs...) +using ITensors.ITensorMPS: dmrg +export dmrg end diff --git a/test/Project.toml b/test/Project.toml new file mode 100644 index 0000000..8e52c88 --- /dev/null +++ b/test/Project.toml @@ -0,0 +1,3 @@ +[deps] +ITensorMPS = "0d1a4710-d33b-49a5-8f18-73bdf49b47e2" +Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" diff --git a/test/runtests.jl b/test/runtests.jl index bfca00c..8a561c4 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,6 +1,22 @@ -using ITensorMPS -using Test - +@eval module $(gensym()) +using ITensorMPS: ITensorMPS +using Test: @test, @testset @testset "ITensorMPS.jl" begin - # Write your tests here. + @testset "exports" begin + @test issetequal( + names(ITensorMPS), + [ + :ITensorMPS, + # ITensorMPS reexports + :dmrg, + # ITensorTDVP reexports + :TimeDependentSum, + :dmrg_x, + :linsolve, + :tdvp, + :to_vec, + ], + ) + end +end end