pygsti.jamiolkowski_iso

pygsti.jamiolkowski_iso(gateMx, gateMxBasis='gm', choiMxBasis='gm', dimOrStateSpaceDims=None)

Given a gate matrix, return the corresponding Choi matrix that is normalized to have trace == 1.

Parameters:
  • gateMx (numpy array) – the gate matrix to compute Choi matrix of.
  • gateMxBasis ({“std”,”gm”,”pp”}, optional) – the basis of gateMx: standard (matrix units), Gell-Mann, or Pauli-product, respectively.
  • choiMxBasis ({“std”,”gm”,”pp”}, optional) – the basis for the returned Choi 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 gateMx (see BasisTools).
Returns:

the Choi matrix, normalized to have trace == 1, in the desired basis.

Return type:

numpy array