|
Maestro 0.3.1
Unified interface for quantum circuit simulation
|
#include <SimpleOps.h>
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 |
Definition at line 27 of file SimpleOps.h.
|
inline |
Definition at line 29 of file SimpleOps.h.
References index.
|
inline |
Definition at line 30 of file SimpleOps.h.
|
inline |
Definition at line 32 of file SimpleOps.h.
|
inlinevirtualinherited |
Reimplemented in qasm::BinaryOperator, qasm::Constant, qasm::Expression, qasm::Function, qasm::UnaryOperator, and qasm::Variable.
|
inlinevirtual |
Reimplemented from qasm::AbstractSyntaxTree.
Definition at line 34 of file SimpleOps.h.
References index.
|
inline |
Definition at line 36 of file SimpleOps.h.
| int qasm::IndexedId::base = 0 |
Definition at line 42 of file SimpleOps.h.
Referenced by qasm::AddCregExpr::operator()(), qasm::AddQregExpr::operator()(), and qasm::ResolveRegisterOperand().
| std::string qasm::IndexedId::declType |
Definition at line 43 of file SimpleOps.h.
Referenced by operator std::string(), qasm::AddCregExpr::operator()(), qasm::AddInputDeclExpr::operator()(), and qasm::AddQregExpr::operator()().
| std::string qasm::IndexedId::id |
Definition at line 40 of file SimpleOps.h.
Referenced by IndexedId(), qasm::Program::AddToCircuit(), qasm::AddCregExpr::operator()(), and qasm::AddQregExpr::operator()().
| int qasm::IndexedId::index |
Definition at line 41 of file SimpleOps.h.
Referenced by IndexedId(), IndexedId(), Eval(), operator std::string(), and qasm::ResolveRegisterOperand().