Class Squeezed

Inheritance Relationships

Base Type

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_phasevector<double> of length 2 containing the squeezing magnitude and phase

  • m – 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
  • alphavector<complex> parmeters

  • m – mode state is initialized on

Throws

invalid_argumentSqueezed must have real arguments

inline Squeezed(intvec alpha, intvec m)

Constructor for the squeezed class that throws an error if integer parameters are provided.

Parameters
  • alphavector<int> integer parmeters

  • m – mode state is initialized on

Throws

invalid_argumentSqueezed must have real arguments