Skip to content

Commit 15b9c9d

Browse files
committed
Bug fix
1 parent 77b7bf1 commit 15b9c9d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/normalize.jl

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,8 @@ function LinearAlgebra.normalize(
6565
end
6666

6767
vs = collect(vertices(tn))
68-
verts_to_rescale = vcat(
69-
[ket_vertex(norm_tn, v) for v in vs], [bra_vertex(norm_tn, v) for v in vs]
70-
)
71-
norm_tn = rescale(
72-
alg, norm_tn; verts_to_rescale, cache!, update_cache, cache_update_kwargs
73-
)
68+
verts = vcat([ket_vertex(norm_tn, v) for v in vs], [bra_vertex(norm_tn, v) for v in vs])
69+
norm_tn = rescale(alg, norm_tn; verts, cache!, update_cache, cache_update_kwargs)
7470

7571
return ket_network(norm_tn)
7672
end

0 commit comments

Comments
 (0)