pygsti.tools.gm_matrices_unnormalized

pygsti.tools.gm_matrices_unnormalized(dimOrBlockDims)

Get the elements of the generalized Gell-Mann basis spanning the density-matrix space given by dimOrBlockDims.

The returned matrices are given in the standard basis of the “embedding” density matrix space, that is, the space which embeds the block-diagonal matrix structure stipulated in dimOrBlockDims. These matrices form an orthogonal but not orthonormal basis under the trace inner product.

Parameters:dimOrBlockDims (int or list of ints) – Structure of the density-matrix space.
Returns:A list of N numpy arrays each of shape (dmDim, dmDim), where dmDim is the matrix-dimension of the overall “embedding” density matrix (the sum of dimOrBlockDims) and N is the dimension of the density-matrix space, equal to sum( block_dim_i^2 ).
Return type:list