iqm.benchmarks.compressive_gst.gst_analysis.generate_basis_labels

iqm.benchmarks.compressive_gst.gst_analysis.generate_basis_labels#

iqm.benchmarks.compressive_gst.gst_analysis.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) – int Physical dimension

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

Returns:

List[str]

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

Return type:

labels