XACC
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
xacc::quantum::DWAccelerator Class Reference
Inheritance diagram for xacc::quantum::DWAccelerator:
xacc::RemoteAccelerator xacc::Accelerator xacc::Identifiable

Public Member Functions

 DWAccelerator (std::shared_ptr< Client > client)
 
std::vector< std::pair< int, int > > getConnectivity () override
 
const std::string getSignature () override
 
const std::string processInput (std::shared_ptr< AcceleratorBuffer > buffer, std::vector< std::shared_ptr< CompositeInstruction >> functions) override
 
void processResponse (std::shared_ptr< AcceleratorBuffer > buffer, const std::string &response) override
 
void execute (std::shared_ptr< AcceleratorBuffer > buffer, const std::vector< std::shared_ptr< CompositeInstruction >> functions) override
 
void initialize (const HeterogeneousMap &params={}) override
 
void updateConfiguration (const HeterogeneousMap &config) override
 
const std::vector< std::string > configurationKeys () override
 
const std::string name () const override
 
const std::string description () const override
 
- Public Member Functions inherited from xacc::RemoteAccelerator
 RemoteAccelerator (std::shared_ptr< Client > client)
 
void execute (std::shared_ptr< AcceleratorBuffer > buffer, const std::shared_ptr< CompositeInstruction > circuit) override
 
bool isRemote () override
 
void setClient (std::shared_ptr< Client > client)
 
- Public Member Functions inherited from xacc::Accelerator
virtual void updateConfiguration (const HeterogeneousMap &&config)
 
virtual HeterogeneousMap getProperties ()
 
virtual void contributeInstructions (const std::string &custom_json_config="")
 
virtual const std::string defaultPlacementTransformation ()
 
virtual BitOrder getBitOrder ()
 
virtual void cancel ()
 
virtual const std::vector< std::complex< double > > getAcceleratorState (std::shared_ptr< CompositeInstruction > program)
 
- Public Member Functions inherited from xacc::Identifiable
virtual ~Identifiable ()
 

Protected Member Functions

void searchAPIKey (std::string &key, std::string &url)
 
void findApiKeyInFile (std::string &key, std::string &url, const std::string &p)
 
- Protected Member Functions inherited from xacc::RemoteAccelerator
std::string handleExceptionRestClientPost (const std::string &_url, const std::string &path, const std::string &postStr, std::map< std::string, std::string > headers)
 
std::string handleExceptionRestClientGet (const std::string &_url, const std::string &path, std::map< std::string, std::string > headers=std::map< std::string, std::string >{}, std::map< std::string, std::string > extraParams={})
 

Protected Attributes

int shots = 1000
 
std::string backend = "DW_2000Q_5"
 
std::string apiKey
 
std::string url
 
std::map< std::string, DWSolveravailableSolvers
 
sapi_Connection * connection = nullptr
 
sapi_Solver * solver = nullptr
 
const sapi_SolverProperties * solver_properties = nullptr
 
- Protected Attributes inherited from xacc::RemoteAccelerator
std::shared_ptr< ClientrestClient
 
std::string postPath
 
std::string remoteUrl
 
std::map< std::string, std::string > headers
 

Additional Inherited Members

- Public Types inherited from xacc::Accelerator
enum  BitOrder { LSB, MSB }
 

Member Function Documentation

const std::string xacc::quantum::DWAccelerator::description ( ) const
inlineoverridevirtual

Return the description of this instance

Returns
description The description of this object.

Implements xacc::Identifiable.

const std::string xacc::quantum::DWAccelerator::name ( ) const
inlineoverridevirtual

Return the name of this instance.

Returns
name The string name

Implements xacc::Identifiable.


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