-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start reexporting ITensorTDVP and ITensors.ITensorMPS
- Loading branch information
Showing
3 changed files
with
29 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |