From b793eef9552f1651199f6aaf0bc531849e721d0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Designolle?= Date: Thu, 4 Jul 2024 17:50:50 +0200 Subject: [PATCH] Fix entropy test (name and precision) --- test/entropy.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/entropy.jl b/test/entropy.jl index f5218a0..6ae8bcd 100644 --- a/test/entropy.jl +++ b/test/entropy.jl @@ -48,7 +48,7 @@ @test conditional_entropy(pAB) ≈ conditional_entropy(ℯ, pAB) / log(R(2)) rhoAB = Diagonal(vec(pAB')) @test conditional_entropy(pAB) ≈ conditional_entropy(rhoAB, 2, [2, 3]) - @test conditional_entropy(phiplus(), 2, [2, 2]) == -1 + @test conditional_entropy(state_phiplus(), 2, [2, 2]) ≈ -1 ρ = random_state(Complex{R}, 6) @test conditional_entropy(ρ, 2, [2, 3]) ≈ conditional_entropy(ℯ, ρ, 2, [2, 3]) / log(R(2)) @test conditional_entropy(ρ, [1, 2], [2, 3]) == 0