Skip to content

Commit 1c87d22

Browse files
JoeyT1994mtfishman
andauthored
Update src/normalize.jl
Co-authored-by: Matt Fishman <[email protected]>
1 parent b296277 commit 1c87d22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/normalize.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function LinearAlgebra.normalize(
4040
v_ket, v_bra = ket_vertex(norm_tn, v), bra_vertex(norm_tn, v)
4141
pv = only(partitionvertices(cache![], [v_ket]))
4242
vn = region_scalar(cache![], pv)
43-
state = (1.0 / sqrt(vn)) * tn[v]
43+
state = tn[v] / sqrt(vn)
4444
state_dag = copy(dag(state))
4545
state_dag = replaceinds(
4646
state_dag, inds(state_dag), dual_index_map(norm_tn).(inds(state_dag))

0 commit comments

Comments
 (0)