Maestro 0.1.0
Unified interface for quantum circuit simulation
Loading...
Searching...
No Matches
qasm::QasmToCirc< Time > Class Template Reference

#include <QasmCirc.h>

Public Member Functions

void clear ()
std::shared_ptr< Circuits::Circuit< Time > > ParseAndTranslate (std::string &qasmInput)
bool Failed () const
const std::string & GetErrorMessage () const
double GetVersion () const
const std::vector< std::string > & GetComments () const
const std::vector< std::string > & GetIncludes () const

Protected Attributes

qasm::QasmGrammar grammar
qasm::Program program
std::string errorMessage
bool error = false

Detailed Description

template<typename Time = Types::time_type>
class qasm::QasmToCirc< Time >

Definition at line 19 of file QasmCirc.h.

Member Function Documentation

◆ clear()

template<typename Time = Types::time_type>
void qasm::QasmToCirc< Time >::clear ( )
inline

Definition at line 21 of file QasmCirc.h.

◆ Failed()

template<typename Time = Types::time_type>
bool qasm::QasmToCirc< Time >::Failed ( ) const
inline

Definition at line 57 of file QasmCirc.h.

◆ GetComments()

template<typename Time = Types::time_type>
const std::vector< std::string > & qasm::QasmToCirc< Time >::GetComments ( ) const
inline

Definition at line 63 of file QasmCirc.h.

◆ GetErrorMessage()

template<typename Time = Types::time_type>
const std::string & qasm::QasmToCirc< Time >::GetErrorMessage ( ) const
inline

Definition at line 59 of file QasmCirc.h.

◆ GetIncludes()

template<typename Time = Types::time_type>
const std::vector< std::string > & qasm::QasmToCirc< Time >::GetIncludes ( ) const
inline

Definition at line 67 of file QasmCirc.h.

◆ GetVersion()

template<typename Time = Types::time_type>
double qasm::QasmToCirc< Time >::GetVersion ( ) const
inline

Definition at line 61 of file QasmCirc.h.

◆ ParseAndTranslate()

template<typename Time = Types::time_type>
std::shared_ptr< Circuits::Circuit< Time > > qasm::QasmToCirc< Time >::ParseAndTranslate ( std::string & qasmInput)
inline

Definition at line 29 of file QasmCirc.h.

Member Data Documentation

◆ error

template<typename Time = Types::time_type>
bool qasm::QasmToCirc< Time >::error = false
protected

Definition at line 75 of file QasmCirc.h.

◆ errorMessage

template<typename Time = Types::time_type>
std::string qasm::QasmToCirc< Time >::errorMessage
protected

Definition at line 74 of file QasmCirc.h.

◆ grammar

template<typename Time = Types::time_type>
qasm::QasmGrammar qasm::QasmToCirc< Time >::grammar
protected

Definition at line 72 of file QasmCirc.h.

◆ program

template<typename Time = Types::time_type>
qasm::Program qasm::QasmToCirc< Time >::program
protected

Definition at line 73 of file QasmCirc.h.


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