Skip to content

Commit

Permalink
Add errors module. (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
RolandMacDoland authored Oct 2, 2023
1 parent 5469129 commit 9599fd5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
6 changes: 6 additions & 0 deletions qadence/errors/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from __future__ import annotations

from .errors import NotPauliBlockError, NotSupportedError, QadenceException

# Modules to be automatically added to the qadence namespace
__all__ = [] # type: ignore
13 changes: 13 additions & 0 deletions qadence/errors/errors.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from __future__ import annotations


class QadenceException(Exception):
pass


class NotSupportedError(QadenceException):
pass


class NotPauliBlockError(QadenceException):
pass

0 comments on commit 9599fd5

Please sign in to comment.