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.
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.
- 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.
- 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
