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

Function validate_measurementOutcomeProbNotZero

quest/src/core/validation.cpp:3708–3716  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3706}
3707
3708void validate_measurementOutcomeProbNotZero(int outcome, qreal prob, const char* caller) {
3709
3710 if (isNumericalValidationDisabled())
3711 return;
3712
3713 /// @todo report 'prob' once validation reporting can handle floats
3714
3715 assertThat(prob >= global_validationEpsilon, report::ONE_QUBIT_MEASUREMENT_OUTCOME_IMPOSSIBLY_UNLIKELY, {{"${OUTCOME}", outcome}}, caller);
3716}
3717
3718void validate_measurementOutcomesProbNotZero(int* outcomes, int numQubits, qreal prob, const char* caller) {
3719

Callers 1

Calls 2

assertThatFunction · 0.85

Tested by

no test coverage detected