Skip to content

dq.spost

spost(x: ArrayLike) -> Array

Returns the superoperator formed from post-multiplication by an operator.

Post-multiplication by matrix \(A\) is defined by the superoperator \(A^\mathrm{T} \otimes I_n\) in vectorized form: $$ XA \to (A^\mathrm{T} \otimes I_n) \kett{X}. $$

Parameters

  • x (array_like of shape (..., n, n))

    Operator.

Returns

(array of shape (..., n^2, n^2)) Post-multiplication superoperator.

Examples

>>> dq.spost(dq.destroy(3)).shape
(9, 9)