class QPanda::Traversal

Overview

Traversing all the nodes of the linked qprog/qcircuit/control_flow_node. More...

Detailed Documentation

Traversing all the nodes of the linked qprog/qcircuit/control_flow_node.

Methods

Traversing qprog control flow circuit.

Parameters:

AbstractControlFlowNode* Control flow nodes that need to be traversed
TraversalInterface* The method object needed for traversal

Returns:

void

Traversing qcircuit.

Parameters:

AbstractQuantumCircuit* QCircuit nodes that need to be traversed
TraversalInterface* The method object needed for traversal
bool Whether the quantum circuit needs to be transposed

Returns:

void

Traversing qprog.

Parameters:

AbstractQuantumProgram* QProg nodes that need to be traversed
TraversalInterface* The method object needed for traversal

Returns:

void

traversalByType

Parameters:

QNode* nodes that need to be traversed
parent_node* nodes that need to be traversed
TraversalInterface* The method object needed for traversal

Returns:

void