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

Public Member Functions

const std::vector< std::size_t > bits () override
void setBits (const std::vector< std::size_t > bits) 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
const int nRequiredBits () const override
void addInstruction (InstPtr instruction) override
bool expand (const HeterogeneousMap &runtimeOptions) override
void disable () override
- Public Member Functions inherited from xacc::quantum::Circuit
 Circuit (const std::string &name)
 Circuit (const std::string &name, std::vector< std::string > &vars)
 Circuit (const std::string &name, std::vector< std::string > &vars, std::vector< std::string > buf_names)
 Circuit (const std::string &name, std::vector< std::string > &&vars)
 Circuit (const Circuit &other)
const std::string name () const override
const std::string description () const override
void setName (const std::string name) override
void applyRuntimeArguments () override
const std::string getTag () override
void setTag (const std::string &tag) override
void mapBits (std::vector< std::size_t > bitMap) override
const std::string toString () override
void enable () override
const bool isAnalog () const override
void persist (std::ostream &outStream) override
void load (std::istream &inStream) override
const int nInstructions () override
const int nChildren () 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 addInstructions (std::vector< InstPtr > &insts) override
void addInstructions (const std::vector< InstPtr > &insts) override
void clear () override
bool hasChildren () const override
const std::vector< std::string > requiredKeys () 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 int depth () override
const std::string persistGraph () override
std::shared_ptr< GraphtoGraph () override
void flatten ()
const std::size_t nLogicalBits () override
const std::size_t nPhysicalBits () override
const std::set< std::size_t > uniqueBits () override
std::shared_ptr< CompositeInstructionenabledView () override
void removeDisabled () override
std::string getBufferName (const std::size_t bitIdx) override
std::vector< std::string > getBufferNames () override
void setBufferNames (const std::vector< std::string > bufferNamesPerIdx) override
void setBitExpression (const std::size_t bit_idx, const std::string expr) override
std::string getBitExpression (const std::size_t bit_idx) override
void setCoefficient (const std::complex< double > c) override
const std::complex< double > getCoefficient () override
std::shared_ptr< CompositeInstructionoperator() (const std::vector< double > &params) 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 bool isParameterized ()
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 customVisitAction (BaseInstructionVisitor &visitor)
- 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 Attributes

std::string bufferName
std::size_t bitIdx
- Protected Attributes inherited from xacc::quantum::Circuit
std::vector< InstPtr > instructions {}
std::vector< std::string > variables {}
std::vector< std::string > _requiredKeys {}
std::vector< std::string > buffer_names = {}
std::string circuitName = ""
std::shared_ptr< ExpressionParsingUtilparsingUtil
std::complex< double > coefficient = 1.0
std::string acc_signature = ""
- 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

- 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)
- 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)

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