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

#include <Expr.h>

Inheritance diagram for qasm::UnaryOperator:
qasm::AbstractSyntaxTree

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
Public Member Functions inherited from qasm::AbstractSyntaxTree
virtual ~AbstractSyntaxTree ()=default

Additional Inherited Members

Protected Member Functions inherited from qasm::AbstractSyntaxTree
 AbstractSyntaxTree ()=default
 AbstractSyntaxTree (const AbstractSyntaxTree &)=default
 AbstractSyntaxTree (AbstractSyntaxTree &&)=default
AbstractSyntaxTreeoperator= (const AbstractSyntaxTree &)=default
AbstractSyntaxTreeoperator= (AbstractSyntaxTree &&)=default

Detailed Description

Definition at line 198 of file Expr.h.

Constructor & Destructor Documentation

◆ UnaryOperator() [1/2]

qasm::UnaryOperator::UnaryOperator ( )
inline

Definition at line 200 of file Expr.h.

◆ UnaryOperator() [2/2]

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

Definition at line 203 of file Expr.h.

Member Function Documentation

◆ Eval() [1/2]

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

Reimplemented from qasm::AbstractSyntaxTree.

Definition at line 205 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 218 of file Expr.h.


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