Class MeasureHomodyne

Inheritance Relationships

Base Type

Class Documentation

class MeasureHomodyne : public blackbird::Operation

Represents the Homodyne measurement. For more details, see the Strawberry Fields convention page.

Homodyne phase parameter \(\phi\) accessible via:

  • \(\phi\): MeasureHomodyne->f1

Public Functions

MeasureHomodyne(intvec m)

Constructor to automatically initialize a Homodyne measurement acting on mode m

By default, if no quadrature angle is provided, we assume the measurement is in X.

Parameters
  • m: vector<int> containing mode the measurement acts on

MeasureHomodyne(floatvec phi, intvec m)

Constructor to automatically initialize a Homodyne measurement acting on mode m

Parameters
  • phi: vector<double> containing the measurement phase
  • m: vector<int> containing mode the measurement acts on

MeasureHomodyne(complexvec phi, intvec m)

Constructor that throws an error if complex parameters are provided.

Parameters
  • phi: vector<double> parameters
  • m: mode measurement acts on
Exceptions
  • invalid_argument: operation must have real arguments

MeasureHomodyne(intvec phi, intvec m)

Constructor that throws an error if integer parameters are provided.

Parameters
  • phi: vector<int> parameters
  • m: mode measurement acts on
Exceptions
  • invalid_argument: operation must have real arguments