pygsti.tools.errgenproptools.iterative_error_generator_composition_numerical

pygsti.tools.errgenproptools.iterative_error_generator_composition_numerical#

iterative_error_generator_composition_numerical(errorgen_labels, rates, errorgen_matrix_dict=None, num_qubits=None)#

Iteratively compute error generator compositions. The function computes a dense representation of this composition numerically and is primarily intended as part of testing infrastructure.

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.

  • errorgen_matrix_dict (dict, optional (default None)) – An optional dictionary mapping `ElementaryErrorgenLabel`s to numpy arrays for their dense representation. If not specified this will be constructed from scratch each call, so specifying this can provide a performance benefit.

  • num_qubits (int, optional (default None)) – Number of qubits for the error generator commutator being computed. Only required if errorgen_matrix_dict is None.

Returns:

Dense numpy array representation of the super operator corresponding to the iterated composition written in the standard basis.

Return type:

numpy.ndarray