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

Function validate_superOpDimMatchesTargs

quest/src/core/validation.cpp:2874–2878  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2872}
2873
2874void validate_superOpDimMatchesTargs(SuperOp op, int numTargets, const char* caller) {
2875
2876 tokenSubs vars = {{"${OP_QUBITS}", op.numQubits}, {"{NUM_TARGS}", numTargets}};
2877 assertThat(op.numQubits == numTargets, report::SUPER_OP_SIZE_MISMATCHES_NUM_TARGETS, vars, caller);
2878}
2879
2880
2881

Callers 1

mixSuperOpFunction · 0.85

Calls 1

assertThatFunction · 0.85

Tested by

no test coverage detected