Class MeasureHomodyne¶
Defined in File BlackbirdProgram.h
Inheritance Relationships¶
Base Type¶
public blackbird::Operation
(Class Operation)
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
m –
vector<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
phi –
vector<double>
containing the measurement phasem –
vector<int>
containing mode the measurement acts on
-
inline MeasureHomodyne(complexvec phi, intvec m)¶
Constructor that throws an error if complex parameters are provided.
- Parameters
phi –
vector<double>
parametersm – mode measurement acts on
- Throws
invalid_argument – operation must have real arguments