pygsti.algorithms.grammatrix.max_gram_basis

Contents

pygsti.algorithms.grammatrix.max_gram_basis#

max_gram_basis(op_labels, dataset, max_length=0)#

Compute a maximal set of basis circuits for a Gram matrix.

That is, a maximal set of strings {S_i} such that the gate strings { S_i S_j } are all present in dataset. If max_length > 0, then restrict len(S_i) <= max_length.

Parameters:
  • op_labels (list or tuple) – the operation labels to use in Gram matrix basis strings

  • dataset (DataSet) – the dataset to use when constructing the Gram matrix

  • max_length (int, optional) – the maximum string length considered for Gram matrix basis elements. Defaults to 0 (no limit).

Returns:

where each tuple contains operation labels and specifies a single circuit.

Return type:

list of tuples