From d379349bf28c2e0e52c175389b754e8848b840d4 Mon Sep 17 00:00:00 2001 From: araujoms Date: Thu, 26 Sep 2024 14:55:35 +0200 Subject: [PATCH] julia bug has been fixed --- src/basic.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basic.jl b/src/basic.jl index bf40ba6..136f5c1 100644 --- a/src/basic.jl +++ b/src/basic.jl @@ -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