QONMetric#

Module: iqm.station_control.client.qon

class QONMetric(locus_str, method, metric)#

Bases: LocusQON

Base class for QON representing a gate quality metric.

Subclasses implement parsing and string representation for specific methods.

Attributes

domain

Return the QON domain for metrics.

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-z_][A-Za-z0-9_]*$')])])

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

method: Annotated[str, FieldInfo(annotation=NoneType, required=True, metadata=[_PydanticGeneralMetadata(pattern='^[A-Za-z_][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.

property domain: Domain#

Return the QON domain for metrics.

Inheritance

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