| 482 | |
| 483 | |
| 484 | qmatrix getSuperOperator(vector<qmatrix> matrices) { |
| 485 | DEMAND( matrices.size() > 0 ); |
| 486 | |
| 487 | size_t dim = matrices[0].size(); |
| 488 | |
| 489 | // out = sum_m conj(m) (x) m |
| 490 | qmatrix out = getZeroMatrix(dim * dim); |
| 491 | for (auto& matr : matrices) |
| 492 | out += getKroneckerProduct(getConjugate(matr), matr); |
| 493 | |
| 494 | return out; |
| 495 | } |
| 496 | |
| 497 | |
| 498 |
no test coverage detected