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

Function createSuperOp

quest/src/api/channels.cpp:162–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160
161
162extern "C" SuperOp createSuperOp(int numQubits) {
163 validate_envIsInit(__func__);
164 validate_newSuperOpParams(numQubits, __func__);
165
166 SuperOp out = allocSuperOp(numQubits); // fields may be or contain nullptr if failed
167
168 // free all memory before we throw validation errors to avoid leaks
169 freeAllMemoryIfAnyAllocsFailed(out);
170 validate_newSuperOpAllocs(out, __func__);
171
172 return out;
173}
174
175
176extern "C" KrausMap createKrausMap(int numQubits, int numOperators) {

Callers 10

SECTIONFunction · 0.85
SECTIONFunction · 0.85
createInlineSuperOpFunction · 0.85
_createInlineSuperOpFunction · 0.85
demo_setInlineSuperOpFunction · 0.85
demo_setSuperOpFunction · 0.85
demo_syncSuperOpFunction · 0.85
demo_setSuperOpFunction · 0.85
demo_syncSuperOpFunction · 0.85

Calls 5

validate_envIsInitFunction · 0.85
allocSuperOpFunction · 0.85

Tested by

no test coverage detected