Class BSgate¶
Defined in File BlackbirdProgram.h
Inheritance Relationships¶
Base Type¶
public blackbird::Operation
(Class Operation)
Class Documentation¶
-
class blackbird::BSgate : public blackbird::Operation¶
Represents the beamsplitter. For more details, see the Strawberry Fields convention page.
Beamsplitter parameters \(\theta\) and \(\phi\) accessible via:
\(\theta\):
BSgate->f1
\(\phi\):
BSgate->f1
Public Functions
-
inline BSgate(complexvec theta_phi, intvec m)¶
Constructor that throws an error if complex parameters are provided.
- Parameters
theta_phi –
vector<complex<double>>
parametersm –
vector<int>
containing both modes the gate acts on
- Throws
invalid_argument – Operation must have real arguments