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

Function validate_newPauliStrSumMatchingListLens

quest/src/core/validation.cpp:3265–3269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3263}
3264
3265void validate_newPauliStrSumMatchingListLens(qindex numStrs, qindex numCoeffs, const char* caller) {
3266
3267 tokenSubs vars = {{"${NUM_STRS}", numStrs}, {"${NUM_COEFFS}", numCoeffs}};
3268 assertThat(numStrs == numCoeffs, report::NEW_PAULI_STR_SUM_DIFFERENT_NUM_STRINGS_AND_COEFFS, vars, caller);
3269}
3270
3271void validate_newPauliStrSumAllocs(PauliStrSum sum, qindex numBytesStrings, qindex numBytesCoeffs, const char* caller) {
3272

Callers 1

createPauliStrSumFunction · 0.85

Calls 1

assertThatFunction · 0.85

Tested by

no test coverage detected