pygsti.max_gram_rank_and_evals¶
-
pygsti.
max_gram_rank_and_evals
(dataset, maxBasisStringLength=10, targetGateset=None, spamDict=None, fixedLists=None)¶ Compute the rank and singular values of a maximal Gram matrix,that is, the Gram matrix using a basis computed by: get_max_gram_basis(dataset.get_gate_labels(), dataset, maxBasisStringLength).
Parameters: - dataset (DataSet) – the dataset to use when constructing the Gram matrix
- maxBasisStringLength (int, optional) – the maximum string length considered for Gram matrix basis elements. Defaults to 10.
- targetGateset (GateSet, optional) – A gateset used to specify the SPAM labels used to connect the dataset values to rhoVec and EVec indices.
- spamDict (dictionary, optional) – Dictionary mapping (rhoVec_index,EVec_index) integer tuples to string spam labels. Defaults to the spam dictionary of targetGateset e.g. spamDict[(0,0)] == “plus”
- fixedLists ((prepStrs, effectStrs), optional) – 2-tuple of gate string lists, specifying the preparation and measurement fiducials to use when constructing the Gram matrix, and thereby bypassing the search for such lists.
Returns: - rank (integer)
- singularvalues (numpy array)
- targetsingularvalues (numpy array)