Skip to content

Commit

Permalink
Update src/caches/beliefpropagationcache.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 25, 2024
1 parent 8ad4493 commit 173e19b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/caches/beliefpropagationcache.jl
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ end

function message_diff(message_a::Vector{ITensor}, message_b::Vector{ITensor})
lhs, rhs = contract(message_a), contract(message_b)
f = abs(dot(lhs / norm(lhs), rhs / norm(rhs)))^2
f = abs2(dot(lhs / norm(lhs), rhs / norm(rhs)))
return 1 - f
end

Expand Down

0 comments on commit 173e19b

Please sign in to comment.