Class Zgate

Inheritance Relationships

Base Type

Class Documentation

class blackbird::Zgate : public blackbird::Operation

Represents the momentum displacement gate. For more details, see the Strawberry Fields convention page.

Momentum displacement gate parameter \(z\) accessible via:

  • \(z\): Zgate->f1

Public Functions

inline Zgate(complexvec z, intvec m)

Constructor that throws an error if complex parameters are provided.

Parameters
  • zvector<complex<double>> parameters

  • m – mode gate acts on

Throws

invalid_argumentOperation must have real arguments

inline Zgate(intvec z, intvec m)

Constructor that throws an error if integer parameters are provided.

Parameters
  • zvector<int> parameters

  • m – mode gate acts on

Throws

invalid_argumentOperation must have real arguments

inline Zgate(floatvec z, intvec m)

Constructor to initialize a Zgate acting on mode m

Parameters
  • zvector<double> of length 1 containing the momentum displacement

  • m – mode gate acts on