Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
xacc::quantum::Term Class Reference
Inheritance diagram for xacc::quantum::Term:

Public Member Functions

 Term (const Term &t)
 Term (std::complex< double > c)
 Term (double c)
 Term (std::complex< double > c, std::map< int, std::string > ops)
 Term (std::string var)
 Term (std::complex< double > c, std::string var)
 Term (std::string var, std::map< int, std::string > ops)
 Term (std::complex< double > c, std::string var, std::map< int, std::string > ops)
 Term (std::map< int, std::string > ops)
const std::string id () const
std::map< int, std::string > & ops ()
bool isIdentity ()
std::complex< double > & coeff ()
std::string & var ()
Termoperator*= (const Term &v) noexcept
bool operator== (const Term &v) noexcept
std::vector< SparseTripletgetSparseMatrixElements (const int nQubits)
ActionResult action (const std::string &bitString, ActionType type)
std::pair< std::vector< int >, std::vector< int > > toBinaryVector (const int nQubits)

Static Public Member Functions

static const std::string id (const std::map< int, std::string > &ops, const std::string &var="")

Protected Member Functions

void create_map ()

Protected Attributes

std::map< std::string, std::pair< c, std::string > > pauliProducts

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