| 3706 | } |
| 3707 | |
| 3708 | void 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 | |
| 3718 | void validate_measurementOutcomesProbNotZero(int* outcomes, int numQubits, qreal prob, const char* caller) { |
| 3719 |
no test coverage detected