![]() |
The Quantum Exact Simulation Toolkit v4.2.0
|
Functions to control QuEST's user-input validation. More...
Functions | |
| qreal | getValidationEpsilon () |
| void | setInputErrorHandler (void(*callback)(const char *func, const char *msg)) |
| void | setValidationEpsilon (qreal eps) |
| void | setValidationEpsilonToDefault () |
| void | setValidationOff () |
| void | setValidationOn () |
Functions to control QuEST's user-input validation.
These can be used to adjust the precision with which properties like unitarity are checked/enforced, or otherwise disable all input validation (e.g. is the given qubit index valid?). Note passing erroneous input while validation is disabled can result in runtime errors like segmentation faults.
| qreal getValidationEpsilon | ( | ) |
| void setInputErrorHandler | ( | void(* | callback )(const char *func, const char *msg) | ) |
| void setValidationEpsilon | ( | qreal | eps | ) |
Definition at line 100 of file debug.cpp.
Referenced by TEST_CASE(), TEST_CASE(), and TEST_CASE().
| void setValidationEpsilonToDefault | ( | ) |
Definition at line 108 of file debug.cpp.
Referenced by TEST_CASE(), TEST_CASE(), and TEST_CASE().
| void setValidationOff | ( | ) |
Definition at line 86 of file debug.cpp.
Referenced by TEST_CASE().
| void setValidationOn | ( | ) |
Definition at line 80 of file debug.cpp.
Referenced by TEST_CASE().