MCPcopy Create free account
hub / github.com/QuEST-Kit/QuEST / validate_rotationAxisNotZeroVector

Function validate_rotationAxisNotZeroVector

quest/src/core/validation.cpp:3777–3785  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3775 */
3776
3777void validate_rotationAxisNotZeroVector(qreal x, qreal y, qreal z, const char* caller) {
3778
3779 if (isNumericalValidationDisabled())
3780 return;
3781
3782 qreal norm = std::sqrt(std::pow(x,2) + std::pow(y,2) + std::pow(z,2));
3783
3784 assertThat(norm > global_validationEpsilon, report::ROTATION_AXIS_VECTOR_IS_ZERO, caller);
3785}
3786
3787void validate_mixedAmpsFitInNode(Qureg qureg, int numTargets, const char* caller) {
3788

Calls 2

assertThatFunction · 0.85

Tested by

no test coverage detected