pygsti.construction.build_identity_vec

pygsti.construction.build_identity_vec(stateSpaceDims, basis='gm')

Build a the identity vector for a given space and basis.

Parameters:
  • stateSpaceDims (list of ints) – Dimenstions specifying the structure of the density-matrix space. Elements correspond to block dimensions of an allowed density matrix in the standard basis, and the density-matrix space is the direct sum of linear spaces of dimension block-dimension^2.
  • basis ({‘gm’,’pp’,’std’}, optional) – the basis of the returned vector. ‘std’ == Standard (matrix units) ‘gm’ == Gell-Mann ‘pp’ == Pauli-product
Returns:

The identity vector in the desired basis.

Return type:

numpy array