Class Sgate¶
Defined in File BlackbirdProgram.h
Inheritance Relationships¶
Base Type¶
public blackbird::Operation
(Class Operation)
Class Documentation¶
-
class blackbird::Sgate : public blackbird::Operation¶
Represents the squeeze gate. For more details, see the Strawberry Fields convention page.
Squeezing parameter \(z\) is accessible via:
\(r=|z|\):
Sgate->f1
\(\phi=\text{arg}(z)\):
Sgate->f2
Public Functions
-
inline Sgate(floatvec r_phase, intvec m)¶
Constructor to initialize a Sgate acting on mode
m
- Parameters
r_phase –
vector<double>
of length 2 containing the squeezing magnitude and phasem – mode gate acts on
-
inline Sgate(complexvec alpha, intvec m)¶
Constructor that throws an error if complex parameters are provided.
- Parameters
alpha –
vector<complex<double>>
parametersm – mode gate acts on
- Throws
invalid_argument – Operation must have real arguments