Skip to content

Commit

Permalink
fix for julia 1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
araujoms committed Aug 26, 2024
1 parent 751b0ff commit 4ef8410
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)
!(sum(E) LA.I(d)) && return false
!(Matrix(sum(E)) LA.I(d)) && return false #workaround for julia bug #55590
for i = 1:length(E)
minimum(LA.eigvals(E[i])) < -_rtol(T) && return false
end
Expand Down

0 comments on commit 4ef8410

Please sign in to comment.