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

#include <Expr.h>

Inheritance diagram for qasm::Expression:
qasm::AbstractSyntaxTree

Public Member Functions

 Expression ()
 ~Expression () override
template<typename E>
 Expression (E const &e)
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

Friends

AbstractSyntaxTreePtr Clone (Expression const &e)

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 312 of file Expr.h.

Constructor & Destructor Documentation

◆ Expression() [1/2]

qasm::Expression::Expression ( )
inline

Definition at line 314 of file Expr.h.

◆ ~Expression()

qasm::Expression::~Expression ( )
inlineoverride

Definition at line 315 of file Expr.h.

◆ Expression() [2/2]

template<typename E>
qasm::Expression::Expression ( E const & e)
inline

Definition at line 317 of file Expr.h.

Member Function Documentation

◆ Eval() [1/2]

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

Reimplemented from qasm::AbstractSyntaxTree.

Definition at line 319 of file Expr.h.

◆ Eval() [2/2]

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

Reimplemented from qasm::AbstractSyntaxTree.

Definition at line 321 of file Expr.h.

◆ Clone

AbstractSyntaxTreePtr Clone ( Expression const & e)
friend

Definition at line 326 of file Expr.h.


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