qit.utils.lrmul

qit.utils.lrmul(L, R)

Superoperator equivalent for multiplying both from left and right.

\[L \rho R = \text{inv_vec}(\text{lrmul}(L, R) \text{vec}(\rho))\]
Parameters
  • L (array) – matrix, shape (m, p)

  • R (array) – matrix, shape (q, r)

Returns

superoperator that implements left multiplication by the matrix L and right

multiplication by the matrix R of a vectorized matrix \(\rho\)

Return type

array