mm.lab.Homodyne¶
- class mrmustard.lab.Homodyne(quadrature_angle, result=None, modes=None, r=None)[source]¶
Bases:
Generaldyne
Homodyne measurement on given modes. If
result
is not provided then the value is sampled.- Parameters:
quadrature_angle (float or List[float]) – measurement quadrature angle
result (optional float or List[float]) – displacement amount
modes (optional List[int]) – the modes of the displaced squeezed state
r (optional float or List[float]) – squeezing amount (default:
settings.HOMODYNE_SQUEEZING
)
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