pygsti.tools.basis_element_labels¶
-
pygsti.tools.
basis_element_labels
(basis, dimOrBlockDims)¶ Returns a list of short labels corresponding to to the elements of the described basis. These labels are typically used to label the rows/columns of a box-plot of a matrix in the basis.
Parameters: - basis ({‘std’, ‘gm’,’pp’}) – Which basis the gateset is represented in. Allowed options are Matrix-unit (std), Gell-Mann (gm) and Pauli-product (pp). If the basis is not known, then an empty list is returned.
- dimOrBlockDims (int or list) – Dimension of basis matrices. If a list of integers, then gives the dimensions of the terms in a direct-sum decomposition of the density matrix space acted on by the basis.
Returns: A list of length dim, whose elements label the basis elements.
Return type: list of strings