QONGateMetric#
Module: iqm.station_control.client.qon
- class QONGateMetric(locus_str, method, metric, gate, implementation, suffixes=<factory>)#
Bases:
QONMetricQON 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=bbbmethod: ssro gate: measure implementation: constant locus_str: QB1 metric: fidelity suffixes: {“aaa”: “bbb”, “par”: “d1”}
metrics.ssro.measure.constant.QB1.fidelitymethod: ssro gate: measure implementation: constant locus_str: QB1 metric: fidelity suffixes: {}
metrics.rb.prx.drag_crf.QB4.fidelity:par=d2method: rb gate: prx implementation: drag_crf locus_str: QB4 metric: fidelity suffixes: {“par”: “d2”}
metrics.irb.circuit.random_circuit.QB4.fidelity:par=d2method: irb gate: circuit implementation: random_circuit locus_str: QB4 metric: fidelity suffixes: {“par”: “d2”}
Attributes
Suffixes defining the metric further (if any).
Name of the gate/quantum operation.
Name of the gate implementation.
methodName of the method by which the metric was measured.
metricMeasured metric.
locus_strSequence of names of QPU components to which the observation applies, encoded into a string.
Methods
- Parameters:
locus_str (str)
method (Annotated[str, FieldInfo(annotation=NoneType, required=True, metadata=[_PydanticGeneralMetadata(pattern='^[A-Za-z_][A-Za-z0-9_]*$')])])
metric (Annotated[str, FieldInfo(annotation=NoneType, required=True, metadata=[_PydanticGeneralMetadata(pattern='^[A-Za-z_0-9][A-Za-z0-9_]*$')])])
gate (Annotated[str, FieldInfo(annotation=NoneType, required=True, metadata=[_PydanticGeneralMetadata(pattern='^[A-Za-z_][A-Za-z0-9_]*$')])])
implementation (Annotated[str, FieldInfo(annotation=NoneType, required=True, metadata=[_PydanticGeneralMetadata(pattern='^[A-Za-z_][A-Za-z0-9_]*$')])])
- gate: Annotated[str, FieldInfo(annotation=NoneType, required=True, metadata=[_PydanticGeneralMetadata(pattern='^[A-Za-z_][A-Za-z0-9_]*$')])]#
Name of the gate/quantum operation.
Inheritance
