From 09e42e72d3305dd2a4ae1e60eb977ca506950e0b Mon Sep 17 00:00:00 2001 From: HGSilveri Date: Tue, 19 Nov 2024 13:10:03 +0100 Subject: [PATCH] Import sorting --- pulser-core/pulser/backend/config.py | 2 +- pulser-core/pulser/backend/observable.py | 4 ++-- pulser-core/pulser/backend/operator.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pulser-core/pulser/backend/config.py b/pulser-core/pulser/backend/config.py index fbfd6d57..dfc3a170 100644 --- a/pulser-core/pulser/backend/config.py +++ b/pulser-core/pulser/backend/config.py @@ -32,8 +32,8 @@ from numpy.typing import ArrayLike import pulser.math as pm -from pulser.backend.state import State from pulser.backend.observable import Observable +from pulser.backend.state import State from pulser.noise_model import NoiseModel EVAL_TIMES_LITERAL = Literal["Full", "Minimal", "Final"] diff --git a/pulser-core/pulser/backend/observable.py b/pulser-core/pulser/backend/observable.py index cb264df1..2d6ce688 100644 --- a/pulser-core/pulser/backend/observable.py +++ b/pulser-core/pulser/backend/observable.py @@ -16,11 +16,11 @@ from abc import ABC, abstractmethod from collections.abc import Sequence -from typing import Any, TYPE_CHECKING +from typing import TYPE_CHECKING, Any -from pulser.backend.state import State from pulser.backend.operator import Operator from pulser.backend.results import Results +from pulser.backend.state import State if TYPE_CHECKING: from pulser.backend.config import EmulationConfig diff --git a/pulser-core/pulser/backend/operator.py b/pulser-core/pulser/backend/operator.py index 7c48ff81..69101e73 100644 --- a/pulser-core/pulser/backend/operator.py +++ b/pulser-core/pulser/backend/operator.py @@ -18,7 +18,7 @@ from collections.abc import Collection, Mapping, Sequence from typing import Generic, Type, TypeVar -from pulser.backend.state import State, Eigenstate +from pulser.backend.state import Eigenstate, State ArgScalarType = TypeVar("ArgScalarType") ReturnScalarType = TypeVar("ReturnScalarType")