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