Public Member Functions | Protected Attributes | List of all members
xacc::algorithm::ADAPT Class Reference
Inheritance diagram for xacc::algorithm::ADAPT:
xacc::Algorithm xacc::Identifiable xacc::Cloneable< Algorithm >

Public Member Functions

bool initialize (const HeterogeneousMap &parameters) override
const std::vector< std::string > requiredParameters () const override
void execute (const std::shared_ptr< AcceleratorBuffer > buffer) const override
const std::string name () const override
const std::string description () const override
- Public Member Functions inherited from xacc::Algorithm
virtual std::vector< double > execute (const std::shared_ptr< AcceleratorBuffer > buffer, const std::vector< double > &parameters)
virtual double calculate (const std::string &calculation_task, const std::shared_ptr< AcceleratorBuffer > buffer, const HeterogeneousMap &extra_data={})
- Public Member Functions inherited from xacc::Identifiable
virtual ~Identifiable ()
- Public Member Functions inherited from xacc::Cloneable< Algorithm >
virtual std::shared_ptr< Algorithmclone ()=0
virtual bool shouldClone ()
virtual ~Cloneable ()

Protected Attributes

std::shared_ptr< Observableobservable
std::shared_ptr< Optimizeroptimizer
std::shared_ptr< Acceleratoraccelerator
std::shared_ptr< OperatorPoolpool
std::shared_ptr< CompositeInstructioninitialState
std::string subAlgo
HeterogeneousMap _parameters
int _maxIter = 50
double _adaptThreshold = 1.0e-2
double _printThreshold = 1.0e-10
bool _printOps = false
int _nElectrons
std::vector< int > checkpointOps
std::vector< double > checkpointParams
std::string gradStrategyName = "parameter-shift-gradient"

Member Function Documentation

const std::string xacc::algorithm::ADAPT::description ( ) const

Return the description of this instance

description The description of this object.

Implements xacc::Identifiable.

const std::string xacc::algorithm::ADAPT::name ( ) const

Return the name of this instance.

name The string name

Implements xacc::Identifiable.

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