Maestro 0.1.0
Unified interface for quantum circuit simulation
Loading...
Searching...
No Matches
qasm::AddGateExpr Struct Reference

#include <SyntaxTree.h>

Inheritance diagram for qasm::AddGateExpr:
qasm::AbstractSyntaxTree

Classes

struct  result

Public Member Functions

QoperationStatement operator() (const UopType &uop, 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
Circuits::QuantumGateType GetGateType (const std::string &gateN) const
Public Member Functions inherited from qasm::AbstractSyntaxTree
virtual ~AbstractSyntaxTree ()=default
virtual double Eval () const
virtual double Eval (const std::unordered_map< std::string, double > &variables) const

Static Public Member Functions

static std::vector< int > ParseQubits (const ArgumentType &arg, const std::unordered_map< std::string, IndexedId > &qreg_map)
static bool IsSuppportedNoParamGate (const std::string &gateName)
static bool IsSuppportedOneParamGate (const std::string &gateName)
static bool IsSuppportedMultipleParamsGate (const std::string &gateName)
static bool IsSuppportedGate (const std::string &gateName)
static int GateNrQubits (Circuits::QuantumGateType gateType)

Additional Inherited Members

Protected Member Functions inherited from qasm::AbstractSyntaxTree
 AbstractSyntaxTree ()=default
 AbstractSyntaxTree (const AbstractSyntaxTree &)=default
 AbstractSyntaxTree (AbstractSyntaxTree &&)=default
AbstractSyntaxTreeoperator= (const AbstractSyntaxTree &)=default
AbstractSyntaxTreeoperator= (AbstractSyntaxTree &&)=default

Detailed Description

Definition at line 21 of file SyntaxTree.h.

Member Function Documentation

◆ GateNrQubits()

int qasm::AddGateExpr::GateNrQubits ( Circuits::QuantumGateType gateType)
inlinestatic

Definition at line 494 of file SyntaxTree.h.

◆ GetGateType()

Circuits::QuantumGateType qasm::AddGateExpr::GetGateType ( const std::string & gateN) const
inline

Definition at line 424 of file SyntaxTree.h.

◆ IsSuppportedGate()

bool qasm::AddGateExpr::IsSuppportedGate ( const std::string & gateName)
inlinestatic

Definition at line 417 of file SyntaxTree.h.

◆ IsSuppportedMultipleParamsGate()

bool qasm::AddGateExpr::IsSuppportedMultipleParamsGate ( const std::string & gateName)
inlinestatic

Definition at line 412 of file SyntaxTree.h.

◆ IsSuppportedNoParamGate()

bool qasm::AddGateExpr::IsSuppportedNoParamGate ( const std::string & gateName)
inlinestatic

Definition at line 404 of file SyntaxTree.h.

◆ IsSuppportedOneParamGate()

bool qasm::AddGateExpr::IsSuppportedOneParamGate ( const std::string & gateName)
inlinestatic

Definition at line 408 of file SyntaxTree.h.

◆ operator()()

QoperationStatement qasm::AddGateExpr::operator() ( const UopType & uop,
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

Definition at line 26 of file SyntaxTree.h.

◆ ParseQubits()

std::vector< int > qasm::AddGateExpr::ParseQubits ( const ArgumentType & arg,
const std::unordered_map< std::string, IndexedId > & qreg_map )
inlinestatic

Definition at line 378 of file SyntaxTree.h.


The documentation for this struct was generated from the following file: