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

#include <SyntaxTree.h>

Public Member Functions

 Program (const ProgramType &program={})
void clear ()
template<typename Time = Types::time_type>
std::shared_ptr< Circuits::Circuit< Time > > ToCircuit (std::unordered_map< std::string, StatementType > &opaqueGates, std::unordered_map< std::string, StatementType > &definedGates) const

Static Public Member Functions

template<typename Time = Types::time_type>
static void AddToCircuit (const std::shared_ptr< Circuits::Circuit< Time > > &circuit, const StatementType &stmt, std::unordered_map< std::string, StatementType > &opaqueGates, std::unordered_map< std::string, StatementType > &definedGates)

Public Attributes

double version = 2.0
std::vector< StatementTypestatements
std::vector< std::string > comments
std::vector< std::string > includes

Detailed Description

Definition at line 559 of file SyntaxTree.h.

Constructor & Destructor Documentation

◆ Program()

qasm::Program::Program ( const ProgramType & program = {})
inline

Definition at line 565 of file SyntaxTree.h.

Member Function Documentation

◆ AddToCircuit()

template<typename Time = Types::time_type>
void qasm::Program::AddToCircuit ( const std::shared_ptr< Circuits::Circuit< Time > > & circuit,
const StatementType & stmt,
std::unordered_map< std::string, StatementType > & opaqueGates,
std::unordered_map< std::string, StatementType > & definedGates )
inlinestatic

Definition at line 593 of file SyntaxTree.h.

◆ clear()

void qasm::Program::clear ( )
inline

Definition at line 572 of file SyntaxTree.h.

◆ ToCircuit()

template<typename Time = Types::time_type>
std::shared_ptr< Circuits::Circuit< Time > > qasm::Program::ToCircuit ( std::unordered_map< std::string, StatementType > & opaqueGates,
std::unordered_map< std::string, StatementType > & definedGates ) const
inline

Definition at line 580 of file SyntaxTree.h.

Member Data Documentation

◆ comments

std::vector<std::string> qasm::Program::comments

Definition at line 562 of file SyntaxTree.h.

◆ includes

std::vector<std::string> qasm::Program::includes

Definition at line 563 of file SyntaxTree.h.

◆ statements

std::vector<StatementType> qasm::Program::statements

Definition at line 561 of file SyntaxTree.h.

◆ version

double qasm::Program::version = 2.0

Definition at line 560 of file SyntaxTree.h.


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