autoqasm.operators.exceptions module

Operators for exception handling.

autoqasm.operators.exceptions.assert_stmt(test: bool, message: Callable) None[source]

An assertion statement.

Parameters:
  • test (bool) – The condition on which to assert.

  • message (Callable) – A function which returns the message to be used if the assertion fails.