From 0b022fa18e318b2455dfc880458bbc0ace310dcc Mon Sep 17 00:00:00 2001 From: mtfishman Date: Fri, 10 May 2024 15:34:00 -0400 Subject: [PATCH] Make AbstractSum accessible as ITensorMPS.AbstractSum --- Project.toml | 2 +- src/ITensorMPS.jl | 5 +++-- test/runtests.jl | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Project.toml b/Project.toml index 46ee8dc..3f4d9ce 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "ITensorMPS" uuid = "0d1a4710-d33b-49a5-8f18-73bdf49b47e2" authors = ["Matthew Fishman ", "Miles Stoudenmire "] -version = "0.1.3" +version = "0.1.4" [deps] ITensorTDVP = "25707e16-a4db-4a07-99d9-4d67b7af0342" diff --git a/src/ITensorMPS.jl b/src/ITensorMPS.jl index f359d71..a9f1874 100644 --- a/src/ITensorMPS.jl +++ b/src/ITensorMPS.jl @@ -3,8 +3,9 @@ using Reexport: @reexport @reexport using ITensorTDVP: TimeDependentSum, dmrg_x, linsolve, tdvp, to_vec using ITensorTDVP: ITensorTDVP const alternating_update_dmrg = ITensorTDVP.dmrg -# Not re-exported, but accessible as `ITensorMPS.sortmergeterms`. -using ITensors.ITensorMPS: sortmergeterms +# Not re-exported, but this makes these types and functions accessible +# as `ITensorMPS.x`. +using ITensors.ITensorMPS: AbstractMPS, sortmergeterms @reexport using ITensors.ITensorMPS: @OpName_str, @SiteType_str, diff --git a/test/runtests.jl b/test/runtests.jl index 74a5f91..2bc667d 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -28,6 +28,7 @@ using Test: @test, @test_broken, @testset # ``` # ? @test_broken ITensorMPS.sortmergeterms === ITensors.sortmergeterms + @test ITensorMPS.AbstractSum === ITensors.ITensorMPS.AbstractSum end end end