Skip to content

Commit

Permalink
fix code style and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
TolisChal committed Aug 27, 2024
1 parent 36dd75c commit 6570373
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
from qiskit.quantum_info.operators.base_operator import BaseOperator

from qiskit_algorithms.utils.validation import validate_min
from .eigensolver import Eigensolver, EigensolverResult
from qiskit_optimization.exceptions import AlgorithmError
from .eigensolver import Eigensolver, EigensolverResult
from ..list_or_dict import ListOrDict

logger = logging.getLogger(__name__)
Expand Down
5 changes: 4 additions & 1 deletion qiskit_optimization/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@ class QiskitOptimizationError(QiskitError):

pass


class AlgorithmError(QiskitError):
"""For Algorithm specific errors."""

pass


class QiskitAlgorithmsWarning(UserWarning):
"""Base class for warnings raised by Qiskit Algorithms."""

Expand All @@ -37,7 +39,8 @@ def __str__(self):
"""Return the message."""
return repr(self.message)


class QiskitAlgorithmsOptimizersWarning(QiskitAlgorithmsWarning):
"""For Algorithm specific warnings."""

pass
pass

0 comments on commit 6570373

Please sign in to comment.