ObservationFinder#
Module: iqm.station_control.client.qon
- class ObservationFinder(observations, skip_unparseable=False)#
Bases:
dictQuery structure for a set of observations.
This class enables reasonably efficient filtering of an observation set based on the observation name elements (e.g. find all T1 times / parameters of a particular gate/impl/locus etc. in the set).
The class has utility methods for querying specific types observations. The idea is to keep all the logic related to the structure of the observation names encapsulated in this class/module.
Note
Some utility methods like
get_gate_fidelity()have a fairly vague definition. For example, this particular method returns a generically relevant fidelity metric for each gate/implementation, with no particular promises about how it was exactly measured, and the returned metric may change to a different fidelity metric at any time if the quality metric set contents change. Hence these methods should only be used in cases where no specific, rigorously defined metric is needed.Currently implemented using a nested dictionary that follows the dotted structure of the observation names. The nested dictionary is not ideal for all searches/filterings, but it’s just an implementation detail that can be improved later on without affecting the public API of this class.
Warning
This class is an experimental interface to the quality metrics and calibration data. The API may change considerably in the next versions with no backwards compatibility.
- Parameters:
observations (Iterable[ObservationBase]) – Observations to include in the query structure.
skip_unparseable (bool) – If True, ignore any observation whose name cannot be parsed, otherwise raise an exception.
Methods
T1 and T2 coherence times for the given QPU components.
Duration for the given gate/implementation/locus (in s), or None if not found.
Fidelity of the given gate/implementation/locus, or None if not found.
Measurement errors of the given gate/implementation/locus, or None if not found.
Repeatability of the measurement and given implementation/locus, or None if not found.
Qubit drive frequency, or None if not found.
- get_coherence_times(components)#
T1 and T2 coherence times for the given QPU components.
If not found, the component will not appear in the corresponding dict.
- get_gate_duration(gate_name, impl_name, locus)#
Duration for the given gate/implementation/locus (in s), or None if not found.
- get_gate_fidelity(gate_name, impl_name, locus)#
Fidelity of the given gate/implementation/locus, or None if not found.
Note
This method makes no specific promises about the metrics returned, other than that they describe the fidelity of the requested gate/implementation/locus, and thus can be interpreted as
fidelity = 1 - error. The returned metric may change to a different fidelity metric at any time if the quality metric set contents change.
- get_measure_errors(gate_name, impl_name, locus)#
Measurement errors of the given gate/implementation/locus, or None if not found.
- get_measure_repeatability(gate_name, impl_name, locus)#
Repeatability of the measurement and given implementation/locus, or None if not found.
Inheritance
