sf.lab.Heterodyne¶
- class mrmustard.lab.Heterodyne(x=0.0, y=0.0, modes=None)[source]¶
Bases:
GeneraldyneHeterodyne measurement on given modes.
This class is just a thin wrapper around the
Coherent. If neitherxoryis provided then values will be sampled.- Parameters:
x (optional float or List[float]) – the x-displacement of the coherent state, defaults to
Noney (optional or List[float]) – the y-displacement of the coherent state, defaults to
Nonemodes (List[int]) – the modes of the coherent state
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¶
- parameter_set¶
The set of parameters for this transformation.
- postselected¶
returns whether the measurement is postselected, i.e, a outcome has been provided
Methods