Class ThermalLossChannel¶
Defined in File BlackbirdProgram.h
Inheritance Relationships¶
Base Type¶
public blackbird::Operation
(Class Operation)
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
phi –
vector<complex<double>>
parametersm –
vector<int>
containing mode the gate acts on
- Throws
invalid_argument – Operation must have real arguments