qml.measurements.MeasurementValue

class MeasurementValue(measurements, processing_fn)[source]

Bases: Generic[pennylane.measurements.mid_measure.T]

A class representing unknown measurement outcomes in the qubit model.

Measurements on a single qubit in the computational basis are assumed.

Parameters
  • measurements (list[MidMeasureMP]) – The measurement(s) that this object depends on.

  • processing_fn (callable) – A lazily transformation applied to the measurement values.

branches

A dictionary representing all possible outcomes of the MeasurementValue.

branches

A dictionary representing all possible outcomes of the MeasurementValue.