XACC
Public Member Functions | List of all members
xacc::quantum::QuilCompiler Class Reference
Inheritance diagram for xacc::quantum::QuilCompiler:
xacc::Compiler xacc::OptionsProvider xacc::Identifiable

Public Member Functions

virtual std::shared_ptr< xacc::IRcompile (const std::string &src, std::shared_ptr< Accelerator > acc)
 
bool canParse (const std::string &src) override
 
virtual std::shared_ptr< xacc::IRcompile (const std::string &src)
 
virtual const std::string translate (std::shared_ptr< CompositeInstruction > function)
 
virtual const std::string name () const
 
virtual const std::string description () const
 
virtual ~QuilCompiler ()
 
- Public Member Functions inherited from xacc::Compiler
virtual const std::string get_statement_terminator ()
 
virtual const std::string translate (std::shared_ptr< CompositeInstruction > program, HeterogeneousMap &options)
 
virtual const std::string translate (std::shared_ptr< CompositeInstruction > program, HeterogeneousMap &&options)
 
virtual const std::shared_ptr< CompositeInstructioncompile (std::shared_ptr< CompositeInstruction > f, std::shared_ptr< Accelerator > acc)
 
virtual std::vector< std::string > getKernelBufferNames (const std::string &src)
 
virtual OptionPairs getOptions ()
 
virtual bool handleOptions (const std::map< std::string, std::string > &arg_map)
 
- Public Member Functions inherited from xacc::OptionsProvider
virtual ~OptionsProvider ()
 
- Public Member Functions inherited from xacc::Identifiable
virtual ~Identifiable ()
 

Constructor & Destructor Documentation

virtual xacc::quantum::QuilCompiler::~QuilCompiler ( )
inlinevirtual

The destructor

Member Function Documentation

std::shared_ptr< IR > xacc::quantum::QuilCompiler::compile ( const std::string &  src,
std::shared_ptr< Accelerator acc 
)
virtual

Translate Quil to the XACC intermediate representation.

Returns
ir XACC intermediate representation

Implements xacc::Compiler.

std::shared_ptr< IR > xacc::quantum::QuilCompiler::compile ( const std::string &  src)
virtual
Parameters
src
Returns

Implements xacc::Compiler.

virtual const std::string xacc::quantum::QuilCompiler::description ( ) const
inlinevirtual

Return the description of this instance

Returns
description The description of this object.

Implements xacc::Identifiable.

virtual const std::string xacc::quantum::QuilCompiler::name ( ) const
inlinevirtual

Return the name of this instance.

Returns
name The string name

Implements xacc::Identifiable.

const std::string xacc::quantum::QuilCompiler::translate ( std::shared_ptr< CompositeInstruction function)
virtual

This produces a Quil source code representation of the given IR Function

Parameters
functionThe XACC IR Function to translate
Returns
src The source code as a string

Implements xacc::Compiler.


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