From 6f921af8889e9141a7d55115e7e35da905a03554 Mon Sep 17 00:00:00 2001 From: mtfishman <mfishman@flatironinstitute.org> Date: Thu, 9 May 2024 18:05:24 -0400 Subject: [PATCH] sortmergeterm namespace --- Project.toml | 2 +- src/ITensorMPS.jl | 2 ++ test/runtests.jl | 13 +++++++++++-- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/Project.toml b/Project.toml index 26eea9f..46ee8dc 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "ITensorMPS" uuid = "0d1a4710-d33b-49a5-8f18-73bdf49b47e2" authors = ["Matthew Fishman <mfishman@flatironinstitute.org>", "Miles Stoudenmire <mstoudenmire@flatironinstitute.org>"] -version = "0.1.2" +version = "0.1.3" [deps] ITensorTDVP = "25707e16-a4db-4a07-99d9-4d67b7af0342" diff --git a/src/ITensorMPS.jl b/src/ITensorMPS.jl index 842d279..f359d71 100644 --- a/src/ITensorMPS.jl +++ b/src/ITensorMPS.jl @@ -3,6 +3,8 @@ 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 @reexport using ITensors.ITensorMPS: @OpName_str, @SiteType_str, diff --git a/test/runtests.jl b/test/runtests.jl index a820021..74a5f91 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -3,7 +3,7 @@ using ITensorMPS: ITensorMPS using ITensorTDVP: ITensorTDVP using ITensors: ITensors include("utils/TestITensorMPSExportedNames.jl") -using Test: @test, @testset +using Test: @test, @test_broken, @testset @testset "ITensorMPS.jl" begin @testset "exports" begin @test issetequal( @@ -17,8 +17,17 @@ using Test: @test, @testset ], ) end - @testset "aliases" begin + @testset "Aliases" begin @test ITensorMPS.alternating_update_dmrg === ITensorTDVP.dmrg end + @testset "Not exported" begin + @test ITensorMPS.sortmergeterms === ITensors.ITensorMPS.sortmergeterms + # Should we fix this in ITensors.jl by adding: + # ```julia + # using .ITensorMPS: sortmergeterms + # ``` + # ? + @test_broken ITensorMPS.sortmergeterms === ITensors.sortmergeterms + end end end