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

Function validate_matrixNumQubitsMatchesParam

quest/src/core/validation.cpp:2228–2235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2226}
2227
2228void validate_matrixNumQubitsMatchesParam(int numMatrQubits, int numSetterQubits, const char* caller) {
2229
2230 tokenSubs vars = {
2231 {"${NUM_SETTER_QUBITS}", numSetterQubits},
2232 {"${NUM_MATRIX_QUBITS}", numMatrQubits}};
2233
2234 assertThat(numMatrQubits == numSetterQubits, report::MATR_NUM_QUBITS_MISMATCHES_INLINE_SETTER, vars, caller);
2235}
2236
2237void validate_declaredNumElemsMatchesVectorLength(qindex numElems, qindex vecLength, const char* caller) {
2238

Callers 4

setInlineCompMatrFunction · 0.85
setInlineDiagMatrFunction · 0.85

Calls 1

assertThatFunction · 0.85

Tested by

no test coverage detected