pygsti.algorithms.fiducialselection.create_prep_mxs

pygsti.algorithms.fiducialselection.create_prep_mxs#

create_prep_mxs(model, prep_fid_list, prep_cache=None)#

Make a list of matrices for the model preparation operations.

Makes a list of matrices, where each matrix corresponds to a single preparation operation in the model, and the column of each matrix is a fiducial acting on that state preparation.

Parameters:
  • model (Model) – The model (associates operation matrices with operation labels).

  • prep_fid_list (list of Circuits) – List of fiducial circuits for constructing an informationally complete state preparation.

  • prep_cache (dictionary of effective state preps) – Dictionary of effective state preps cache used to accelerate the generation of the matrices used for score function evaluation. Default value is None.

Returns:

A list of matrices, each of shape (dim, len(prep_fid_list)) where dim is the dimension of model (4 for a single qubit). The length of this list is equal to the number of state preparations in model.

Return type:

list