.. index:: pair: class; QPanda::AbstractQubitMapping .. _doxid-class_q_panda_1_1_abstract_qubit_mapping: class QPanda::AbstractQubitMapping ================================== .. toctree:: :hidden: Base abstract class that allocates the qbits used in the program to the qbits that are in the physical architecture. .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class AbstractQubitMapping { public: // typedefs typedef AbstractQubitMapping* :target:`Ref`; typedef std::unique_ptr :target:`uRef`; // methods bool :target:`run`( :ref:`QPanda::QProg` prog, :ref:`QPanda::QuantumMachine`* qvm ); void :target:`setGateWeightMap`(const :ref:`GateWeightMap`& weightMap); const :ref:`Mapping`& :target:`get_final_mapping`() const; const :ref:`Mapping`& :target:`get_init_mapping`() const; :ref:`QPanda::QProg` :target:`get_mapped_prog`() const; }; // direct descendants class :ref:`OptBMTQAllocator`; class :ref:`SabreQAllocator`;