| 3716 | } |
| 3717 | |
| 3718 | void validate_measurementOutcomesProbNotZero(int* outcomes, int numQubits, qreal prob, const char* caller) { |
| 3719 | |
| 3720 | if (isNumericalValidationDisabled()) |
| 3721 | return; |
| 3722 | |
| 3723 | /// @todo report 'prob' and 'outcomes' (as binary sequence) once validation reporting can handle floats |
| 3724 | qindex outcomeValue = getIntegerFromBits(outcomes, numQubits); |
| 3725 | |
| 3726 | assertThat(prob >= global_validationEpsilon, report::MANY_QUBIT_MEASUREMENT_OUTCOME_IMPOSSIBLY_UNLIKELY, {{"${OUTCOME_VALUE}", outcomeValue}}, caller); |
| 3727 | } |
| 3728 | |
| 3729 | void validate_measurementOutcomesFitInGpuMem(Qureg qureg, int numQubits, const char* caller) { |
| 3730 |
no test coverage detected