class QPanda::FindSubCircuit¶
Overview¶
Detailed Documentation¶
Methods¶
Query the subgraph and store the query results in query_Result.
Parameters:
LayeredTopoSeq& |
store the query results |
Returns:
Layer matching: matching and combining the nodes of each layer of the sub graph.
Parameters:
SeqLayer<pOptimizerNodeInfo>& |
the target matching sub-seq-layer |
const |
size_t the current matching layer |
std::vector<LayeredTopoSeq>& |
sub-graph vector |
Returns:
Merge incomplete subgraphs Implementation method: get the node set of the next layer of each subgraph of the matching subgraph set. If the node set of the next layer of the two subgraphs has duplicate elements, merge the two subgraphs.
Parameters:
std::vector<LayeredTopoSeq>& |
the sub graph vector |
const |
size_t the target layer |
LayeredTopoSeq& |
the target sub-sequence |
Returns:
Clean up the result set of matching subgraphs and delete the wrong matches.
Parameters:
std::vector<LayeredTopoSeq>& |
the result set of matching subgraphs |
LayeredTopoSeq& |
the target sub-sequence |
Returns:
merge sub-graph: merging src_seq into dst_seq by layer
Parameters:
LayeredTopoSeq& |
the src_seq |
LayeredTopoSeq& |
dst_seq |
Returns: