rqutils.paulis.labels¶
- rqutils.paulis.labels(dim, symbol=None, delimiter='', norm=True, fmt='latex')¶
Generate the labels for the Pauli matrices of a given dimension.
- Parameters
dim (
Union[int,Sequence[int]]) – Dimension(s) of the Pauli matrices.symbol (
Union[str,Sequence[str],None]) – Base symbol.delimiter (
str) – Delimiter between the symbols for multibody labels.norm (
bool) – Include the normalization factors.fmt (
str) – Output format. Allowed values are ‘text’, ‘latex’, ‘latex-text’, ‘latex-slash’.
- Return type
numpy.ndarray- Returns
An ndarray of type string and shape (d1**2, d2**2, …).