From 53162e484e5c7f580940c585c9debdefc745107b Mon Sep 17 00:00:00 2001 From: PabloAndresCQ Date: Tue, 4 Jun 2024 11:56:13 +0100 Subject: [PATCH] Removing type ignores from imports --- .../general_state/tensor_network_state.py | 4 ++-- tests/test_general_state_operator_expval.py | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/pytket/extensions/cutensornet/general_state/tensor_network_state.py b/pytket/extensions/cutensornet/general_state/tensor_network_state.py index f395bd7e..15ae27b7 100644 --- a/pytket/extensions/cutensornet/general_state/tensor_network_state.py +++ b/pytket/extensions/cutensornet/general_state/tensor_network_state.py @@ -10,10 +10,10 @@ import numpy as np from sympy import Expr # type: ignore from numpy.typing import NDArray -from pytket.circuit import Circuit # type: ignore +from pytket.circuit import Circuit from pytket.extensions.cutensornet.general import set_logger from pytket.extensions.cutensornet.structured_state import CuTensorNetHandle -from pytket.utils.operators import QubitPauliOperator # type: ignore +from pytket.utils.operators import QubitPauliOperator try: import cuquantum as cq # type: ignore diff --git a/tests/test_general_state_operator_expval.py b/tests/test_general_state_operator_expval.py index ce288cbd..9c320b48 100644 --- a/tests/test_general_state_operator_expval.py +++ b/tests/test_general_state_operator_expval.py @@ -2,13 +2,13 @@ import random import numpy as np import pytest -from pytket.circuit import ToffoliBox, Qubit # type: ignore -from pytket.passes import DecomposeBoxes, CnXPairwiseDecomposition # type: ignore -from pytket.transform import Transform # type: ignore -from pytket.pauli import QubitPauliString, Pauli # type: ignore -from pytket.utils.operators import QubitPauliOperator # type: ignore -from pytket.circuit import Circuit # type: ignore -from pytket.extensions.cutensornet.general_state import ( # type: ignore +from pytket.circuit import ToffoliBox, Qubit +from pytket.passes import DecomposeBoxes, CnXPairwiseDecomposition +from pytket.transform import Transform +from pytket.pauli import QubitPauliString, Pauli +from pytket.utils.operators import QubitPauliOperator +from pytket.circuit import Circuit +from pytket.extensions.cutensornet.general_state import ( GeneralState, GeneralOperator, GeneralExpectationValue,