Skip to content

Commit 89a1c91

Browse files
committed
Get QNs working for the new FormConstructors
1 parent 30b5c34 commit 89a1c91

File tree

5 files changed

+3
-133
lines changed

5 files changed

+3
-133
lines changed

src/ITensorNetworks.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ include("formnetworks/abstractformnetwork.jl")
3131
include("formnetworks/bilinearformnetwork.jl")
3232
include("formnetworks/linearformnetwork.jl")
3333
include("formnetworks/quadraticformnetwork.jl")
34-
include("contraction_tree_to_graph.jl")
3534
include("gauging.jl")
3635
include("utils.jl")
3736
include("update_observer.jl")

src/contraction_tree_to_graph.jl

Lines changed: 0 additions & 82 deletions
This file was deleted.

src/formnetworks/bilinearformnetwork.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function BilinearFormNetwork(
6565
operator_inds = union_all_inds(s, s_mapped)
6666
constructor_f =
6767
v -> inds -> if !isempty(inds)
68-
reduce(*, [delta(s, sm) for (s, sm) in zip(s[v], s_mapped[v])])
68+
reduce(*, [delta(dag(s), sm) for (s, sm) in zip(s[v], s_mapped[v])])
6969
else
7070
ITensor(one(Bool))
7171
end

test/test_contraction_sequence_to_graph.jl

Lines changed: 0 additions & 48 deletions
This file was deleted.

test/test_expect.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,11 @@ using Test: @test, @testset
4040
sz_exact = expect(ψ, "Sz"; alg="exact")
4141
@test sz_bp sz_exact
4242

43-
#Test with QNS, product state so should be immediately exact
43+
#Test with Quantum Numbers, product state so BP should be exact
4444
L, χ = 2, 2
4545
g = named_grid((L, L))
4646
s = siteinds("S=1/2", g; conserve_qns=true)
47+
4748
ψ = ITensorNetwork(v -> isodd(sum(v)) ? "" : "", s)
4849

4950
sz_bp = expect(ψ, "Sz"; alg="bp")

0 commit comments

Comments
 (0)