.. index:: pair: class; QPanda::QProgToMatrix .. _doxid-class_q_panda_1_1_q_prog_to_matrix: class QPanda::QProgToMatrix =========================== .. toctree:: :hidden: class_QPanda_QProgToMatrix_MatrixOfOneLayer.rst Overview ~~~~~~~~ get the matrix of a :ref:`QProg ` :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class QProgToMatrix { public: // classes class :ref:`MatrixOfOneLayer`; // construction :target:`QProgToMatrix`( :ref:`QProg`& p, const bool b_bid_endian = false ); // methods :ref:`QStat` :ref:`get_matrix`(); :ref:`qmatrix_t` :ref:`get_matrix_of_one_layer`(:ref:`SeqLayer`<:ref:`pOptimizerNodeInfo`>& layer); }; .. _details-class_q_panda_1_1_q_prog_to_matrix: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ get the matrix of a :ref:`QProg ` Methods ------- .. index:: pair: function; get_matrix .. _doxid-class_q_panda_1_1_q_prog_to_matrix_1abd6c4f9d1d6207a0ed7e7f11049960ee: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`QStat` get_matrix() calc the matrix of the input :ref:`QProg ` .. rubric:: Returns: QStat the matrix of the input :ref:`QProg ` .. index:: pair: function; get_matrix_of_one_layer .. _doxid-class_q_panda_1_1_q_prog_to_matrix_1aef6cee69d1e51b0155bc6a2e8c5a0c96: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`qmatrix_t` get_matrix_of_one_layer(:ref:`SeqLayer`<:ref:`pOptimizerNodeInfo`>& layer) calc the matrix of nodes in one layer .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - SeqLayer& - layer nodes * - QProgDAG& - DAG algorithm object .. rubric:: Returns: qmatrix_t the matrix of the layer