QONMetric#

class QONMetric(method, locus, 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.

method

locus

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

metric

Measured metric.

Methods

Parameters:
  • method (str) –

  • locus (str) –

  • metric (str) –

locus: str#

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

metric: str#

Measured metric.

property domain: Domain#

Return the QON domain for metrics.

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