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

Function _createInlineKrausMap

quest/include/channels.h:633–638  ·  view source on GitHub ↗

@private

Source from the content-addressed store, hash-verified

631
632 /// @private
633 static inline KrausMap _createInlineKrausMap(int numQb, int numOps, qcomp matrices[numOps][1<<numQb][1<<numQb]) {
634 _validateParamsToCreateInlineKrausMap(numQb, numOps);
635 KrausMap out = createKrausMap(numQb, numOps); // malloc failures will report 'createKrausMap', rather than 'inline' version. Alas!
636 _setKrausMapFromArr(out, matrices);
637 return out;
638 }
639
640 /// @private
641 static inline SuperOp _createInlineSuperOp(int numQb, qcomp matrix[1<<numQb][1<<numQb]) {

Callers

nothing calls this directly

Calls 3

createKrausMapFunction · 0.85
_setKrausMapFromArrFunction · 0.85

Tested by

no test coverage detected