pygsti.tools.matrixtools.zvals_to_dense

Contents

pygsti.tools.matrixtools.zvals_to_dense#

zvals_to_dense(self, zvals, superket=True)#

Construct the dense operator or superoperator representation of a computational basis state.

Parameters:
  • zvals (list or numpy.ndarray) – The z-values, each 0 or 1, defining the computational basis state.

  • superket (bool, optional) – If True, the super-ket representation of the state is returned. If False, then the complex ket representation is returned.

Return type:

numpy.ndarray