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
Type/purpose of the observation.
method
Name of the gate/quantum operation.
Name of the gate implementation.
Sequence of names of QPU components on which the gate/operation is applied.
Measured metric.
Suffixes defining the metric further (if any).
Methods
- Parameters:
- classmethod _parse(method, method_specific_part)#
Parse a gate quality metric name.
- Parameters:
- Raises:
ValueError – Failed to parse
name
because it was syntactically incorrect.UnknownObservationError – Failed to parse
name
because it contains unknown elements.
- Return type: