Maestro 0.2.11
Unified interface for quantum circuit simulation
Loading...
Searching...
No Matches
qasm::UnaryOperator Class Reference

#include <Expr.h>

Inheritance diagram for qasm::UnaryOperator:
Collaboration diagram for qasm::UnaryOperator:

Public Member Functions

 UnaryOperator ()
template<typename R>
 UnaryOperator (char op, const R &right)
double Eval () const override
double Eval (const std::unordered_map< std::string, double > &variables) const override

Detailed Description

Definition at line 209 of file Expr.h.

Constructor & Destructor Documentation

◆ UnaryOperator() [1/2]

qasm::UnaryOperator::UnaryOperator ( )
inline

Definition at line 211 of file Expr.h.

◆ UnaryOperator() [2/2]

template<typename R>
qasm::UnaryOperator::UnaryOperator ( char op,
const R & right )
inline

Definition at line 214 of file Expr.h.

References qasm::Clone().

Member Function Documentation

◆ Eval() [1/2]

double qasm::UnaryOperator::Eval ( ) const
inlineoverridevirtual

Reimplemented from qasm::AbstractSyntaxTree.

Definition at line 216 of file Expr.h.

◆ Eval() [2/2]

double qasm::UnaryOperator::Eval ( const std::unordered_map< std::string, double > & variables) const
inlineoverridevirtual

Reimplemented from qasm::AbstractSyntaxTree.

Definition at line 229 of file Expr.h.


The documentation for this class was generated from the following file: