|
Maestro 0.3.1
Unified interface for quantum circuit simulation
|
#include <SimpleOps.h>
Public Types | |
| enum class | OperationType { Comment , Declaration , Barrier , Measurement , Reset , OpaqueDecl , GateDecl , Uop , CondUop , Delay } |
Public Member Functions | |
| virtual double | Eval () const |
| virtual double | Eval (const std::unordered_map< std::string, double > &variables) const |
Public Attributes | |
| std::vector< int > | cbits |
| std::string | comment |
| std::vector< int > | condBits |
| std::vector< bool > | condExpected |
| IndexedId | declaration |
| std::vector< UopType > | declOps |
| Circuits::QuantumGateType | gateType = Circuits::QuantumGateType::kNone |
| OperationType | opType = OperationType::Comment |
| std::vector< double > | parameters |
| std::vector< std::string > | paramsDecl |
| std::vector< int > | qubits |
| std::vector< std::string > | qubitsDecl |
Definition at line 257 of file SimpleOps.h.
|
strong |
| Enumerator | |
|---|---|
| Comment | |
| Declaration | |
| Barrier | |
| Measurement | |
| Reset | |
| OpaqueDecl | |
| GateDecl | |
| Uop | |
| CondUop | |
| Delay | |
Definition at line 258 of file SimpleOps.h.
|
inlinevirtualinherited |
Reimplemented in qasm::BinaryOperator, qasm::Constant, qasm::Expression, qasm::Function, qasm::IndexedId, qasm::UnaryOperator, and qasm::Variable.
|
inlinevirtualinherited |
Reimplemented in qasm::BinaryOperator, qasm::Constant, qasm::Expression, qasm::Function, qasm::UnaryOperator, and qasm::Variable.
| std::vector<int> qasm::QoperationStatement::cbits |
Definition at line 279 of file SimpleOps.h.
Referenced by qasm::Program::AddToCircuit(), qasm::ApplyCondition(), and qasm::AddMeasureExpr::operator()().
| std::string qasm::QoperationStatement::comment |
Definition at line 274 of file SimpleOps.h.
Referenced by qasm::AddCommentExpr::operator()(), qasm::AddGateDeclExpr::operator()(), and qasm::AddOpaqueDeclExpr::operator()().
| std::vector<int> qasm::QoperationStatement::condBits |
Definition at line 290 of file SimpleOps.h.
Referenced by qasm::Program::AddToCircuit(), and qasm::ApplyCondition().
| std::vector<bool> qasm::QoperationStatement::condExpected |
Definition at line 288 of file SimpleOps.h.
Referenced by qasm::Program::AddToCircuit(), and qasm::ApplyCondition().
| IndexedId qasm::QoperationStatement::declaration |
Definition at line 276 of file SimpleOps.h.
Referenced by qasm::AddDeclarationExpr::operator()(), and qasm::AddInputDeclExpr::operator()().
| std::vector<UopType> qasm::QoperationStatement::declOps |
Definition at line 291 of file SimpleOps.h.
Referenced by qasm::Program::AddToCircuit(), qasm::AddModifiedGateExpr::ConjugateNegatedControls(), and qasm::AddGateDeclExpr::operator()().
| Circuits::QuantumGateType qasm::QoperationStatement::gateType = Circuits::QuantumGateType::kNone |
Definition at line 272 of file SimpleOps.h.
Referenced by qasm::Program::AddToCircuit(), qasm::AddModifiedGateExpr::ConjugateNegatedControls(), and qasm::AddModifiedGateExpr::NoOpStatement().
| OperationType qasm::QoperationStatement::opType = OperationType::Comment |
Definition at line 271 of file SimpleOps.h.
Referenced by qasm::Program::AddToCircuit(), qasm::ApplyCondition(), qasm::AddModifiedGateExpr::ConjugateNegatedControls(), qasm::AddModifiedGateExpr::NoOpStatement(), qasm::AddBarrierExpr::operator()(), qasm::AddCommentExpr::operator()(), qasm::AddDeclarationExpr::operator()(), qasm::AddDelayExpr::operator()(), qasm::AddGateDeclExpr::operator()(), qasm::AddInputDeclExpr::operator()(), qasm::AddMeasureExpr::operator()(), qasm::AddOpaqueDeclExpr::operator()(), and qasm::AddResetExpr::operator()().
| std::vector<double> qasm::QoperationStatement::parameters |
Definition at line 281 of file SimpleOps.h.
Referenced by qasm::Program::AddToCircuit(), and qasm::AddDelayExpr::operator()().
| std::vector<std::string> qasm::QoperationStatement::paramsDecl |
Definition at line 283 of file SimpleOps.h.
Referenced by qasm::Program::AddToCircuit(), qasm::AddGateDeclExpr::operator()(), and qasm::AddOpaqueDeclExpr::operator()().
| std::vector<int> qasm::QoperationStatement::qubits |
Definition at line 278 of file SimpleOps.h.
Referenced by qasm::Program::AddToCircuit(), qasm::AddModifiedGateExpr::ConjugateNegatedControls(), qasm::AddBarrierExpr::operator()(), qasm::AddDelayExpr::operator()(), qasm::AddMeasureExpr::operator()(), and qasm::AddResetExpr::operator()().
| std::vector<std::string> qasm::QoperationStatement::qubitsDecl |
Definition at line 284 of file SimpleOps.h.
Referenced by qasm::Program::AddToCircuit(), qasm::AddModifiedGateExpr::ConjugateNegatedControls(), qasm::AddGateDeclExpr::operator()(), and qasm::AddOpaqueDeclExpr::operator()().