Class Thermal¶
Defined in File BlackbirdProgram.h
Inheritance Relationships¶
Base Type¶
public blackbird::Operation
(Class Operation)
Class Documentation¶
-
class blackbird::Thermal : public blackbird::Operation¶
Represents the thermal state. For more details, see the Strawberry Fields convention page.
Mean photon number parameter \(\bar{n}\) is accessible via:
\(\bar{n}\):
Thermal->f1
Public Functions
-
inline Thermal(floatvec nbar, intvec m)¶
Constructor to automatically initialize a thermal state acting on mode
m
- Parameters
nbar –
vector<double>
of length 1 containing mean photon numberm – mode state is initialized on
- Throws
std::invalid_argument – cannot have negative thermal population (
nbar
must be >= 0)
-
inline Thermal(complexvec nbar, intvec m)¶
Constructor that throws an error if complex parameters are provided.
- Parameters
nbar –
vector<complex>
parametersm – mode state is initialized on
- Throws
invalid_argument – Operation must have real arguments