From 3589c1128a73bb6efb5f70178e9c8fdcf8199d0b Mon Sep 17 00:00:00 2001 From: Fionn Malone Date: Wed, 10 Apr 2024 22:34:50 +0000 Subject: [PATCH] Fix lint / format. --- dev_tools/autogenerate-bloqs-notebooks-v2.py | 2 +- qualtran/bloqs/arithmetic/multiplication.py | 1 - qualtran/bloqs/arithmetic/multiplication_test.py | 2 +- qualtran/bloqs/util_bloqs.py | 1 - 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/dev_tools/autogenerate-bloqs-notebooks-v2.py b/dev_tools/autogenerate-bloqs-notebooks-v2.py index 4d6e17777..aa7f5881e 100644 --- a/dev_tools/autogenerate-bloqs-notebooks-v2.py +++ b/dev_tools/autogenerate-bloqs-notebooks-v2.py @@ -48,7 +48,6 @@ from typing import Iterable, List -import qualtran.bloqs.rotations.phase_gradient from qualtran_dev_tools.bloq_finder import get_bloqdocspecs from qualtran_dev_tools.git_tools import get_git_root from qualtran_dev_tools.jupyter_autogen import NotebookSpecV2, render_notebook @@ -83,6 +82,7 @@ import qualtran.bloqs.qsp.generalized_qsp import qualtran.bloqs.qubitization_walk_operator import qualtran.bloqs.reflection +import qualtran.bloqs.rotations.phase_gradient import qualtran.bloqs.rotations.phasing_via_cost_function import qualtran.bloqs.rotations.quantum_variable_rotation import qualtran.bloqs.state_preparation.prepare_uniform_superposition diff --git a/qualtran/bloqs/arithmetic/multiplication.py b/qualtran/bloqs/arithmetic/multiplication.py index 1dc58d6b9..13cc07ac9 100644 --- a/qualtran/bloqs/arithmetic/multiplication.py +++ b/qualtran/bloqs/arithmetic/multiplication.py @@ -18,7 +18,6 @@ import numpy as np from attrs import frozen from fxpmath import Fxp -from matplotlib.pylab import f from qualtran import ( Bloq, diff --git a/qualtran/bloqs/arithmetic/multiplication_test.py b/qualtran/bloqs/arithmetic/multiplication_test.py index db0e1e83b..b1517831d 100644 --- a/qualtran/bloqs/arithmetic/multiplication_test.py +++ b/qualtran/bloqs/arithmetic/multiplication_test.py @@ -12,10 +12,10 @@ # See the License for the specific language governing permissions and # limitations under the License. import cirq +import numpy as np import pytest from fxpmath import Fxp -import numpy as np from qualtran import BloqBuilder, QFxp, QUInt, Register from qualtran._infra.data_types import val_to_fxp from qualtran.bloqs.arithmetic.multiplication import ( diff --git a/qualtran/bloqs/util_bloqs.py b/qualtran/bloqs/util_bloqs.py index 96cbc09bb..ee10278c3 100644 --- a/qualtran/bloqs/util_bloqs.py +++ b/qualtran/bloqs/util_bloqs.py @@ -38,7 +38,6 @@ from qualtran.cirq_interop.t_complexity_protocol import TComplexity from qualtran.drawing import directional_text_box, WireSymbol from qualtran.resource_counting.symbolic_counting_utils import SymbolicInt -from qualtran.simulation.classical_sim import bits_to_ints, ints_to_bits if TYPE_CHECKING: from numpy.typing import NDArray