Skip to content

Commit

Permalink
Update src/normalize.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Matt Fishman <[email protected]>
  • Loading branch information
JoeyT1994 and mtfishman authored Jun 16, 2024
1 parent b296277 commit 1c87d22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/normalize.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 1c87d22

Please sign in to comment.