| 234 | |
| 235 | |
| 236 | extern "C" void syncKrausMap(KrausMap map) { |
| 237 | validate_krausMapFields(map, __func__); |
| 238 | |
| 239 | // re-compute and GPU-sync the superoperator from the modified matrices |
| 240 | util_setSuperoperator(map.superop.cpuElems, map.matrices, map.numMatrices, map.numQubits); |
| 241 | syncSuperOp(map.superop); |
| 242 | |
| 243 | // indicate that we do not know whether the revised map is |
| 244 | // is CPTP; we defer establishing that until a CPTP check |
| 245 | util_setFlagToUnknown(map.isApproxCPTP); |
| 246 | } |
| 247 | |
| 248 | |
| 249 |
no test coverage detected