pygsti.tools.fogitools

Utility functions for computing and working with first-order-gauge-invariant (FOGI) quantities.

Module Contents

Functions

first_order_gauge_action_matrix(clifford_superop_mx, target_sslbls, model_state_space, elemgen_gauge_basis, elemgen_row_basis)

Returns a matrix for computing the offset of a given gate's error generator due to a local gauge action.

first_order_gauge_action_matrix_for_prep(prep_superket_vec, target_sslbls, model_state_space, elemgen_gauge_basis, elemgen_row_basis)

Returns a matrix for computing the offset of a given gate's error generator due to a local gauge action.

first_order_gauge_action_matrix_for_povm(povm_superbra_vecs, target_sslbls, model_state_space, elemgen_gauge_basis, elemgen_row_basis)

Returns a matrix for computing the offset of a given gate's error generator due to a local gauge action.

_create_op_errgen_indices_dict(primitive_op_labels, errorgen_coefficient_labels)

construct_fogi_quantities(primitive_op_labels, gauge_action_matrices, errorgen_coefficient_labels, op_errgen_indices, gauge_space, op_label_abbrevs=None, dependent_fogi_action='drop', norm_order=None)

TODO: docstring

compute_maximum_relational_errors(primitive_op_labels, errorgen_coefficients, gauge_action_matrices, errorgen_coefficient_labels, gauge_elemgen_labels, model_dim)

TODO: docstring

op_elem_vec_name(vec, elem_op_labels, op_label_abbrevs)

op_elem_vec_names(vecs, elem_op_labels, op_label_abbrevs)

TODO: docstring

elem_vec_name(vec, elem_labels, include_type=True)

TODO: docstring

elem_vec_names(vecs, elem_labels, include_type=True)

TODO: docstring

pygsti.tools.fogitools.first_order_gauge_action_matrix(clifford_superop_mx, target_sslbls, model_state_space, elemgen_gauge_basis, elemgen_row_basis)

Returns a matrix for computing the offset of a given gate’s error generator due to a local gauge action. Note: clifford_superop must be in the std basis! TODO: docstring

pygsti.tools.fogitools.first_order_gauge_action_matrix_for_prep(prep_superket_vec, target_sslbls, model_state_space, elemgen_gauge_basis, elemgen_row_basis)

Returns a matrix for computing the offset of a given gate’s error generator due to a local gauge action. Note: clifford_superop must be in the std basis! TODO: docstring

pygsti.tools.fogitools.first_order_gauge_action_matrix_for_povm(povm_superbra_vecs, target_sslbls, model_state_space, elemgen_gauge_basis, elemgen_row_basis)

Returns a matrix for computing the offset of a given gate’s error generator due to a local gauge action. Note: clifford_superop must be in the std basis! TODO: docstring

pygsti.tools.fogitools._create_op_errgen_indices_dict(primitive_op_labels, errorgen_coefficient_labels)
pygsti.tools.fogitools.construct_fogi_quantities(primitive_op_labels, gauge_action_matrices, errorgen_coefficient_labels, op_errgen_indices, gauge_space, op_label_abbrevs=None, dependent_fogi_action='drop', norm_order=None)

TODO: docstring

pygsti.tools.fogitools.compute_maximum_relational_errors(primitive_op_labels, errorgen_coefficients, gauge_action_matrices, errorgen_coefficient_labels, gauge_elemgen_labels, model_dim)

TODO: docstring

pygsti.tools.fogitools.op_elem_vec_name(vec, elem_op_labels, op_label_abbrevs)
pygsti.tools.fogitools.op_elem_vec_names(vecs, elem_op_labels, op_label_abbrevs)

TODO: docstring

pygsti.tools.fogitools.elem_vec_name(vec, elem_labels, include_type=True)

TODO: docstring

pygsti.tools.fogitools.elem_vec_names(vecs, elem_labels, include_type=True)

TODO: docstring