pygsti.forwardsims.termforwardsim_calc_generic.compute_pruned_path_polynomials_given_threshold

pygsti.forwardsims.termforwardsim_calc_generic.compute_pruned_path_polynomials_given_threshold#

compute_pruned_path_polynomials_given_threshold(threshold, fwdsim, rholabel, elabels, circuit, polynomial_vindices_per_int, repcache, circuitsetup_cache, comm, mem_limit, fastmode)#

Computes probabilities for multiple spam-tuples of circuit

Parameters:
  • fwdsim (TermForwardSimulator) – The calculator object holding vital information for the computation.

  • rholabel (Label) – Prep label for all the probabilities to compute.

  • elabels (list) – List of effect labels, one per probability to compute. The ordering of elabels determines the ordering of the returned probability polynomials.

  • circuit (Circuit) – The gate sequence to sandwich between the prep and effect labels.

  • repcache (dict, optional) – Dictionary used to cache operator representations to speed up future calls to this function that would use the same set of operations.

  • circuitsetup_cache (dict, optional) – Dictionary used to cache preparation specific to this function, to speed up repeated calls using the same circuit and set of parameters, including the same repcache.

  • comm (mpi4py.MPI.Comm, optional) – When not None, an MPI communicator for distributing the computation across multiple processors.

  • mem_limit (int, optional) – A rough memory limit in bytes.

  • fastmode (bool, optional) – A switch between a faster, slightly more memory hungry mode of computation (fastmode=True)and a simpler slower one (=False).

Returns:

prps – the polynomials for the requested circuit probabilities, computed by selectively summing up high-magnitude paths.

Return type:

list of PolynomialRep objects