Class LossChannel

Inheritance Relationships

Base Type

Class Documentation

class blackbird::LossChannel : public blackbird::Operation

Represents the loss channel For more details, see the Strawberry Fields convention page.

Loss parameter \(T\) accessible via:

  • \(T\): LossChannel->f1

Public Functions

inline LossChannel(complexvec phi, intvec m)

Constructor that throws an error if complex parameters are provided.

Parameters
  • phivector<complex<double>> parameters

  • mvector<int> containing mode the gate acts on

Throws

invalid_argumentOperation must have real arguments

inline LossChannel(intvec phi, intvec m)

Constructor that throws an error if complex parameters are provided.

Parameters
  • phivector<complex<double>> parameters

  • mvector<int> containing mode the gate acts on

Throws

invalid_argumentOperation must have real arguments

inline LossChannel(floatvec T, intvec m)

Constructor to initialize a loss channel acting on modes m

Parameters
  • Tvector<double> of length 1 containing the parameter

  • mvector<int> containing mode the gate acts on