Class LossChannel

Inheritance Relationships

Base Type

Class Documentation

class 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

LossChannel(complexvec phi, intvec m)

Constructor that throws an error if complex parameters are provided.

Parameters
  • phi: vector<complex<double>> parameters
  • m: vector<int> containing mode the gate acts on
Exceptions
  • invalid_argument: Operation must have real arguments

LossChannel(intvec phi, intvec m)

Constructor that throws an error if complex parameters are provided.

Parameters
  • phi: vector<complex<double>> parameters
  • m: vector<int> containing mode the gate acts on
Exceptions
  • invalid_argument: Operation must have real arguments

LossChannel(floatvec T, intvec m)

Constructor to initialize a loss channel acting on modes m

Parameters
  • T: vector<double> of length 1 containing the parameter
  • m: vector<int> containing mode the gate acts on