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