Maestro 0.2.11
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 23 of file SimpleOps.h.

Constructor & Destructor Documentation

◆ IndexedId() [1/2]

qasm::IndexedId::IndexedId ( )
inline

Definition at line 25 of file SimpleOps.h.

References index.

◆ IndexedId() [2/2]

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

Definition at line 26 of file SimpleOps.h.

References id, and index.

◆ ~IndexedId()

qasm::IndexedId::~IndexedId ( )
inline

Definition at line 28 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

◆ 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: