diff --git a/test/python/quantum_info/operators/symplectic/test_sparse_pauli_op.py b/test/python/quantum_info/operators/symplectic/test_sparse_pauli_op.py index e9c5d6741bd2..1b6453174660 100644 --- a/test/python/quantum_info/operators/symplectic/test_sparse_pauli_op.py +++ b/test/python/quantum_info/operators/symplectic/test_sparse_pauli_op.py @@ -601,7 +601,7 @@ def test_mul(self, num_qubits, value, param): if value == 0: np.testing.assert_array_equal(value_mat, target.astype(complex)) else: - np.testing.assert_allclose(value_mat, target) + np.testing.assert_allclose(value_mat, target, atol=1e-8) np.testing.assert_array_equal(op.paulis.phase, np.zeros(op.size)) target = spp_op.to_matrix() * value op = spp_op * value