pygsti.forwardsims.termforwardsim_calc_generic.prs_as_polynomials#
- prs_as_polynomials(fwdsim, rholabel, elabels, circuit, polynomial_vindices_per_int, comm=None, mem_limit=None, fastmode=True)#
Computes polynomials of the 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.
polynomial_vindices_per_int (int) – The number of variable indices that can fit into a single platform-width integer (can be computed from number of model params, but passed in for performance).
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:
A list of PolynomialRep objects, one per element of elabels.
- Return type:
list