qics.vectorize.eye¶
- qics.vectorize.eye(n, iscomplex=False, compact=(False, True))[source]¶
Computes the matrix representation of the identity map for vectorized symmetric or Hermitian matrices.
- Parameters:
- n
int The dimensions of the
(n, n)matrix the identity is acting on.- 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).
- n
- Returns:
ndarrayThe matrix representation of the identity superoperator.