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

Function syncKrausMap

quest/src/api/channels.cpp:236–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234
235
236extern "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

Callers 4

SECTIONFunction · 0.85
setAndSyncKrausMapElemsFunction · 0.85
demo_syncKrausMapFunction · 0.85
demo_syncKrausMapFunction · 0.85

Calls 4

validate_krausMapFieldsFunction · 0.85
util_setSuperoperatorFunction · 0.85
syncSuperOpFunction · 0.85
util_setFlagToUnknownFunction · 0.85

Tested by

no test coverage detected