Class Squeezed

Inheritance Relationships

Base Type

Class Documentation

class 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

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 phase
  • m: mode state is initialized on

Squeezed(complexvec alpha, intvec m)

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

Parameters
  • alpha: vector<complex> parmeters
  • m: mode state is initialized on
Exceptions
  • invalid_argument: Squeezed must have real arguments

Squeezed(intvec alpha, intvec m)

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

Parameters
  • alpha: vector<int> integer parmeters
  • m: mode state is initialized on
Exceptions
  • invalid_argument: Squeezed must have real arguments