Skip to content

Commit c890f20

Browse files
committed
Only update ket vertex
1 parent 96350be commit c890f20

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/formnetworks/linearformnetwork.jl

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,11 @@ end
4545

4646
function update(
4747
lf::LinearFormNetwork,
48-
original_bra_state_vertex,
4948
original_ket_state_vertex,
50-
bra_state::ITensor,
5149
ket_state::ITensor,
5250
)
5351
lf = copy(lf)
5452
# TODO: Maybe add a check that it really does preserve the graph.
55-
setindex_preserve_graph!(
56-
tensornetwork(lf), bra_state, bra_vertex(blf, original_bra_state_vertex)
57-
)
5853
setindex_preserve_graph!(
5954
tensornetwork(lf), ket_state, ket_vertex(blf, original_ket_state_vertex)
6055
)

0 commit comments

Comments
 (0)