QONMetric#

class QONMetric(method, locus_str, metric)#

Bases: QON

Base class for QON representing a gate quality metric.

Subclasses implement parsing and string representation for specific methods.

Module: iqm.station_control.client.qon

Attributes

domain

Return the QON domain for metrics.

locus

Locus of the metric.

method

locus_str

Sequence of names of QPU components on which the gate is applied, or on which the experiment is run, encoded into a string.

metric

Measured metric.

Methods

Parameters:
locus_str: str#

Sequence of names of QPU components on which the gate is applied, or on which the experiment is run, encoded into a string.

metric: str#

Measured metric.

property domain: Domain#

Return the QON domain for metrics.

property locus: tuple[str, ...]#

Locus of the metric.

classmethod _parse(method, method_specific_part)#

Parse a metric observation name using the appropriate registered subclass.

Parameters:
  • method (str) – The method name.

  • method_specific_part (str) – The method-specific part of the metric observation name.

Returns:

Parsed metric name.

Raises:

UnknownObservationErrormethod is not registered.

Return type:

QONMetric