pygsti.tools.basistools.basis_element_labels#
- basis_element_labels(basis, dim)#
Get 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', 'qt'}) – Which basis the model is represented in. Allowed options are Matrix-unit (std), Gell-Mann (gm), Pauli-product (pp) and Qutrit (qt). If the basis is not known, then an empty list is returned.
dim (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