From 1c87d2238eb436383795f6f329c11e4b0da24428 Mon Sep 17 00:00:00 2001 From: Joseph Tindall <51231103+JoeyT1994@users.noreply.github.com> Date: Sun, 16 Jun 2024 19:14:54 -0400 Subject: [PATCH] Update src/normalize.jl Co-authored-by: Matt Fishman --- src/normalize.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/normalize.jl b/src/normalize.jl index 805f5c1a..1bace19c 100644 --- a/src/normalize.jl +++ b/src/normalize.jl @@ -40,7 +40,7 @@ function LinearAlgebra.normalize( v_ket, v_bra = ket_vertex(norm_tn, v), bra_vertex(norm_tn, v) pv = only(partitionvertices(cache![], [v_ket])) vn = region_scalar(cache![], pv) - state = (1.0 / sqrt(vn)) * tn[v] + state = tn[v] / sqrt(vn) state_dag = copy(dag(state)) state_dag = replaceinds( state_dag, inds(state_dag), dual_index_map(norm_tn).(inds(state_dag))