Maestro 0.2.5
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()

◆ Failed()

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

Definition at line 61 of file QasmCirc.h.

References qasm::QasmToCirc< Time >::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 qasm::Program::comments, and qasm::QasmToCirc< Time >::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 qasm::QasmToCirc< Time >::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 qasm::Program::includes, and qasm::QasmToCirc< Time >::program.

◆ GetVersion()

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

Definition at line 65 of file QasmCirc.h.

References qasm::QasmToCirc< Time >::program, and qasm::Program::version.

◆ 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

◆ errorMessage

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

◆ grammar

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

◆ program


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