Class S2gate¶
Defined in File BlackbirdProgram.h
Inheritance Relationships¶
Base Type¶
public blackbird::Operation
(Class Operation)
Class Documentation¶
-
class blackbird::S2gate : public blackbird::Operation¶
Represents the two mode squeezing gate. For more details, see the Strawberry Fields convention page.
Squeezing parameter \(z\) accessible via:
\(r=|z|\):
S2gate->f1
\(\phi=\text{arg}(z)\):
S2gate->f2
Public Functions
-
inline S2gate(complexvec r_phi, intvec m)¶
Constructor that throws an error if complex parameters are provided.
- Parameters
r_phi –
vector<complex<double>>
parametersm –
vector<int>
containing both modes the gate acts on
- Throws
invalid_argument – Operation must have real arguments