1.8K Star 3K Fork 4.3K

GVPMindSpore/mindquantum

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
mindquantum.algorithm.compiler.DAGNode.rst 773 Bytes
一键复制 编辑 原始数据 按行查看 历史
donghufeng 提交于 2023-11-01 01:16 +08:00 . re-organize docs

mindquantum.algorithm.compiler.DAGNode

.. py:class:: mindquantum.algorithm.compiler.DAGNode()

    DAG 图中的节点。

    一个 DAG 图节点由局域腿标签、子节点和父节点构成。

    .. py:method:: clean()

        清除节点,将节点中的信息删除。

    .. py:method:: insert_after(other_node: "DAGNode")

        将其他节点插入到本节点后面。

        参数:
            - **other_node** (:class:`~.algorithm.compiler.DAGNode`) - 另外一个 DAG 节点。

    .. py:method:: insert_before(other_node: "DAGNode")

        将其他节点插入到本节点前面。

        参数:
            - **other_node** (:class:`~.algorithm.compiler.DAGNode`) - 另外一个 DAG 节点。
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/mindspore/mindquantum.git
git@gitee.com:mindspore/mindquantum.git
mindspore
mindquantum
mindquantum
r0.10

搜索帮助