Skip to content

Commit

Permalink
Merge branch 'refactor_expect_simplified' of github.com:JoeyT1994/ITe…
Browse files Browse the repository at this point in the history
…nsorNetworks.jl into refactor_expect_simplified
  • Loading branch information
JoeyT1994 committed Apr 26, 2024
2 parents 3882939 + f61d8c3 commit 6667925
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_belief_propagation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ using Test: @test, @testset
rdm = array((rdm * combiner(inds(rdm; plev=0)...)) * combiner(inds(rdm; plev=1)...))
rdm /= tr(rdm)

eigs = eigvals(rdm)
eigs = Float64.(eigvals(rdm))
@test size(rdm) == (2^length(vs), 2^length(vs))
@test all(>=(0), real(eigs)) && all(==(0), imag(eigs))
@test minimum(eigs) >= -eps(typeof(minimum(eigs)))
end
end

0 comments on commit 6667925

Please sign in to comment.