We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b296277 commit 1c87d22Copy full SHA for 1c87d22
src/normalize.jl
@@ -40,7 +40,7 @@ function LinearAlgebra.normalize(
40
v_ket, v_bra = ket_vertex(norm_tn, v), bra_vertex(norm_tn, v)
41
pv = only(partitionvertices(cache![], [v_ket]))
42
vn = region_scalar(cache![], pv)
43
- state = (1.0 / sqrt(vn)) * tn[v]
+ state = tn[v] / sqrt(vn)
44
state_dag = copy(dag(state))
45
state_dag = replaceinds(
46
state_dag, inds(state_dag), dual_index_map(norm_tn).(inds(state_dag))
0 commit comments