.. index:: pair: class; QPanda::NodeInfo .. _doxid-class_q_panda_1_1_node_info: class QPanda::NodeInfo ====================== .. toctree:: :hidden: Overview ~~~~~~~~ Detailed information of a :ref:`QProg ` node. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class NodeInfo { public: // fields :ref:`NodeIter` :ref:`m_iter`; :ref:`NodeType` :ref:`m_node_type`; :ref:`GateType` :ref:`m_gate_type`; bool :ref:`m_is_dagger`; :ref:`QVec` :ref:`m_target_qubits`; :ref:`QVec` :ref:`m_control_qubits`; std::vector :target:`m_cbits`; std::vector :target:`m_params`; std::string :target:`m_name`; // construction :ref:`NodeInfo`(); :target:`NodeInfo`( const :ref:`NodeIter` iter, :ref:`QVec` target_qubits, :ref:`QVec` control_qubits, int type, const bool dagger ); // methods virtual void :ref:`reset`(); }; // direct descendants struct :ref:`OptimizerNodeInfo`; .. _details-class_q_panda_1_1_node_info: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Detailed information of a :ref:`QProg ` node. Fields ------ .. index:: pair: variable; m_iter .. _doxid-class_q_panda_1_1_node_info_1afa444e6c26c1a41b9a28f0facd2ccee5: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`NodeIter` m_iter the :ref:`NodeIter ` of the node .. index:: pair: variable; m_node_type .. _doxid-class_q_panda_1_1_node_info_1ae398dadff0afde22cabdd2ff5b20281f: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`NodeType` m_node_type the node type .. index:: pair: variable; m_gate_type .. _doxid-class_q_panda_1_1_node_info_1a2d7e6060b4915dba45f7ce1c02209cb0: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`GateType` m_gate_type the gate type (if the node type is gate_node) .. index:: pair: variable; m_is_dagger .. _doxid-class_q_panda_1_1_node_info_1a62423e74d282c57cd8ba8a7f7187dc59: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool m_is_dagger dagger information .. index:: pair: variable; m_target_qubits .. _doxid-class_q_panda_1_1_node_info_1ac3ae58a9891b21392e4e9097b4bbdd11: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`QVec` m_target_qubits Quantum bits of current node. .. index:: pair: variable; m_control_qubits .. _doxid-class_q_panda_1_1_node_info_1a6ee761642b78a94ed72b87d108ce7292: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`QVec` m_control_qubits control Quantum bits. Construction ------------ .. index:: pair: function; NodeInfo .. _doxid-class_q_panda_1_1_node_info_1a3fc75a0b573bf763c62f99961c4e9f9f: .. ref-code-block:: cpp :class: doxyrest-title-code-block NodeInfo() Constructor of :ref:`NodeInfo `. Methods ------- .. index:: pair: function; reset .. _doxid-class_q_panda_1_1_node_info_1aaed379503096183ac530a01b41456e4b: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual void reset() reset the node information