Skip to main content
IBM Quantum Platform

qiskit_noise_learning.visualizations.path_math_label

qiskit_noise_learning.visualizations.path_math_label(gate_set: GateSet, path: Path, style: Literal['transition', 'formula'] = 'transition', noise_site: Mapping[str, Literal['before', 'after']] | None = None, repeatable_only: bool = False, qubit_labels: Mapping[int, str] | None = None) → str

GitHub

Return a math-mode LaTeX label for a path.

Parameters

  • gate_set – The gate set the path’s fidelity indices belong to, used to look up each gate’s math_label.
  • path – The path to label.
  • style – The style to use for each fidelity index label. "transition" displays the Pauli operator transitions induced by each gate, and "formula" displays the fidelity label formula associated with this path.
  • noise_site – An optional noise-site mapping forwarded to fidelity_index_math_label() for the "formula" style (see that function for details).
  • repeatable_only – If True, only render the repeatable fragment without brackets or fragment-depth exponent.
  • qubit_labels – An optional mapping from qubit index to a display symbol, used to relabel the qubit subscripts (e.g. {25: "i", 26: "j"} renders X_{25} as X_{i}). Indices absent from the mapping render as their integer value.

Returns

A math-mode LaTeX label.

Was this page helpful?
Report a bug, typo, or request content on GitHub.