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

#include <SimpleOps.h>

+ Inheritance diagram for qasm::IndexedId:
+ Collaboration diagram for qasm::IndexedId:

Public Member Functions

 IndexedId ()
 
 IndexedId (const std::string &id, int index)
 
 ~IndexedId ()
 
double Eval () const
 
virtual double Eval (const std::unordered_map< std::string, double > &variables) const
 
 operator std::string () const
 

Public Attributes

int base = 0
 
std::string declType
 
std::string id
 
int index
 

Detailed Description

Definition at line 23 of file SimpleOps.h.

Constructor & Destructor Documentation

◆ IndexedId() [1/2]

qasm::IndexedId::IndexedId ( )
inline

Definition at line 25 of file SimpleOps.h.

◆ IndexedId() [2/2]

qasm::IndexedId::IndexedId ( const std::string &  id,
int  index 
)
inline

Definition at line 26 of file SimpleOps.h.

◆ ~IndexedId()

qasm::IndexedId::~IndexedId ( )
inline

Definition at line 28 of file SimpleOps.h.

Member Function Documentation

◆ Eval() [1/2]

double qasm::IndexedId::Eval ( ) const
inlinevirtual

◆ Eval() [2/2]

virtual double qasm::AbstractSyntaxTree::Eval ( const std::unordered_map< std::string, double > &  variables) const
inlinevirtualinherited

◆ operator std::string()

qasm::IndexedId::operator std::string ( ) const
inline

Definition at line 32 of file SimpleOps.h.

References declType, and index.

Member Data Documentation

◆ base

int qasm::IndexedId::base = 0

◆ declType

std::string qasm::IndexedId::declType

◆ id

◆ index


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