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

ITensorMPS.set_terms and ITensorMPS.terms #8

Merged
merged 3 commits into from
May 11, 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 <mfishman@flatironinstitute.org>", "Miles Stoudenmire <mstoudenmire@flatironinstitute.org>"]
version = "0.1.6"
version = "0.1.7"

[deps]
ITensorTDVP = "25707e16-a4db-4a07-99d9-4d67b7af0342"
Expand Down
2 changes: 1 addition & 1 deletion src/ITensorMPS.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ 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!, sortmergeterms
AbstractProjMPO, AbstractSum, ProjMPS, makeL!, makeR!, set_terms, sortmergeterms, terms
@reexport using ITensors.ITensorMPS:
@OpName_str,
@SiteType_str,
Expand Down
14 changes: 12 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,18 @@ using Test: @test, @test_broken, @testset
# ```
# ?
@test_broken ITensorMPS.sortmergeterms === ITensors.sortmergeterms
@test ITensorMPS.AbstractSum === ITensors.ITensorMPS.AbstractSum
@test ITensorMPS.ProjMPS === ITensors.ITensorMPS.ProjMPS
for f in [
:AbstractProjMPO,
:AbstractMPS,
:ProjMPS,
:makeL!,
:makeR!,
:set_terms,
:sortmergeterms,
:terms,
]
@test getfield(ITensorMPS, f) === getfield(ITensors.ITensorMPS, f)
end
end
end
end
Loading