Skip to content

Commit

Permalink
ITensorMPS.set_terms and ITensorMPS.terms
Browse files Browse the repository at this point in the history
  • Loading branch information
mtfishman committed May 11, 2024
1 parent c99a3ce commit 38b11c0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
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, AbstractMPS, 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

0 comments on commit 38b11c0

Please sign in to comment.