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

#include <Expr.h>

Inheritance diagram for qasm::Constant:
Collaboration diagram for qasm::Constant:

Public Member Functions

 Constant (double value=0)
 Constant (int value)
double Eval () const override
double Eval (const std::unordered_map< std::string, double > &variables) const override
Constant & operator= (double value)
Constant & operator= (int value)

Detailed Description

Definition at line 76 of file Expr.h.

Constructor & Destructor Documentation

◆ Constant() [1/2]

qasm::Constant::Constant ( double value = 0)
inline

Definition at line 79 of file Expr.h.

Referenced by operator=(), and operator=().

◆ Constant() [2/2]

qasm::Constant::Constant ( int value)
inline

Definition at line 83 of file Expr.h.

Member Function Documentation

◆ Eval() [1/2]

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

Reimplemented from qasm::AbstractSyntaxTree.

Definition at line 99 of file Expr.h.

◆ Eval() [2/2]

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

Reimplemented from qasm::AbstractSyntaxTree.

Definition at line 104 of file Expr.h.

◆ operator=() [1/2]

Constant & qasm::Constant::operator= ( double value)
inline

Definition at line 93 of file Expr.h.

References Constant().

◆ operator=() [2/2]

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

Definition at line 87 of file Expr.h.

References Constant().


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