QONGateMetric#

Module: iqm.station_control.client.qon

class QONGateMetric(locus_str, method, metric, gate, implementation, suffixes=<factory>)#

Bases: QONMetric

QON representing a gate quality metric.

Has the form metrics.{method}.{method_specific_part}.

Can parse/represent e.g. the following metrics:

metrics.ssro.measure.constant.QB1.fidelity:par=d1:aaa=bbb

method: ssro gate: measure implementation: constant locus_str: QB1 metric: fidelity suffixes: {“aaa”: “bbb”, “par”: “d1”}

metrics.ssro.measure.constant.QB1.fidelity

method: ssro gate: measure implementation: constant locus_str: QB1 metric: fidelity suffixes: {}

metrics.rb.prx.drag_crf.QB4.fidelity:par=d2

method: rb gate: prx implementation: drag_crf locus_str: QB4 metric: fidelity suffixes: {“par”: “d2”}

metrics.irb.circuit.random_circuit.QB4.fidelity:par=d2

method: irb gate: circuit implementation: random_circuit locus_str: QB4 metric: fidelity suffixes: {“par”: “d2”}

Attributes

suffixes

Suffixes defining the metric further (if any).

gate

Name of the gate/quantum operation.

implementation

Name of the gate implementation.

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_]*$')])])

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

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

  • suffixes (dict[str, str])

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

Name of the gate/quantum operation.

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

Name of the gate implementation.

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

Suffixes defining the metric further (if any).

Inheritance

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