Draft: Add validity checks for quaternions at the API boundary
Reason why this change is needed
The codec does not detect when invalid (non-unit) quaternions are passed to the API. Execution simply continues, leading to broken outputs.
Description of the change
All API functions that take a quaternion as an input now check its validity.
Affected operating points
- Expected to be bit-exact for valid inputs