3.6.8. qupulse.pulses.measurement

Classes

MeasurementDefiner(measurements)

This is a superclass for pulse templates that define measurements.

class MeasurementDefiner(measurements: List[Tuple[str, Expression | str | Real, Expression | str | Real]] | None)[source]

Bases: object

This is a superclass for pulse templates that define measurements.

Parameters:

measurements – Sequence of (name, begin, length) tuples which define which measurements to be associated with this object. The begin times are relative to the beginning of the defining pulse.

get_measurement_windows(parameters: Mapping[str, Real] | Scope, measurement_mapping: Mapping[str, str | None]) List[Tuple[str, Real, 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, Expression | str | Real, Expression | str | Real]]

Return the measurements that are directly declared on self. Does _not_ visit eventual child objects.

property measurement_names: Set[str]

Return the names of measurements that are directly declared on self. Does _not_ visit eventual child objects.

property measurement_parameters: AbstractSet[str]

Return the parameters of measurements that are directly declared on self. Does _not_ visit eventual child objects.