sf.ops.MeasureX

MeasureX = <strawberryfields.ops.MeasureHomodyne object>

Performs a homodyne measurement, measures one quadrature of a mode.

  • Position basis measurement: \(\phi = 0\) (also accessible via the shortcut variable MeasureX).

  • Momentum basis measurement: \(\phi = \pi/2\). (also accessible via the shortcut variable MeasureP)

The measured mode is reset to the vacuum state.

Parameters
  • phi (float) – measurement angle \(\phi\)

  • select (None, float) – (Optional) desired values of measurement result. Allows the post-selection of specific measurement results instead of randomly sampling.