Class Catstate¶
Defined in File BlackbirdProgram.h
Inheritance Relationships¶
Base Type¶
public blackbird::Operation
(Class Operation)
Class Documentation¶
-
class blackbird::Catstate : public blackbird::Operation¶
Represents the cat state. For more details, see the Strawberry Fields convention page.
Cat state parameters \(\alpha\) and \(p\) (parity) is accessible via:
\(|\alpha|\):
Catstate->f1
\(\text{arg}(\alpha)\):
Catstate->f2
\(p\):
Catstate->f3
Public Functions
-
inline Catstate(complexvec alpha, intvec m, float parity = 0.)¶
Constructor to automatically initialize a cat state acting on mode
m
- Parameters
alpha –
vector<complex>
of length 2 containing displacementm – mode state is initialized on
parity –
float
parity of the cat state