From 4a1f466da196799200ba8ac7204828f3392a4c0f Mon Sep 17 00:00:00 2001 From: Renato Mello Date: Thu, 31 Oct 2024 11:20:48 +0400 Subject: [PATCH] change import --- tests/test_quantum_info_metrics.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_quantum_info_metrics.py b/tests/test_quantum_info_metrics.py index 4e5b9ea849..d6ab5afe46 100644 --- a/tests/test_quantum_info_metrics.py +++ b/tests/test_quantum_info_metrics.py @@ -3,7 +3,7 @@ from qibo import Circuit, gates from qibo.config import PRECISION_TOL -from qibo.models.encodings import _generate_rbs_angles, unary_encoder +from qibo.models.encodings import UnaryEncoder, unary_encoder from qibo.quantum_info.metrics import ( average_gate_fidelity, bures_angle, @@ -399,7 +399,7 @@ def test_qfim(backend, nqubits, return_complex, params_flag): data = np.random.rand(nqubits) data = backend.cast(data, dtype=data.dtype) - params = _generate_rbs_angles(data, nqubits, "diagonal") + params = UnaryEncoder._generate_rbs_angles(data, nqubits, "diagonal") params = backend.cast(params, dtype=np.float64) target = [1]