qit.utils.superop_to_choi

qit.utils.superop_to_choi(L)

Convert a Liouvillian superoperator to a Choi matrix.

Given a Liouvillian superoperator L operating on vectorized state operators, \(L: A \otimes A \to B \otimes B\), returns the corresponding Choi matrix \(C: A \otimes B \to A \otimes B\).

Parameters

L (array) – Liouvillian superoperator, shape == (b**2, a**2)

Returns

corresponding Choi matrix, shape == (a*b, a*b)

Return type

array