QONMetric#

Module: iqm.station_control.client.qon

class QONMetric(*, locus_str, method, metric, suffixes=<factory>)#

Bases: LocusQON

Base class for QON representing a gate or system quality metric.

Subclasses implement parsing and string representation for specific methods.

Attributes

domain

Return the QON domain for metrics.

suffix_str

Return the all the suffixes encoded into a dut_field fragment.

suffixes

Suffixes defining the metric further (if any).

method

Name of the method by which the metric was measured.

metric

Measured metric.

locus_str

Sequence of names of QPU components to which the observation applies, encoded into a string.

Methods

Parameters:
  • locus_str (str)

  • method (Annotated[str, FieldInfo(annotation=NoneType, required=True, metadata=[_PydanticGeneralMetadata(pattern='^[A-Za-z0-9_]+$')])])

  • metric (Annotated[str, FieldInfo(annotation=NoneType, required=True, metadata=[_PydanticGeneralMetadata(pattern='^[A-Za-z_0-9][A-Za-z0-9_]*$')])])

  • suffixes (dict[str, str])

method: Annotated[str, FieldInfo(annotation=NoneType, required=True, metadata=[_PydanticGeneralMetadata(pattern='^[A-Za-z0-9_]+$')])]#

Name of the method by which the metric was measured.

metric: Annotated[str, FieldInfo(annotation=NoneType, required=True, metadata=[_PydanticGeneralMetadata(pattern='^[A-Za-z_0-9][A-Za-z0-9_]*$')])]#

Measured metric.

suffixes: dict[str, str] = FieldInfo(annotation=NoneType, required=False, default_factory=dict)#

Suffixes defining the metric further (if any).

property domain: Domain#

Return the QON domain for metrics.

property suffix_str: str#

Return the all the suffixes encoded into a dut_field fragment.

Inheritance

Inheritance diagram of iqm.station_control.client.qon.QONMetric