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

Function validate_newPauliStrNumChars

quest/src/core/validation.cpp:3196–3202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3194}
3195
3196void validate_newPauliStrNumChars(int numPaulis, int numIndices, const char* caller) {
3197
3198 // this is a C++-only validation, because only std::string gaurantees we can know
3199 // the passed string length (C char arrays might not contain termination char)
3200 tokenSubs vars = {{"${NUM_PAULIS}", numPaulis}, {"${NUM_INDS}", numIndices}};
3201 assertThat(numPaulis == numIndices, report::NEW_PAULI_STR_DIFFERENT_NUM_CHARS_AND_INDICES, vars, caller);
3202}
3203
3204
3205

Callers 1

getPauliStrFunction · 0.85

Calls 1

assertThatFunction · 0.85

Tested by

no test coverage detected