Skip to content

Commit

Permalink
Merge pull request #401 from ITensor/uncombine_bug
Browse files Browse the repository at this point in the history
Fix uncombining combiner bug when combined Index is not first index
  • Loading branch information
mtfishman committed May 28, 2020
2 parents 87bc193 + abb1926 commit 373b2b8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "ITensors"
uuid = "9136182c-28ba-11e9-034c-db9fb085ebd5"
authors = ["mfishman <mfishman@caltech.edu>"]
version = "0.1.4"
version = "0.1.5"

[deps]
HDF5 = "f67ccb44-e63f-5c2f-98bd-6dc0ccc4ba2f"
Expand All @@ -17,7 +17,7 @@ TimerOutputs = "a759f4b9-e2f1-59dc-863e-4aeb61b1ea8f"
julia = "1.4"
HDF5 = "0.13.1"
KrylovKit = "0.4.2"
NDTensors = "0.1.3"
NDTensors = "0.1.5"
StaticArrays = "0.12.3"
TimerOutputs = "0.5.5"

Expand Down
10 changes: 10 additions & 0 deletions test/qnitensor.jl
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,16 @@ Random.seed!(1234)
@test TT T
end

@testset "Combiner bug #395" begin
i1 = Index([QN(0)=>1,QN(1)=>2],"i1")
i2 = Index([QN(0)=>1,QN(1)=>2],"i2")
A = randomITensor(QN(),i1,i2,dag(i1)', dag(i2)')
CL = combiner(i1,i2)
CR = combiner(dag(i1)',dag(i2)')
AC = A * CR * CL
@test AC * dag(CR) * dag(CL) A
end

@testset "Contract to scalar" begin
i = Index([QN(0)=>1,QN(1)=>1],"i")
A = randomITensor(QN(0),i,dag(i'))
Expand Down

2 comments on commit 373b2b8

@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/15539

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.5 -m "<description of version>" 373b2b8f7e1a9ff695584260abaefe1289c47e0b
git push origin v0.1.5

Please sign in to comment.