Skip to content

Commit

Permalink
Start reexporting ITensorTDVP and ITensors.ITensorMPS
Browse files Browse the repository at this point in the history
  • Loading branch information
mtfishman committed May 6, 2024
1 parent b3c58f8 commit 50d4da7
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 7 deletions.
9 changes: 6 additions & 3 deletions src/ITensorMPS.jl
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[deps]
ITensorMPS = "0d1a4710-d33b-49a5-8f18-73bdf49b47e2"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
24 changes: 20 additions & 4 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 50d4da7

Please sign in to comment.