qat.core.assertion.assert_qpu
- qat.core.assertion.assert_qpu(assertion: bool, message: str)
Checks an assertion and raise a QPUException if the assertion is not True
- Parameters
assertion (bool) – raise an exception if False
message (str) – error message