Class Coherent¶
Defined in File BlackbirdProgram.h
Inheritance Relationships¶
Base Type¶
public blackbird::Operation
(Class Operation)
Class Documentation¶
-
class blackbird::Coherent : public blackbird::Operation¶
Represents the coherent state. For more details, see the Strawberry Fields convention page.
Displacement parameter \(\alpha\) is accessible via:
\(|\alpha|\):
Coherent->f1
\(\text{arg}(\alpha)\):
Coherent->f2
Public Functions
-
inline Coherent(floatvec displacement_phase, intvec m)¶
Constructor for the coherent class to automatically initialize a coherent state acting on mode
m
- Parameters
displacement_phase –
vector<double>
of length 2 containing the displacement magnitude and phasem – mode state is initialized on
-
inline Coherent(complexvec alpha, intvec m)¶
Constructor for the coherent class to automatically initialize a coherent state acting on mode
m
- Parameters
alpha –
vector<complex<double>>
of length 1 containing the displacement as a complex valuem – mode state is initialized on