| 49 | |
| 50 | |
| 51 | void 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 | |
| 64 | void freeObj(SuperOp& op) { |
no test coverage detected