pygsti.models.fogistore

Defines the FirstOrderGaugeInvariantStore class and supporting functionality.

Module Contents

Classes

FirstOrderGaugeInvariantStore

An object that computes and stores the first-order-gauge-invariant quantities of a model.

class pygsti.models.fogistore.FirstOrderGaugeInvariantStore(gauge_action_matrices_by_op, gauge_action_gauge_spaces_by_op, errorgen_coefficient_labels_by_op, op_label_abbrevs=None, reduce_to_model_space=True, dependent_fogi_action='drop', norm_order=None)

Bases: object

An object that computes and stores the first-order-gauge-invariant quantities of a model.

Currently, it is only compatible with ExplicitOpModel objects.

find_nice_fogiv_directions(self)
property errorgen_space_dim(self)
property gauge_space_dim(self)
property num_fogi_directions(self)
property num_fogv_directions(self)
fogi_errorgen_direction_labels(self, typ='normal')

typ can be ‘raw’ or ‘abbrev’ too

fogv_errorgen_direction_labels(self, typ='normal')
errorgen_vec_to_fogi_components_array(self, errorgen_vec)
errorgen_vec_to_fogv_components_array(self, errorgen_vec)
opcoeffs_to_fogi_components_array(self, op_coeffs)
opcoeffs_to_fogv_components_array(self, op_coeffs)
opcoeffs_to_fogiv_components_array(self, op_coeffs)
fogi_components_array_to_errorgen_vec(self, fogi_components)
fogv_components_array_to_errorgen_vec(self, fogv_components)
fogiv_components_array_to_errorgen_vec(self, fogi_components, fogv_components)
errorgen_vec_to_opcoeffs(self, errorgen_vec)
fogi_components_array_to_opcoeffs(self, fogi_components)
fogv_components_array_to_opcoeffs(self, fogv_components)
fogiv_components_array_to_opcoeffs(self, fogi_components, fogv_components)
create_binned_fogi_infos(self, tol=1e-05)

Creates an ‘info’ dictionary for each FOGI quantity and places it within a nested dictionary structure by the operators involved, the types of error generators, and the qubits acted upon (a.k.a. the “target” qubits). TODO: docstring

Returns

dict

classmethod merge_binned_fogi_infos(cls, binned_fogi_infos, index_offsets)

Merge together multiple FOGI-info dictionaries created by :method:`create_binned_fogi_infos`.

Parameters
  • binned_fogi_infos (list) – A list of FOGI-info dictionaries.

  • index_offsets (list) – A list of length len(binned_fogi_infos) that gives the offset into an assumed-to-exist corresponding vector of components for all the FOGI infos.

Returns

dict – The merged dictionary