Skip to content

Commit

Permalink
julia bug has been fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
araujoms committed Sep 26, 2024
1 parent a1a0ff7 commit d379349
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/basic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Checks if the measurement defined by A is valid (hermitian, semi-definite positi
function test_povm(E::Vector{<:AbstractMatrix{T}}) where {T<:Number}
!all(LA.ishermitian.(E)) && return false
d = size(E[1], 1)
!(Matrix(sum(E)) LA.I(d)) && return false #workaround for julia bug #55590
!(sum(E) LA.I(d)) && return false
for i = 1:length(E)
minimum(LA.eigvals(E[i])) < -_rtol(T) && return false
end
Expand Down

0 comments on commit d379349

Please sign in to comment.