QONSystemMetric

QONSystemMetric#

class QONSystemMetric(method, locus, metric)#

Bases: QONMetric

QON representing a system quality metric.

Has the form metrics.{method}.{locus}.{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: QB4 metric: fidelity suffixes: {“par”: “d2”}

metrics.ghz_state.QB1__QB2.coherence_lower_bound

method: ghz_state locus: QB1__QB2 metric: coherence_lower_bound

Subclasses implement parsing and string representation for specific methods.

Module: iqm.station_control.client.qon

Attributes

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) –

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