class QPanda::QProgToMatrix¶
Overview¶
get the matrix of a QProg More…
#include <QProgToMatrix.h> class QProgToMatrix { public: // classes class MatrixOfOneLayer; // construction QProgToMatrix( QProg& p, const bool b_bid_endian = false ); // methods QStat get_matrix(); qmatrix_t get_matrix_of_one_layer(SeqLayer<pOptimizerNodeInfo>& layer); };
Detailed Documentation¶
get the matrix of a QProg
Methods¶
QStat get_matrix()
calc the matrix of the input QProg
Returns:
QStat the matrix of the input QProg
qmatrix_t get_matrix_of_one_layer(SeqLayer<pOptimizerNodeInfo>& layer)
calc the matrix of nodes in one layer
Parameters:
SeqLayer<pOptimizerNodeInfo>& |
layer nodes |
QProgDAG& |
DAG algorithm object |
Returns:
qmatrix_t the matrix of the layer