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