mindquantum.algorithm.compiler.connect_two_node

View Source On Gitee
mindquantum.algorithm.compiler.connect_two_node(father_node: DAGNode, child_node: DAGNode, local_index: int)[source]

Connect two DAG node through given local_index.

Parameters
  • father_node (DAGNode) – The father DAG node.

  • child_node (DAGNode) – The child DAG node.

  • local_index (int) – which leg you want to connect.