Skip to content

Commit

Permalink
fix pylint complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
LuisAlfredoNu committed Oct 1, 2024
1 parent a72cba8 commit dd315d4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pennylane_lightning/core/_state_vector_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def _state_dtype(self):
Returns: the state vector class
"""

def reset_state(self, sync: Optional[bool] = None):
def reset_state(self):
"""Reset the device's state"""
# init the state vector to |00..0>
self._qubit_state.resetStateVector()
Expand Down
4 changes: 2 additions & 2 deletions pennylane_lightning/lightning_gpu/_measurements.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
mpi_error = ex_mpi
MPI_SUPPORT = False

Check warning on line 32 in pennylane_lightning/lightning_gpu/_measurements.py

View check run for this annotation

Codecov / codecov/patch

pennylane_lightning/lightning_gpu/_measurements.py#L28-L32

Added lines #L28 - L32 were not covered by tests

except ImportError as ex:
warn(str(ex), UserWarning)
except ImportError as error_import:
warn(str(error_import), UserWarning)

from typing import Any, List

Expand Down
5 changes: 2 additions & 3 deletions pennylane_lightning/lightning_gpu/lightning_gpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@
from ctypes.util import find_library
from dataclasses import replace
from importlib import util as imp_util
from numbers import Number
from pathlib import Path
from typing import List, Optional, Tuple, Union
from typing import List, Optional, Union
from warnings import warn

import numpy as np
Expand All @@ -43,7 +42,7 @@
from pennylane.measurements import MidMeasureMP
from pennylane.operation import DecompositionUndefinedError, Operator, Tensor
from pennylane.ops import Prod, SProd, Sum
from pennylane.tape import QuantumScript, QuantumTape
from pennylane.tape import QuantumScript
from pennylane.transforms.core import TransformProgram
from pennylane.typing import Result

Expand Down

0 comments on commit dd315d4

Please sign in to comment.