pygsti.algorithms.fiducialpairreduction.compute_jacobian_dicts

pygsti.algorithms.fiducialpairreduction.compute_jacobian_dicts#

compute_jacobian_dicts(model, germs, prep_fiducials, meas_fiducials, prep_povm_tuples='first', comm=None, mem_limit=None, verbosity=0)#

Function for precomputing the jacobian dictionaries from bulk_dprobs for a model with its SPAM parameters frozen, as needed for certain FPR applications. Can take a comm object for parallelization of the jacobian calculation using MPI.

modelModel

The model used for calculating the jacobian with respect to.

germs :list of Circuits

Germs to construct the jacobian dictionaries for.

prep_fiducialslist of Circuits

A list of preparation fiducials circuits.

meas_fiducialslist of Circuits

A list of measurement fiducial circuits.

prep_povm_tuplesstr or list of tuples (default ‘first’)

Either a string or list of tuples. When a list of tuples these correspond to native state prep and native POVM pairs. When the special keyword argument ‘first’ is passed in the first native prep and first native POVM are used.

commmpi4py.MPI.Comm, optional

When not None, an MPI communicator for distributing the computation across multiple processors is used for the jacobian calculation.

mem_limitint, optional (default None)

An optional per-worker memory limit, in bytes.

Returns:

jacobian_dicts – A dictionary whose keys correspond to germs and whose values correspond the jacobian dictionaries for the list of circuits induced by that germ together with the set of fiducials pairs. Format of these correspond to the format returned by bulk_dprobs.

Return type:

dictionary of dictionaries