QONSystemMetric

QONSystemMetric#

class QONSystemMetric(method, locus_str, metric)#

Bases: QONMetric

QON representing a system quality metric.

Has the form metrics.{method}.{locus_str}.{metric}.

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

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

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

metrics.ghz_state.QB1__QB2.coherence_lower_bound

method: ghz_state locus_str: QB1__QB2 metric: coherence_lower_bound

Subclasses implement parsing and string representation for specific methods.

Module: iqm.station_control.client.qon

Attributes

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:
classmethod _parse(method, method_specific_part)#

Parse a metric observation name without a gate or an implementation.

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

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

Returns:

Parsed metric name.

Raises:

ValueError – Observation name is malformed.

Return type:

QONSystemMetric