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

Function mixSuperOp

quest/src/api/decoherence.cpp:144–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142
143
144void mixSuperOp(Qureg qureg, int* targets, int numTargets, SuperOp superop) {
145 validate_quregFields(qureg, __func__);
146 validate_targets(qureg, targets, numTargets, __func__);
147 validate_superOpFields(superop, __func__);
148 validate_superOpIsSynced(superop, __func__);
149 validate_superOpDimMatchesTargs(superop, numTargets, __func__);
150 validate_mixedAmpsFitInNode(qureg, 2*numTargets, __func__); // superop acts on 2x
151
152 localiser_densmatr_superoperator(qureg, superop, util_getVector(targets, numTargets));
153}
154
155
156

Callers 1

SECTIONFunction · 0.85

Calls 8

validate_quregFieldsFunction · 0.85
validate_targetsFunction · 0.85
validate_superOpFieldsFunction · 0.85
validate_superOpIsSyncedFunction · 0.85
util_getVectorFunction · 0.85

Tested by

no test coverage detected