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

#include <QasmCirc.h>

Collaboration diagram for qasm::QasmToCirc< Time >:

Public Member Functions

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

Protected Attributes

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

Detailed Description

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

Definition at line 21 of file QasmCirc.h.

Member Function Documentation

◆ clear()

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

Definition at line 23 of file QasmCirc.h.

References error, errorMessage, grammar, and program.

Referenced by ParseAndTranslate().

◆ Failed()

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

Definition at line 61 of file QasmCirc.h.

References error.

Referenced by SimpleEstimate(), and SimpleExecute().

◆ GetComments()

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

Definition at line 67 of file QasmCirc.h.

References program.

◆ GetErrorMessage()

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

Definition at line 63 of file QasmCirc.h.

References errorMessage.

◆ GetIncludes()

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

Definition at line 71 of file QasmCirc.h.

References program.

◆ GetVersion()

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

Definition at line 65 of file QasmCirc.h.

References program.

◆ ParseAndTranslate()

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

Member Data Documentation

◆ error

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

Definition at line 79 of file QasmCirc.h.

Referenced by clear(), Failed(), and ParseAndTranslate().

◆ errorMessage

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

Definition at line 78 of file QasmCirc.h.

Referenced by clear(), GetErrorMessage(), and ParseAndTranslate().

◆ grammar

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

Definition at line 76 of file QasmCirc.h.

Referenced by clear(), and ParseAndTranslate().

◆ program

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

Definition at line 77 of file QasmCirc.h.

Referenced by clear(), GetComments(), GetIncludes(), GetVersion(), and ParseAndTranslate().


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