• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

qiskit-community / qiskit-algorithms / 15778287374

20 Jun 2025 11:50AM CUT coverage: 89.98% (-0.5%) from 90.448%
15778287374

Pull #197

github

web-flow
Merge 0fdef580b into bc071ca43
Pull Request #197: Added V2 and ISA support

558 of 609 new or added lines in 51 files covered. (91.63%)

11 existing lines in 3 files now uncovered.

6439 of 7156 relevant lines covered (89.98%)

0.9 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

72.73
/qiskit_algorithms/exceptions.py
1
# This code is part of a Qiskit project.
2
#
3
# (C) Copyright IBM 2017, 2024.
4
#
5
# This code is licensed under the Apache License, Version 2.0. You may
6
# obtain a copy of this license in the LICENSE.txt file in the root directory
7
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
8
#
9
# Any modifications or derivative works of this code must retain this
10
# copyright notice, and modified files need to carry a notice indicating
11
# that they have been altered from the originals.
12

13
"""Exception and warnings for errors raised by Algorithms module."""
14

15
from qiskit.exceptions import QiskitError
1✔
16

17

18
class AlgorithmError(QiskitError):
1✔
19
    """For Algorithm specific errors."""
20

21
    pass
1✔
22

23

24
class QiskitAlgorithmsWarning(UserWarning):
1✔
25
    """Base class for warnings raised by Qiskit Algorithms."""
26

27
    def __init__(self, *message):
1✔
28
        """Set the error message."""
29
        super().__init__(" ".join(message))
×
30
        self.message = " ".join(message)
×
31

32
    def __str__(self):
1✔
33
        """Return the message."""
34
        return repr(self.message)
×
35

36

37
class QiskitAlgorithmsOptimizersWarning(QiskitAlgorithmsWarning):
1✔
38
    """For Algorithm specific warnings."""
39

40
    pass
1✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc