Class ThermalLossChannel

Inheritance Relationships

Base Type

Class Documentation

class blackbird::ThermalLossChannel : public blackbird::Operation

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

Loss parameter \(T\) and mean thermal population \(\bar{n}\) accessible via:

  • \(T\): ThermalLossChannel->f1

  • \(\bar{n}\): ThermalLossChannel->f2

Public Functions

inline ThermalLossChannel(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 ThermalLossChannel(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 ThermalLossChannel(floatvec T, intvec m)

Constructor to initialize a thermal loss channel acting on modes m

Parameters
  • Tvector<double> of length 2 containing the parameter and thermal population

  • mvector<int> containing mode the gate acts on