diff --git a/pennylane_lightning/lightning_gpu/_measurements.py b/pennylane_lightning/lightning_gpu/_measurements.py index b2e73e9af..51a3f0fff 100644 --- a/pennylane_lightning/lightning_gpu/_measurements.py +++ b/pennylane_lightning/lightning_gpu/_measurements.py @@ -31,8 +31,8 @@ mpi_error = ex_mpi MPI_SUPPORT = False -except ImportError as ex: - warn(str(ex), UserWarning) +except ImportError as e: + warn(str(e), UserWarning) from typing import Any, List diff --git a/pennylane_lightning/lightning_gpu/lightning_gpu.py b/pennylane_lightning/lightning_gpu/lightning_gpu.py index d17af4c46..a0d5aa01a 100644 --- a/pennylane_lightning/lightning_gpu/lightning_gpu.py +++ b/pennylane_lightning/lightning_gpu/lightning_gpu.py @@ -436,6 +436,7 @@ def preprocess(self, execution_config: ExecutionConfig = DefaultExecutionConfig) _add_adjoint_transforms(program) return program, exec_config + # pylint: disable=unused-argument def execute( self, circuits: QuantumTape_or_Batch,