class QPanda::QProgToMatrix

Overview

get the matrix of a QProg More…

Detailed Documentation

get the matrix of a QProg

Methods

calc the matrix of the input QProg

Returns:

QStat the matrix of the input QProg

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