.. index:: pair: class; QPanda::PhysicalQubitFactory .. _doxid-class_q_panda_1_1_physical_qubit_factory: class QPanda::PhysicalQubitFactory ================================== .. toctree:: :hidden: Overview ~~~~~~~~ Factory for class :ref:`PhysicalQubit `. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class PhysicalQubitFactory { public: // typedefs typedef std::function<:ref:`PhysicalQubit`*()> :target:`constructor_t`; typedef std::map`> :target:`constructor_Map_t`; // fields :ref:`constructor_Map_t` :target:`_Physical_Qubit_Constructor`; // methods static PhysicalQubitFactory& :ref:`GetFactoryInstance`(); :ref:`PhysicalQubit`* :target:`GetInstance`(); void :target:`registerclass`( std::string&, :ref:`constructor_t` constructor ); }; .. _details-class_q_panda_1_1_physical_qubit_factory: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Factory for class :ref:`PhysicalQubit `. Methods ------- .. index:: pair: function; GetFactoryInstance .. _doxid-class_q_panda_1_1_physical_qubit_factory_1a06b2f057e56aa3942f63f008b01d509a: .. ref-code-block:: cpp :class: doxyrest-title-code-block static PhysicalQubitFactory& GetFactoryInstance() Get the static instance of factory. .. rubric:: Returns: :ref:`PhysicalQubitFactory ` &