iqm.benchmarks.compressive_gst.mgst.reporting.reporting.generate_basis_labels

iqm.benchmarks.compressive_gst.mgst.reporting.reporting.generate_basis_labels#

iqm.benchmarks.compressive_gst.mgst.reporting.reporting.generate_basis_labels(pdim: int, basis: str | None = None) list[str]#

Generate a list of labels for the Pauli basis or the standard basis.

Parameters:
  • pdim (int) – Physical dimension

  • basis (str | None) – Which basis the labels correspond to, currently default is standard basis and “Pauli” can be chosen for Pauli basis labels like “II”, “IX”, “XX”, …

Returns:

A list of all string combinations for the given dimension and basis

Return type:

labels