Class Zgate¶
Defined in File BlackbirdProgram.h
Inheritance Relationships¶
Base Type¶
public blackbird::Operation
(Class Operation)
Class Documentation¶
-
class blackbird::Zgate : public blackbird::Operation¶
Represents the momentum displacement gate. For more details, see the Strawberry Fields convention page.
Momentum displacement gate parameter \(z\) accessible via:
\(z\):
Zgate->f1
Public Functions
-
inline Zgate(complexvec z, intvec m)¶
Constructor that throws an error if complex parameters are provided.
- Parameters
z –
vector<complex<double>>
parametersm – mode gate acts on
- Throws
invalid_argument – Operation must have real arguments