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