#include <SyntaxTree.h>
|
| virtual double | Eval () const |
| virtual double | Eval (const std::unordered_map< std::string, double > &variables) const |
| QoperationStatement | operator() (const ModifiedUopType &modifiedUop, const std::unordered_map< std::string, IndexedId > &qreg_map, const std::unordered_map< std::string, StatementType > &opaqueGates, const std::unordered_map< std::string, StatementType > &definedGates, const std::unordered_map< std::string, double > &variables={}) const |
|
| static void | ApplyCtrl (std::string &gateName, std::vector< double > ¶ms) |
| static void | ApplyInv (std::string &gateName, std::vector< double > ¶ms) |
| static void | ApplyPow (double exponent, std::string &gateName, std::vector< double > ¶ms, int &repetitions) |
| static void | Canonicalize (const UopType &uop, std::string &gateName, std::vector< double > ¶ms, MixedListType &args, const std::unordered_map< std::string, double > &variables) |
| static QoperationStatement | ConjugateNegatedControls (const QoperationStatement &gate, const std::string &gateName, const std::vector< double > ¶ms, const std::vector< size_t > &negatedControls) |
| static bool | IsControl (const ModifierType &modifier) |
| static UopType | MakeCall (const std::string &gateName, const std::vector< double > ¶ms, const MixedListType &args) |
| static std::vector< size_t > | NegatedControls (const ModifierListType &modifiers) |
| static QoperationStatement | NoOpStatement () |
| static void | NormalizeGateName (std::string &gateName) |
Definition at line 551 of file SyntaxTree.h.
◆ qasm::AddModifiedGateExpr::result
| struct qasm::AddModifiedGateExpr::result |
◆ ApplyCtrl()
| void qasm::AddModifiedGateExpr::ApplyCtrl |
( |
std::string & | gateName, |
|
|
std::vector< double > & | params ) |
|
inlinestatic |
◆ ApplyInv()
| void qasm::AddModifiedGateExpr::ApplyInv |
( |
std::string & | gateName, |
|
|
std::vector< double > & | params ) |
|
inlinestatic |
◆ ApplyPow()
| void qasm::AddModifiedGateExpr::ApplyPow |
( |
double | exponent, |
|
|
std::string & | gateName, |
|
|
std::vector< double > & | params, |
|
|
int & | repetitions ) |
|
inlinestatic |
◆ Canonicalize()
| void qasm::AddModifiedGateExpr::Canonicalize |
( |
const UopType & | uop, |
|
|
std::string & | gateName, |
|
|
std::vector< double > & | params, |
|
|
MixedListType & | args, |
|
|
const std::unordered_map< std::string, double > & | variables ) |
|
inlinestatic |
◆ ConjugateNegatedControls()
| QoperationStatement qasm::AddModifiedGateExpr::ConjugateNegatedControls |
( |
const QoperationStatement & | gate, |
|
|
const std::string & | gateName, |
|
|
const std::vector< double > & | params, |
|
|
const std::vector< size_t > & | negatedControls ) |
|
inlinestatic |
◆ Eval() [1/2]
| virtual double qasm::AbstractSyntaxTree::Eval |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ Eval() [2/2]
| virtual double qasm::AbstractSyntaxTree::Eval |
( |
const std::unordered_map< std::string, double > & | variables | ) |
const |
|
inlinevirtualinherited |
◆ IsControl()
| bool qasm::AddModifiedGateExpr::IsControl |
( |
const ModifierType & | modifier | ) |
|
|
inlinestatic |
◆ MakeCall()
| UopType qasm::AddModifiedGateExpr::MakeCall |
( |
const std::string & | gateName, |
|
|
const std::vector< double > & | params, |
|
|
const MixedListType & | args ) |
|
inlinestatic |
◆ NegatedControls()
| std::vector< size_t > qasm::AddModifiedGateExpr::NegatedControls |
( |
const ModifierListType & | modifiers | ) |
|
|
inlinestatic |
◆ NoOpStatement()
◆ NormalizeGateName()
| void qasm::AddModifiedGateExpr::NormalizeGateName |
( |
std::string & | gateName | ) |
|
|
inlinestatic |
◆ operator()()
| QoperationStatement qasm::AddModifiedGateExpr::operator() |
( |
const ModifiedUopType & | modifiedUop, |
|
|
const std::unordered_map< std::string, IndexedId > & | qreg_map, |
|
|
const std::unordered_map< std::string, StatementType > & | opaqueGates, |
|
|
const std::unordered_map< std::string, StatementType > & | definedGates, |
|
|
const std::unordered_map< std::string, double > & | variables = {} ) const |
|
inline |
The documentation for this struct was generated from the following file: