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

Function validate_krausMapMatchesTargets

quest/src/core/validation.cpp:3103–3107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3101}
3102
3103void validate_krausMapMatchesTargets(KrausMap map, int numTargets, const char* caller) {
3104
3105 tokenSubs vars = {{"${KRAUS_QUBITS}", map.numQubits}, {"${TARG_QUBITS}", numTargets}};
3106 assertThat(map.numQubits == numTargets, report::KRAUS_MAP_SIZE_MISMATCHES_TARGETS, vars, caller);
3107}
3108
3109
3110

Callers 1

mixKrausMapFunction · 0.85

Calls 1

assertThatFunction · 0.85

Tested by

no test coverage detected