Class MeasureHomodyne

Inheritance Relationships

Base Type

Class Documentation

class blackbird::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

inline 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

mvector<int> containing mode the measurement acts on

inline MeasureHomodyne(floatvec phi, intvec m)

Constructor to automatically initialize a Homodyne measurement acting on mode m

Parameters
  • phivector<double> containing the measurement phase

  • mvector<int> containing mode the measurement acts on

inline MeasureHomodyne(complexvec phi, intvec m)

Constructor that throws an error if complex parameters are provided.

Parameters
  • phivector<double> parameters

  • m – mode measurement acts on

Throws

invalid_argument – operation must have real arguments

inline MeasureHomodyne(intvec phi, intvec m)

Constructor that throws an error if integer parameters are provided.

Parameters
  • phivector<int> parameters

  • m – mode measurement acts on

Throws

invalid_argument – operation must have real arguments