Skip to content

Commit

Permalink
Define ITensorMPS.Experimental.dmrg
Browse files Browse the repository at this point in the history
  • Loading branch information
mtfishman committed May 14, 2024
1 parent 8e6335a commit 00b9a9a
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "ITensorMPS"
uuid = "0d1a4710-d33b-49a5-8f18-73bdf49b47e2"
authors = ["Matthew Fishman <[email protected]>", "Miles Stoudenmire <[email protected]>"]
version = "0.1.7"
version = "0.1.8"

[deps]
ITensorTDVP = "25707e16-a4db-4a07-99d9-4d67b7af0342"
Expand Down
3 changes: 3 additions & 0 deletions src/Deprecated.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module Deprecated
using ITensors.ITensorMPS: dmrg
end
3 changes: 3 additions & 0 deletions src/Experimental.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module Experimental
using ITensorTDVP: dmrg
end
8 changes: 5 additions & 3 deletions src/ITensorMPS.jl
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
module ITensorMPS
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 this makes these types and functions accessible
# as `ITensorMPS.x`.
using ITensors.ITensorMPS:
AbstractProjMPO, AbstractSum, ProjMPS, makeL!, makeR!, set_terms, sortmergeterms, terms
include("Experimental.jl")
using .Experimental: Experimental
include("Deprecated.jl")
using .Deprecated: Deprecated, dmrg
export dmrg
@reexport using ITensors.ITensorMPS:
@OpName_str,
@SiteType_str,
Expand Down Expand Up @@ -63,7 +66,6 @@ using ITensors.ITensorMPS:
cutoff,
cutoff!, # deprecate
disk,
dmrg,
dot, # remove export
eigs, # deprecate
energies, # deprecate
Expand Down
3 changes: 2 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ using Test: @test, @test_broken, @testset
)
end
@testset "Aliases" begin
@test ITensorMPS.alternating_update_dmrg === ITensorTDVP.dmrg
@test ITensorMPS.Experimental.dmrg === ITensorTDVP.dmrg
@test ITensorMPS.dmrg === ITensors.ITensorMPS.dmrg
end
@testset "Not exported" begin
@test ITensorMPS.sortmergeterms === ITensors.ITensorMPS.sortmergeterms
Expand Down

0 comments on commit 00b9a9a

Please sign in to comment.