mm.lab.Generaldyne

class mrmustard.lab.Generaldyne(state, outcome=None, modes=None)[source]

Bases: Measurement

Generaldyne measurement on given modes.

Parameters:
  • state (State) – the Gaussian state of the measurment device

  • outcome (optional or List[float]) – the means of the measurement state, defaults to None

  • modes (List[int]) – the modes on which the measurement is acting on

modes

returns the modes being measured

num_modes

returns the number of modes being measured

outcome

Returns outcome of the measurement.

parameter_set

The set of parameters for this transformation.

postselected

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
parameter_set

The set of parameters for this transformation.

postselected

returns whether the measurement is postselected, i.e, a outcome has been provided

primal(other)

performs the measurement procedure according to the representation of the incoming state

primal(other)[source]

performs the measurement procedure according to the representation of the incoming state

Return type:

Union[State, float]