QCOR
Classes | Public Member Functions | Public Attributes | Protected Attributes | List of all members
xacc::internal_compiler::qreg Class Reference

Classes

struct  Range
 

Public Member Functions

 qreg (const int n)
 
 qreg (const qreg &other)
 
 qreg (std::vector< qubit > &qubits)
 
qubit operator[] (const std::size_t i)
 
qreg extract_range (const std::size_t &start, const std::size_t &end)
 
qreg extract_range (const Range &&range)
 
qreg extract_qubits (const std::initializer_list< std::size_t > &&qbits)
 
qreg head (const std::size_t n_qubits)
 
qubit head ()
 
qubit tail ()
 
qreg tail (const std::size_t n_qubits)
 
AcceleratorBuffer * results ()
 
std::shared_ptr< AcceleratorBuffer > results_shared ()
 
std::map< std::string, int > counts ()
 
double exp_val_z ()
 
void reset ()
 
int size ()
 
void addChild (qreg &q)
 
void setName (const char *name)
 
void setNameAndStore (const char *name)
 
std::string name ()
 
void store ()
 
void print ()
 
double weighted_sum (Observable *obs)
 
void write_file (const std::string &file_name)
 

Public Attributes

cReg creg
 

Protected Attributes

std::shared_ptr< AcceleratorBuffer > buffer
 
bool been_named_and_stored = false
 

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