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

Public Member Functions

 Pulse (std::string name)
 
 Pulse (std::string name, std::string channel)
 
 Pulse (std::string name, std::string channel, InstructionParameter &phase, std::vector< std::size_t > qubts)
 
 Pulse (std::string name, std::string channel, double phase, std::vector< std::size_t > qubts)
 
 Pulse (const Pulse &inst)
 
void addArgument (std::shared_ptr< CompositeArgument > arg, const int idx_for_param) override
 
void applyRuntimeArguments () override
 
std::string channel () override
 
void setChannel (const std::string c) override
 
std::size_t start () override
 
void setStart (const std::size_t s) override
 
std::size_t duration () override
 
void setDuration (const std::size_t d) override
 
void setSamples (const std::vector< std::vector< double >> s) override
 
std::vector< std::vector< double > > getSamples () override
 
const std::string name () const override
 
const std::string description () const override
 
const std::string toString () override
 
const std::vector< std::size_t > bits () override
 
void setBits (const std::vector< std::size_t > bits) 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 InstructionParameter getParameter (const std::size_t idx) const override
 
std::vector< InstructionParametergetParameters () override
 
void setParameter (const std::size_t idx, InstructionParameter &inst) override
 
const int nParameters () override
 
bool isParameterized () override
 
void mapBits (std::vector< std::size_t > bitMap) override
 
bool isComposite () override
 
bool isEnabled () override
 
void disable () override
 
void enable () override
 
const bool isAnalog () const override
 
const int nRequiredBits () const 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
 
std::shared_ptr< Instructionclone () 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 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 gateName
 
std::vector< std::size_t > qbits
 
bool enabled = true
 
std::vector< InstructionParameterparameters
 
std::string ch = ""
 
std::size_t t0 = 0
 
std::size_t _duration = 0
 
std::vector< std::vector< double > > samples = {}
 

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::Pulse::description ( ) const
overridevirtual

Return the description of this instance

Returns
description The description of this object.

Implements xacc::Identifiable.

const std::string xacc::quantum::Pulse::name ( ) const
overridevirtual

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: