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

Function validate_measurementOutcomesMatchTargets

quest/src/core/validation.cpp:3761–3769  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3759}
3760
3761void validate_measurementOutcomesMatchTargets(int numQubits, int numOutcomes, const char* caller) {
3762
3763 // invoked only by the C++ user interface
3764 tokenSubs vars = {
3765 {"${NUM_QUBITS}", numQubits},
3766 {"${NUM_OUTCOMES}", numOutcomes}};
3767
3768 assertThat(numQubits == numOutcomes, report::MEASUREMENT_OUTCOMES_MISMATCH_NUM_TARGETS, caller);
3769}
3770
3771
3772

Calls 1

assertThatFunction · 0.85

Tested by

no test coverage detected