Skip to content

Commit

Permalink
ITensorMPS.set_terms and ITensorMPS.terms (#8)
Browse files Browse the repository at this point in the history
* ITensorMPS.set_terms and ITensorMPS.terms

* Bump to v0.1.7
  • Loading branch information
mtfishman authored May 11, 2024
1 parent c99a3ce commit 6e14d3e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
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

2 comments on commit 6e14d3e

@mtfishman
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/106602

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.7 -m "<description of version>" 6e14d3e35970d55cd6f1dfb52f90dd8a65c712c3
git push origin v0.1.7

Please sign in to comment.