Public Member Functions | Protected Attributes | List of all members
xacc::quantum::FermionOperator Class Reference
Inheritance diagram for xacc::quantum::FermionOperator:
xacc::Observable xacc::Cloneable< Observable > xacc::Identifiable

Public Member Functions

std::shared_ptr< Observableclone () override
 FermionOperator (std::complex< double > c)
 FermionOperator (double c)
 FermionOperator (std::string fromString)
 FermionOperator (const FermionOperator &i)
 FermionOperator (Operators operators)
 FermionOperator (Operators operators, std::complex< double > coeff)
 FermionOperator (Operators operators, double coeff)
 FermionOperator (Operators operators, double coeff, std::string var)
std::vector< std::shared_ptr< CompositeInstruction > > observe (std::shared_ptr< CompositeInstruction > function) override
const std::string toString () override
void fromString (const std::string str) override
const int nBits () override
void clear ()
std::unordered_map< std::string, FermionTermgetTerms () const
FermionOperatoroperator+= (const FermionOperator &v) noexcept
FermionOperatoroperator-= (const FermionOperator &v) noexcept
FermionOperatoroperator*= (const FermionOperator &v) noexcept
bool operator== (const FermionOperator &v) noexcept
FermionOperatoroperator*= (const double v) noexcept
FermionOperatoroperator*= (const std::complex< double > v) noexcept
const std::string name () const override
const std::string description () const override
void fromOptions (const HeterogeneousMap &options) override
std::shared_ptr< Observablecommutator (std::shared_ptr< Observable > obs) override
- Public Member Functions inherited from xacc::Observable
virtual void fromOptions (const HeterogeneousMap &&options)
virtual std::vector< std::shared_ptr< Observable > > getSubTerms ()
virtual std::vector< std::shared_ptr< Observable > > getNonIdentitySubTerms ()
virtual std::shared_ptr< ObservablegetIdentitySubTerm ()
virtual std::complex< double > coefficient ()
virtual std::vector< SparseTripletto_sparse_matrix ()
- Public Member Functions inherited from xacc::Identifiable
virtual ~Identifiable ()
- Public Member Functions inherited from xacc::Cloneable< Observable >
virtual bool shouldClone ()
virtual ~Cloneable ()

Protected Attributes

std::unordered_map< std::string, FermionTermterms

Member Function Documentation

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

Return the description of this instance

description The description of this object.

Implements xacc::Identifiable.

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