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

#include <Expr.h>

+ Inheritance diagram for qasm::BinaryOperator:
+ Collaboration diagram for qasm::BinaryOperator:

Public Member Functions

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

Detailed Description

Definition at line 145 of file Expr.h.

Constructor & Destructor Documentation

◆ BinaryOperator()

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

Definition at line 148 of file Expr.h.

Member Function Documentation

◆ Eval() [1/2]

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

Reimplemented from qasm::AbstractSyntaxTree.

Definition at line 151 of file Expr.h.

◆ Eval() [2/2]

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

Reimplemented from qasm::AbstractSyntaxTree.

Definition at line 170 of file Expr.h.


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