From 9a9c9e544044489f8d9c8d9ee956fd2b39726ae7 Mon Sep 17 00:00:00 2001 From: Renato Mello Date: Thu, 3 Oct 2024 07:07:36 +0000 Subject: [PATCH] Update tests/test_quantum_info_entropies.py Co-authored-by: BrunoLiegiBastonLiegi <45011234+BrunoLiegiBastonLiegi@users.noreply.github.com> --- tests/test_quantum_info_entropies.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_quantum_info_entropies.py b/tests/test_quantum_info_entropies.py index f844146c7e..1f19fdb7ed 100644 --- a/tests/test_quantum_info_entropies.py +++ b/tests/test_quantum_info_entropies.py @@ -393,8 +393,8 @@ def test_classical_relative_tsallis_entropy(backend, alpha, base, kind): prob_dist_q = np.random.rand(10) prob_dist_q /= np.sum(prob_dist_q) - prob_dist_p = backend.np.real(backend.cast(prob_dist_p)) - prob_dist_q = backend.np.real(backend.cast(prob_dist_q)) + prob_dist_p = backend.cast(prob_dist_p, dtype=np.float64) + prob_dist_q = backend.cast(prob_dist_q, dtype=np.float64) if alpha == 1.0: target = classical_relative_entropy(prob_dist_p, prob_dist_q, base, backend)