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