pygsti.algorithms.fiducialselection.create_prep_cache

pygsti.algorithms.fiducialselection.create_prep_cache#

create_prep_cache(model, available_prep_fid_list, circuit_cache=None)#

Make a dictionary structure mapping native state preps and circuits to numpy column vectors for the corresponding effective state prep.

This can then be passed into ‘create_prep_mxs’ to more efficiently generate the matrices for score function evaluation.

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

  • available_prep_fid_list (list of Circuits) – Full list of all fiducial circuits available for constructing an informationally complete state preparation.

  • circuit_cache (dict) – dictionary of PTMs for the circuits in the available_prep_fid_list

Returns:

A dictionary with keys given be tuples of the form (native_prep, ckt) with corresponding entries being the numpy vectors for that state prep.

Return type:

dictionary