From 4771714780697f9367a626f6857a778b6862bd1c Mon Sep 17 00:00:00 2001 From: a-matsuo Date: Wed, 24 Apr 2024 15:37:56 +0900 Subject: [PATCH] fix style --- qopt_best_practices/cost_function/cost_utils.py | 2 +- qopt_best_practices/utils/__init__.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/qopt_best_practices/cost_function/cost_utils.py b/qopt_best_practices/cost_function/cost_utils.py index 9d7656c..ac4bb96 100644 --- a/qopt_best_practices/cost_function/cost_utils.py +++ b/qopt_best_practices/cost_function/cost_utils.py @@ -1,4 +1,5 @@ """QAOA Cost function utils""" + from collections.abc import Callable, Iterable import numpy as np @@ -77,4 +78,3 @@ def cvar_aggregation(measurements: Iterable[tuple[float, float]]) -> float: return cvar / alpha return cvar_aggregation - diff --git a/qopt_best_practices/utils/__init__.py b/qopt_best_practices/utils/__init__.py index 7a87e00..2c092a7 100644 --- a/qopt_best_practices/utils/__init__.py +++ b/qopt_best_practices/utils/__init__.py @@ -1,6 +1,5 @@ """Utils""" - from .graph_utils import build_max_cut_graph, build_max_cut_paulis __all__ = ["build_max_cut_graph", "build_max_cut_paulis"]