Class Fock

Inheritance Relationships

Base Type

Class Documentation

class Fock : public blackbird::Operation

Represents a Fock state. For more details, see the Strawberry Fields convention page.

Photon number \(n\) is accessible via:

  • \(n\): Fock->i1

Public Functions

Fock(intvec n, intvec m)

Constructor to automatically initialize a Fock state acting on mode m

Parameters
  • n: vector<double> of length 1 containing photon number
  • m: mode state is initialized on
Exceptions
  • std::invalid_argument: cannot have negative Fock state (n < 0)

Fock(floatvec n, intvec m)

Constructor that throws an error if real parameters are provided.

Parameters
  • n: vector<double> parameters
  • m: mode state is initialized on
Exceptions
  • invalid_argument: Operation must have integer arguments

Fock(complexvec n, intvec m)

Constructor that throws an error if complex parameters are provided.

Parameters
  • n: vector<complex> parameters
  • m: mode state is initialized on
Exceptions
  • invalid_argument: Operation must have integer arguments