QONGateMetric#
- class QONGateMetric(method, locus_str, 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”}
Module:
iqm.station_control.client.qon
Attributes
Suffixes defining the metric further (if any).
Name of the gate/quantum operation.
Name of the gate implementation.
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:
- suffixes: dict[str, str] = FieldInfo(annotation=NoneType, required=False, default_factory=dict)#
Suffixes defining the metric further (if any).
- classmethod _parse(method, method_specific_part)#
Parse a metric observation name that includes a gate and an implementation.
- Parameters:
- Returns:
Parsed metric name.
- Raises:
ValueError – Observation name is malformed.
- Return type: