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

Function validate_superOpFieldsMatchPassedParams

quest/src/core/validation.cpp:2812–2819  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2810}
2811
2812void validate_superOpFieldsMatchPassedParams(SuperOp op, int numQb, const char* caller) {
2813
2814 tokenSubs vars = {
2815 {"${NUM_PASSED_QUBITS}", numQb},
2816 {"${NUM_OP_QUBITS}", op.numQubits}};
2817
2818 assertThat(op.numQubits == numQb, report::SUPER_OP_FIELDS_MISMATCH_PARAMS, vars, caller);
2819}
2820
2821
2822

Callers 2

setInlineSuperOpFunction · 0.85

Calls 1

assertThatFunction · 0.85

Tested by

no test coverage detected