Skip to content

Commit

Permalink
pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoRenaud committed Nov 1, 2023
1 parent 4225ce0 commit e45a762
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
3 changes: 2 additions & 1 deletion vqls_prototype/matrix_decomposition/matrix_decomposition.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,8 @@ def load(self, filename) -> None:
filename (str): name of the file
"""
pauli_strings, coeffs = np.load(filename)
self.strings
self.strings = pauli_strings
self.coefficient = coeffs
self.circuits = []
for pauli_string in self.strings:
self.circuits.append(self._create_circuit(pauli_string))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import itertools
from dataclasses import dataclass
from collections import OrderedDict
from typing import Optional, Union, List, Tuple, TypeVar
from typing import Optional, Union, List, TypeVar
from qiskit.quantum_info import SparsePauliOp
import numpy as np
import numpy.typing as npt
Expand Down
4 changes: 2 additions & 2 deletions vqls_prototype/solver/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ class VQLSLog:
values: List
parameters: List

def update(
def update( # pylint: disable=unused-argument
self, count: int, cost: float, parameters: np.ndarray
) -> None: # pylint: disable=unused-argument
) -> None:
self.values.append(cost)
self.parameters.append(parameters)
2 changes: 0 additions & 2 deletions vqls_prototype/solver/qst_vqls.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
VariationalLinearSolverResult,
)

from ..matrix_decomposition.matrix_decomposition import MatrixDecomposition

from ..matrix_decomposition.optimized_matrix_decomposition import (
ContractedPauliDecomposition,
)
Expand Down

0 comments on commit e45a762

Please sign in to comment.