Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sortmergeterms namespace #4

Merged
merged 1 commit into from
May 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.2"
version = "0.1.3"

[deps]
ITensorTDVP = "25707e16-a4db-4a07-99d9-4d67b7af0342"
Expand Down
2 changes: 2 additions & 0 deletions src/ITensorMPS.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
13 changes: 11 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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
Loading