mindquantum.algorithm.compiler.connect_two_node

View Source On Gitee
mindquantum.algorithm.compiler.connect_two_node(father_node, child_node, local_index)[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.