From 2495854db024ec9f80f66257431717cfe866b493 Mon Sep 17 00:00:00 2001 From: Renato Mello Date: Tue, 15 Oct 2024 13:37:46 +0400 Subject: [PATCH] remove print and comment lines --- src/qibo/quantum_info/metrics.py | 2 +- tests/test_quantum_info_metrics.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/qibo/quantum_info/metrics.py b/src/qibo/quantum_info/metrics.py index 6a4cd9b970..451deb1b38 100644 --- a/src/qibo/quantum_info/metrics.py +++ b/src/qibo/quantum_info/metrics.py @@ -906,7 +906,7 @@ def quantum_fisher_information_matrix( copied.set_parameters(parameters) state = backend.execute_circuit(copied, initial_state=initial_state).state() - print(state.dtype, jacobian.dtype) + overlaps = jacobian.T @ state qfim = jacobian.T @ jacobian diff --git a/tests/test_quantum_info_metrics.py b/tests/test_quantum_info_metrics.py index 3187f1ea6f..6a4f14e143 100644 --- a/tests/test_quantum_info_metrics.py +++ b/tests/test_quantum_info_metrics.py @@ -425,6 +425,5 @@ def test_qfim(backend, nqubits, return_complex, params_flag): qfim = quantum_fisher_information_matrix( circuit, params, return_complex=return_complex, backend=backend ) - # qfim = backend.cast(qfim, dtype=np.float64) backend.assert_allclose(qfim, target, atol=1e-6)