mm.lab.abstract.Measurement¶
- class mrmustard.lab.abstract.Measurement(outcome, modes)[source]¶
Bases:
ABC
this is an abstract class holding the common methods and properties that any measurement should implement
- Parameters:
outcome (optional, List[float] or Tensor) – the result of the measurement
modes (List[int]) – the modes on which the measurement is acting on
Attributes
returns the modes being measured
returns the number of modes being measured
Returns outcome of the measurement.
The set of parameters for this transformation.
returns whether the measurement is postselected, i.e, a outcome has been provided
- modes¶
returns the modes being measured
- num_modes¶
returns the number of modes being measured
- outcome¶
Returns outcome of the measurement. If no measurement has been carried out returns None.
- parameter_set¶
The set of parameters for this transformation.
- postselected¶
returns whether the measurement is postselected, i.e, a outcome has been provided
Methods