pygsti.tools.errgenproptools.iterative_error_generator_composition

pygsti.tools.errgenproptools.iterative_error_generator_composition#

iterative_error_generator_composition(errorgen_labels, rates)#

Iteratively compute error generator compositions. Each error generator composition in general returns a list of multiple new error generators, so this function manages the distribution and recursive application of the compositions for two-or-more error generator labels.

Parameters:
  • errorgen_labels (tuple of LocalStimErrorgenLabel) – A tuple of the elementary error generator labels to be composed.

  • rates (tuple of float) – A tuple of corresponding error generator rates of the same length as the tuple of error generator labels.

Returns:

  • List of tuples, the first element of each tuple is a LocalStimErrorgenLabel.

  • The second element of each tuple is the final rate for that term.