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

Function reportSuperOp

quest/src/api/channels.cpp:447–464  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

445
446
447extern "C" void reportSuperOp(SuperOp op) {
448 validate_superOpFields(op, __func__);
449 validate_numReportedNewlinesAboveZero(__func__); // because trailing newline mandatory
450
451 // demand that SuperOp is GPU-synced, since the
452 // to-be-printed GPU elems will overwrite CPU
453 validate_superOpIsSynced(op, __func__);
454
455 // determine memory costs; heap memory and struct fields
456 size_t elemMem = mem_getLocalSuperOpMemoryRequired(op.numQubits);
457 size_t structMem = sizeof(op);
458
459 print_header(op, elemMem + structMem);
460 print_elems(op);
461
462 // exclude mandatory newline above
463 print_oneFewerNewlines();
464}
465
466
467extern "C" void reportKrausMap(KrausMap map) {

Callers 7

demo_createInlineSuperOpFunction · 0.85
demo_setInlineSuperOpFunction · 0.85
demo_setSuperOpFunction · 0.85
demo_syncSuperOpFunction · 0.85
demo_setSuperOpFunction · 0.85
demo_syncSuperOpFunction · 0.85

Calls 7

validate_superOpFieldsFunction · 0.85
validate_superOpIsSyncedFunction · 0.85
print_headerFunction · 0.85
print_elemsFunction · 0.85
print_oneFewerNewlinesFunction · 0.85

Tested by

no test coverage detected