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

Function validate_measurementOutcomeIsValid

quest/src/core/validation.cpp:3693–3696  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3691 */
3692
3693void validate_measurementOutcomeIsValid(int outcome, const char* caller) {
3694
3695 assertThat(outcome == 0 || outcome == 1, report::ONE_QUBIT_MEASUREMENT_OUTCOME_INVALID, {{"${OUTCOME}", outcome}}, caller);
3696}
3697
3698void validate_measurementOutcomesAreValid(int* outcomes, int numOutcomes, const char* caller) {
3699

Callers 5

applyQubitProjectorFunction · 0.85
calcProbOfQubitOutcomeFunction · 0.85
leftapplyQubitProjectorFunction · 0.85
rightapplyQubitProjectorFunction · 0.85

Calls 1

assertThatFunction · 0.85

Tested by

no test coverage detected