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

Function freeKrausMap

quest/src/api/channels.cpp:51–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49
50
51void freeKrausMap(KrausMap map) {
52
53 // free CPU matrices of Kraus operators
54 cpu_deallocMatrixList(map.matrices, map.numRows, map.numMatrices);
55
56 // free teeny-tiny heap flag
57 util_deallocEpsilonSensitiveHeapFlag(map.isApproxCPTP);
58
59 // free superoperator (which may include freeing GPU memory)
60 freeSuperOp(map.superop);
61}
62
63
64void freeObj(SuperOp& op) {

Callers 2

freeObjFunction · 0.85
destroyKrausMapFunction · 0.85

Calls 3

cpu_deallocMatrixListFunction · 0.85
freeSuperOpFunction · 0.85

Tested by

no test coverage detected