Maestro 0.3.1
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 ()
virtual double Eval (const std::unordered_map< std::string, double > &variables) const
double Eval () const
 operator std::string () const

Public Attributes

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

Detailed Description

Definition at line 27 of file SimpleOps.h.

Constructor & Destructor Documentation

◆ IndexedId() [1/2]

qasm::IndexedId::IndexedId ( )
inline

Definition at line 29 of file SimpleOps.h.

References index.

◆ IndexedId() [2/2]

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

Definition at line 30 of file SimpleOps.h.

References id, and index.

◆ ~IndexedId()

qasm::IndexedId::~IndexedId ( )
inline

Definition at line 32 of file SimpleOps.h.

Member Function Documentation

◆ Eval() [1/2]

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

◆ Eval() [2/2]

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

Reimplemented from qasm::AbstractSyntaxTree.

Definition at line 34 of file SimpleOps.h.

References index.

◆ operator std::string()

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

Definition at line 36 of file SimpleOps.h.

References declType, and index.

Member Data Documentation

◆ base

int qasm::IndexedId::base = 0

◆ declType

std::string qasm::IndexedId::declType

◆ id

std::string qasm::IndexedId::id

◆ index

int qasm::IndexedId::index

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