| 1693 | |
| 1694 | |
| 1695 | void localiser_densmatr_superoperator(Qureg qureg, SuperOp op, vector<int> ketTargs) { |
| 1696 | assert_localiserGivenDensMatr(qureg); |
| 1697 | |
| 1698 | // effect the superoperator as a dense matrix on the ket + bra qubits |
| 1699 | bool conj = false; |
| 1700 | bool transp = false; |
| 1701 | auto braTargs = util_getBraQubits(ketTargs, qureg); |
| 1702 | auto allTargs = util_getConcatenated(ketTargs, braTargs); |
| 1703 | CompMatr matr = getSpoofedCompMatrFromSuperOp(op); |
| 1704 | localiser_statevec_anyCtrlAnyTargDenseMatr(qureg, {}, {}, allTargs, matr, conj, transp); |
| 1705 | } |
| 1706 | |
| 1707 | |
| 1708 | void localiser_densmatr_krausMap(Qureg qureg, KrausMap map, vector<int> ketTargs) { |
no test coverage detected