class QPanda::QubitReference¶
Overview¶
The position of the qubit is an expression. More…
#include <QubitReference.h> class QubitReference: public QPanda::Qubit, public QPanda::QubitReferenceInterface { public: // construction QubitReference( ClassicalCondition& cc, std::vector<Qubit*> qvec ); QubitReference(const QubitReference& old); // methods virtual PhysicalQubit* getPhysicalQubitPtr() const; virtual bool getOccupancy(); virtual std::shared_ptr<CExpr> getExprPtr(); };
Inherited Members¶
public: // methods virtual PhysicalQubit* getPhysicalQubitPtr() const = 0; virtual size_t get_phy_addr() const; virtual bool getOccupancy() = 0; virtual std::shared_ptr<CExpr> getExprPtr() = 0;
Detailed Documentation¶
The position of the qubit is an expression.
Methods¶
virtual PhysicalQubit* getPhysicalQubitPtr() const
Get physical qubit pointer.
Returns:
virtual bool getOccupancy()
get the occupancy status of this qubit
Returns: