Skip to content

Commit e71da87

Browse files
authored
Fix FormNetwork constructor bug (#238)
1 parent 43f3272 commit e71da87

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ITensorNetworks"
22
uuid = "2919e153-833c-4bdc-8836-1ea460a35fc7"
33
authors = ["Matthew Fishman <[email protected]>, Joseph Tindall <[email protected]> and contributors"]
4-
version = "0.13.9"
4+
version = "0.13.10"
55

66
[deps]
77
AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c"

src/formnetworks/bilinearformnetwork.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using ITensors: ITensor, Op, prime, sim
2+
using ITensors.NDTensors: denseblocks
23

34
default_dual_site_index_map = prime
45
default_dual_link_index_map = sim
@@ -54,7 +55,7 @@ end
5455

5556
function itensor_identity_map(i_pairs::Vector)
5657
return prod(i_pairs; init=ITensor(one(Bool))) do i_pair
57-
return delta(Bool, dag(first(i_pair)), last(i_pair))
58+
return denseblocks(delta(last(i_pair), dag(first(i_pair))))
5859
end
5960
end
6061

0 commit comments

Comments
 (0)