qics.vectorize.lin_to_mat¶
- qics.vectorize.lin_to_mat(lin, dims, iscomplex=False, compact=(False, True))[source]¶
Computes the matrix corresponding to a linear map from vectorized symmetric matrices to vectorized symmetric matrices.
- Parameters:
- lin
callable Linear operator sending symmetric matrices to symmetric matrices.
- dims
tupleofint The dimensions
(ni, no)of the input and output matrices of the linear operator.- iscomplex
bool, optional Whether the matrix to vectorize is Hermitian (
True) or symmetric (False). Default isFalse.- compact
tupleofbool, optional Whether to use a compact vector representation or not for the input and output matrices, respectively. Default is
(False, True).
- lin
- Returns:
ndarrayThe matrix representation of the given linear operator.