pygsti.tools.jamiolkowski_iso_inv

pygsti.tools.jamiolkowski_iso_inv(choiMx, choiMxBasis='gm', gateMxBasis='gm', dimOrStateSpaceDims=None)

Given a choi matrix, return the corresponding gate matrix. This function performs the inverse of jamiolkowski_iso(...).

Parameters:
  • choiMx (numpy array) – the Choi matrix, normalized to have trace == 1, to compute gate matrix for.
  • choiMxBasis ({“std”,”gm”,”pp”}, optional) – the basis of choiMx: standard (matrix units), Gell-Mann, or Pauli-product, respectively.
  • gateMxBasis ({“std”,”gm”,”pp”}, optional) – the basis for the returned gate matrix: standard (matrix units), Gell-Mann, or Pauli-product, respectively.
  • dimOrStateSpaceDims (int or list of ints, optional) – Structure of the density-matrix space, which further specifies the basis of the returned gateMx (see BasisTools).
Returns:

gate matrix in the desired basis.

Return type:

numpy array