QONMetric#

class QONMetric(method, gate, implementation, locus, metric, suffixes=<factory>)#

Bases: QON

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: QB1 metric: fidelity suffixes: {“aaa”: “bbb”, “par”: “d1”}

metrics.ssro.measure.constant.QB1.fidelity

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

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

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

metrics.ghz_state.QB1__QB2.coherence_lower_bound

method: ghz_state gate: None implementation: None locus: QB1__QB2 metric: coherence_lower_bound suffixes: {}

Module: iqm.station_control.client.qon

Attributes

domain

Type/purpose of the observation.

method

gate

Name of the gate/quantum operation.

implementation

Name of the gate implementation.

locus

Sequence of names of QPU components on which the gate/operation is applied.

metric

Measured metric.

suffixes

Suffixes defining the metric further (if any).

Methods

Parameters:
  • method (str) –

  • gate (str | None) –

  • implementation (str | None) –

  • locus (str) –

  • metric (str) –

  • suffixes (dict[str, str]) –

gate: str | None#

Name of the gate/quantum operation.

implementation: str | None#

Name of the gate implementation.

locus: str#

Sequence of names of QPU components on which the gate/operation is applied.

metric: str#

Measured metric.

suffixes: dict[str, str]#

Suffixes defining the metric further (if any).

property domain: Domain#

Type/purpose of the observation.

classmethod _parse(method, method_specific_part)#

Parse a gate quality metric name.

Parameters:
  • method (str) – Method used to measure the gate metric.

  • method_specific_part (str) – Dot-separated fields specific to method, possibly followed by suffixes.

Raises:
Return type:

QONMetric