qiskit/releasenotes/notes/1.0/lazy-testers-warn-on-import...

13 lines
761 B
YAML

---
features_misc:
- |
Added a new warning base class, :exc:`.QiskitWarning`. While Qiskit will continue to use
built-in Python warnings (such as :exc:`DeprecationWarning`) when those are most appropriate,
for cases that are more specific to Qiskit, the warnings will be subclasses of :exc:`.QiskitWarning`.
- |
The optional-functionality testers (:mod:`qiskit.utils.optionals`) will now distinguish an
optional dependency that was completely not found (a normal situation) with one that was found,
but triggered errors during its import. In the latter case, they will now issue an
:exc:`.OptionalDependencyImportWarning` telling you what happened, since it might indicate a
failed installation or an incompatible version.