pygsti.tools.errgenproptools.stabilizer_pauli_expectation_correction_numerical

pygsti.tools.errgenproptools.stabilizer_pauli_expectation_correction_numerical#

stabilizer_pauli_expectation_correction_numerical(errorgen_dict, errorgen_propagator, circuit, pauli, order=1)#

Compute the kth-order correction to the expectation value of the specified pauli.

Parameters:
  • errorgen_dict (dict) – Dictionary whose keys are LocalStimErrorgenLabel and whose values are corresponding rates.

  • errorgen_propagator (ErrorGeneratorPropagator) – Error generator propagator used for constructing dense representation of the error generator dictionary.

  • circuit (Circuit) – Circuit the expectation value is being measured against.

  • pauli (stim.PauliString) – Pauli operator to compute expectation value correction for.

  • order (int, optional (default 1)) – Order of the correction (i.e. order of the taylor series expansion for the exponentiated error generator) to compute.

Returns:

correction – float corresponding to the correction to the expectation value for the selected pauli operator induced by the error generator (to specified order).

Return type:

float