Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
xacc::quantum::AnnealingProgram Class Reference
Inheritance diagram for xacc::quantum::AnnealingProgram:
xacc::CompositeInstruction xacc::Instruction xacc::Persistable xacc::BaseInstructionVisitable xacc::Identifiable xacc::Cloneable< Instruction > xacc::dwave::RBM

Public Member Functions

 AnnealingProgram (std::string kernelName)
 AnnealingProgram (std::string kernelName, std::vector< std::string > p)
void applyRuntimeArguments () override
std::shared_ptr< CompositeInstructionenabledView () override
const std::string getTag () override
void setTag (const std::string &t) override
const int nInstructions () override
const int nChildren () override
void mapBits (std::vector< std::size_t > bitMap) override
void removeDisabled () override
void setBitExpression (const std::size_t bit_idx, const std::string expr) override
std::string getBitExpression (const std::size_t bit_idx) override
const int nRequiredBits () const override
InstPtr getInstruction (const std::size_t idx) override
std::vector< InstPtr > getInstructions () override
void removeInstruction (const std::size_t idx) override
void replaceInstruction (const std::size_t idx, InstPtr newInst) override
void insertInstruction (const std::size_t idx, InstPtr newInst) override
void addInstruction (InstPtr instruction) override
void addInstructions (std::vector< InstPtr > &insts) override
void addInstructions (const std::vector< InstPtr > &insts) override
const int depth () override
void clear () override
const std::string persistGraph () override
std::shared_ptr< GraphtoGraph () override
const std::string name () const override
const std::string description () const override
void setName (const std::string name) override
const std::vector< std::size_t > bits () override
const std::string toString () override
const std::size_t nLogicalBits () override
const std::size_t nPhysicalBits () override
const std::set< std::size_t > uniqueBits () override
std::vector< double > getAllBiases ()
std::string getBufferName (const std::size_t bitIdx) override
void setBufferNames (const std::vector< std::string > bufferNamesPerIdx) override
std::vector< std::string > getBufferNames () override
std::vector< double > getAllCouplers ()
void persist (std::ostream &outStream) override
void load (std::istream &inStream) override
const InstructionParameter getParameter (const std::size_t idx) const override
void setParameter (const std::size_t idx, InstructionParameter &p) override
std::vector< InstructionParametergetParameters () override
const int nParameters () override
bool isParameterized () override
std::shared_ptr< CompositeInstructionoperator() (const std::vector< double > &params) override
void setCoefficient (const std::complex< double > c) override
const std::complex< double > getCoefficient () override
const std::vector< std::string > requiredKeys () override
void setBits (const std::vector< std::size_t > bits) override
bool hasChildren () const override
bool expand (const HeterogeneousMap &runtimeOptions) override
void addVariable (const std::string variableName) override
void addVariables (const std::vector< std::string > &vars) override
const std::vector< std::string > getVariables () override
void replaceVariable (const std::string variable, const std::string newVariable) override
const std::size_t nVariables () override
const std::string accelerator_signature () override
void set_accelerator_signature (const std::string signature) override
std::shared_ptr< Instructionclone () override
- Public Member Functions inherited from xacc::CompositeInstruction
 CompositeInstruction (const CompositeInstruction &other)
template<typename... RuntimeArgs>
void updateRuntimeArguments (RuntimeArgs...args)
void setArgumentValues (std::vector< HeterogeneousMap > args)
void addArgument (std::shared_ptr< CompositeArgument > arg, const int idx_of_inst_param) override
virtual void addArgument (const std::string arg_name, const std::string arg_type)
virtual std::shared_ptr< CompositeArgumentgetArgument (const std::string &name)
virtual std::vector< std::shared_ptr< CompositeArgument > > getArguments ()
virtual void addInstructions (const std::vector< InstPtr > &&insts)
virtual void addVariables (const std::vector< std::string > &&variables)
bool isComposite () override
- Public Member Functions inherited from xacc::Instruction
virtual void addIndexMapping (const int idx_1, const int idx_2)
virtual void setParameter (const std::size_t idx, InstructionParameter &&inst)
virtual std::string channel ()
virtual void setChannel (const std::string ch)
virtual std::size_t start ()
virtual void setStart (const std::size_t s)
virtual std::size_t duration ()
virtual void setDuration (const std::size_t d)
virtual void setSamples (const std::vector< std::vector< double >> samples)
virtual std::vector< std::vector< double > > getSamples ()
virtual bool isEnabled ()
virtual void disable ()
virtual void enable ()
virtual void customVisitAction (BaseInstructionVisitor &visitor)
virtual const bool isAnalog () const
- Public Member Functions inherited from xacc::BaseInstructionVisitable
virtual void accept (std::shared_ptr< BaseInstructionVisitor > visitor)=0
virtual void accept (BaseInstructionVisitor *visitor)=0
virtual ~BaseInstructionVisitable ()
- Public Member Functions inherited from xacc::Identifiable
virtual ~Identifiable ()
- Public Member Functions inherited from xacc::Cloneable< Instruction >
virtual bool shouldClone ()
virtual ~Cloneable ()

Protected Member Functions

void throwIfInvalidInstructionParameter (InstPtr instruction)
void validateInstructionIndex (const std::size_t idx)
void validateInstructionPtr (InstPtr inst)
void errorCircuitParameter () const
- Protected Member Functions inherited from xacc::CompositeInstruction
template<typename T >
void updateArgs (T &value)
void constructArgs ()
template<typename First , typename... Rest>
void constructArgs (First firstArg, Rest...rest)
void countArgs ()
template<typename First , typename... Rest>
void countArgs (First firstArg, Rest...rest)

Protected Attributes

std::vector< InstPtr > instructions
std::vector< std::string > variables {}
std::shared_ptr< ExpressionParsingUtilparsingUtil
std::string _name
std::string tag = "ising"
- Protected Attributes inherited from xacc::CompositeInstruction
int _internal_counter = 0
int _count_args_counter = 0
std::vector< std::shared_ptr< CompositeArgument > > arguments

Additional Inherited Members

- Static Protected Member Functions inherited from xacc::BaseInstructionVisitable
template<class T >
static void acceptImpl (T &visited, std::shared_ptr< BaseInstructionVisitor > visitor)
template<class T >
static void acceptImpl (T &visited, BaseInstructionVisitor *visitor)

Member Function Documentation

const std::string xacc::quantum::AnnealingProgram::description ( ) const

Return the description of this instance

description The description of this object.

Implements xacc::Identifiable.

const std::string xacc::quantum::AnnealingProgram::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: