qit.utils.rmul

qit.utils.rmul(R, p=None)

Superoperator equivalent for multiplying from the right.

\[\rho R = \text{inv_vec}(\text{rmul}(R) \text{vec}(\rho))\]
Parameters
  • R (array) – multiplying operator, shape == (q, r)

  • p (int) – The shape of \(\rho\) is (p, q). If p is not given, \(\rho\) is assumed square.

Returns

superoperator that implements right multiplication of a vectorized matrix \(\rho\) by the matrix R

Return type

array