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

#include <Expr.h>

Inheritance diagram for qasm::Variable:
qasm::AbstractSyntaxTree

Public Member Functions

 Variable (const std::string &value="")
Variableoperator= (int value)
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 100 of file Expr.h.

Constructor & Destructor Documentation

◆ Variable()

qasm::Variable::Variable ( const std::string & value = "")
inline

Definition at line 102 of file Expr.h.

Member Function Documentation

◆ Eval() [1/2]

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

Reimplemented from qasm::AbstractSyntaxTree.

Definition at line 109 of file Expr.h.

◆ Eval() [2/2]

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

Reimplemented from qasm::AbstractSyntaxTree.

Definition at line 110 of file Expr.h.

◆ operator=()

Variable & qasm::Variable::operator= ( int value)
inline

Definition at line 104 of file Expr.h.


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