|
Maestro 0.2.5
Unified interface for quantum circuit simulation
|
#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 |
Definition at line 23 of file SimpleOps.h.
|
inline |
Definition at line 25 of file SimpleOps.h.
|
inline |
Definition at line 26 of file SimpleOps.h.
|
inline |
Definition at line 28 of file SimpleOps.h.
|
inlinevirtual |
Reimplemented from qasm::AbstractSyntaxTree.
Definition at line 30 of file SimpleOps.h.
References index.
Referenced by qasm::AddCondQopExpr::operator()(), qasm::AddCregExpr::operator()(), and qasm::AddQregExpr::operator()().
|
inlinevirtualinherited |
Reimplemented in qasm::Constant, qasm::Variable, qasm::BinaryOperator, qasm::UnaryOperator, qasm::Function, and qasm::Expression.
|
inline |
Definition at line 32 of file SimpleOps.h.
| int qasm::IndexedId::base = 0 |
Definition at line 38 of file SimpleOps.h.
Referenced by qasm::AddCondQopExpr::operator()(), qasm::AddCregExpr::operator()(), and qasm::AddQregExpr::operator()().
| std::string qasm::IndexedId::declType |
Definition at line 39 of file SimpleOps.h.
Referenced by operator std::string(), qasm::AddCregExpr::operator()(), and qasm::AddQregExpr::operator()().
| std::string qasm::IndexedId::id |
Definition at line 36 of file SimpleOps.h.
Referenced by qasm::Program::AddToCircuit(), qasm::AddBarrierExpr::operator()(), qasm::AddMeasureExpr::operator()(), qasm::AddResetExpr::operator()(), qasm::AddCregExpr::operator()(), qasm::AddQregExpr::operator()(), and qasm::AddGateExpr::ParseQubits().
| int qasm::IndexedId::index |
Definition at line 37 of file SimpleOps.h.
Referenced by Eval(), operator std::string(), qasm::AddBarrierExpr::operator()(), qasm::AddMeasureExpr::operator()(), qasm::AddResetExpr::operator()(), and qasm::AddGateExpr::ParseQubits().