pygsti.tools.lindbladtools.create_lindbladian_term_errorgen

pygsti.tools.lindbladtools.create_lindbladian_term_errorgen#

create_lindbladian_term_errorgen(typ, Lm, Ln=None, sparse=False)#

Construct the superoperator for a term in the common Lindbladian expansion of an error generator.

Mathematically, for d-dimensional matrices Lm and Ln, this routine constructs the d^2-dimension Lindbladian matrix L whose action is given by:

L(rho) = -i [Lm, rho] ` (when `typ == ‘H’)

or

L(rho) = Ln*rho*Lm^dag - 1/2(rho*Lm^dag*Ln + Lm^dag*Ln*rho) (typ == ‘O’)

where rho is a density matrix. L is returned as a superoperator matrix that acts on a vectorized density matrices.

Parameters:
  • typ ({'H', 'O'}) – The type of error generator to construct.

  • Lm (numpy.ndarray) – d-dimensional basis matrix.

  • Ln (numpy.ndarray, optional) – d-dimensional basis matrix.

  • sparse (bool, optional) – Whether to construct a sparse or dense (the default) matrix.

Return type:

ndarray or Scipy CSR matrix