-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace raising QiskitError by AlgorithmError (#41)
- Loading branch information
1 parent
1863c6f
commit 9964449
Showing
5 changed files
with
24 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
upgrade: | ||
- | | ||
A couple of algorithms here, :class:`.PVQD`, :class:`.AdaptVQE` and optimizer | ||
:class:`.SNOBFIT`, directly raised a :class:`~qiskit.exceptions.QiskitError`. | ||
These have been changed to raise an :class:`.AlgorithmError` instead. Algorithms | ||
have now been moved out of ``Qiskit`` and this better distinguishes the exception to the | ||
algorithms when raised. Now ``AlgorithmError`` was already raised elsewhere by the algorithms | ||
here so this makes things more consistent too. Note, that as ``AlgorithmError`` | ||
internally extends ``QiskitError``, any code that might have caught that specifically | ||
will continue to work. However we do recommend you update your code accordingly for | ||
``AlgorithmError``. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters