pygsti.expand_from_std_direct_sum_mx

pygsti.expand_from_std_direct_sum_mx(mxInStdBasis, dimOrBlockDims)

Convert a gate matrix in the standard basis of a “direct-sum” space to a matrix in the standard basis of the embedding space.

Parameters:
  • mxInStdBasis (numpy array) – Matrix of size N x N, where N is the dimension of the density matrix space, i.e. sum( dimOrBlockDims_i^2 )
  • dimOrBlockDims (int or list of ints) – Structure of the density-matrix space.
Returns:

A M x M matrix, where M is the dimension of the embedding density matrix space, i.e. sum( dimOrBlockDims_i )^2

Return type:

numpy array