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

Function validate_krausMapIsCPTP

quest/src/core/validation.cpp:3091–3101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3089}
3090
3091void validate_krausMapIsCPTP(KrausMap map, const char* caller) {
3092 validate_krausMapFields(map, caller);
3093 validate_krausMapIsSynced(map, caller);
3094
3095 // avoid expensive CPTP check (and do not overwrite .isApproxCPTP) if validation is anyway disabled
3096 if (isNumericalValidationDisabled())
3097 return;
3098
3099 // use existing CPTPness or calculate afresh
3100 assertThat(util_isCPTP(map, global_validationEpsilon), report::KRAUS_MAP_NOT_CPTP, caller);
3101}
3102
3103void validate_krausMapMatchesTargets(KrausMap map, int numTargets, const char* caller) {
3104

Callers 1

mixKrausMapFunction · 0.85

Calls 5

validate_krausMapFieldsFunction · 0.85
assertThatFunction · 0.85
util_isCPTPFunction · 0.85

Tested by

no test coverage detected