3.7.8. qupulse.pulses.measurement¶
Classes
|
- class qupulse.pulses.measurement.MeasurementDefiner(measurements: Optional[List[Tuple[str, Union[qupulse.expressions.sympy.Expression, str, numbers.Real], Union[qupulse.expressions.sympy.Expression, str, numbers.Real]]]])[source]¶
Bases:
object
- get_measurement_windows(parameters: Union[Mapping[str, numbers.Real], qupulse.parameter_scope.Scope], measurement_mapping: Dict[str, Optional[str]]) List[Tuple[str, numbers.Real, numbers.Real]] [source]¶
Calculate measurement windows with the given parameter set and rename them with the measurement mapping. This method only returns the measurement windows that are defined on self. It does _not_ collect the measurement windows defined on eventual child objects that self has/is composed of.
- Parameters
parameters – Used to calculate the numeric begins and lengths of symbolically defined measurement windows.
measurement_mapping – Used to rename/drop measurement windows. Windows mapped to None are dropped.
- Returns
List of measurement windows directly defined on self
- property measurement_declarations: List[Tuple[str, Union[qupulse.expressions.sympy.Expression, str, numbers.Real], Union[qupulse.expressions.sympy.Expression, str, numbers.Real]]]¶
Return the measurements that are directly declared on self. Does _not_ visit eventual child objects.