1.3K Star 2K Fork 3.5K

GVPMindSpore / mindquantum

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
mindquantum.io.draw_topology.rst 542 Bytes
一键复制 编辑 原始数据 按行查看 历史

mindquantum.io.draw_topology

.. py:function:: mindquantum.io.draw_topology(topo: QubitsTopology, circuit: Circuit = None, style: Dict = None)

    以svg图的形式打印量子拓扑结构。

    参数:
        - **topo** (:class:`.device.QubitsTopology`) - 量子比特拓扑结构。
        - **circuit** (:class:`~.core.circuit.Circuit`) - 想要在指定拓扑结构上执行的量子线路。默认值: ``None``。
        - **style** (Dict) - 绘制的格式配置字典。默认值: ``None``。
Python
1
https://gitee.com/mindspore/mindquantum.git
git@gitee.com:mindspore/mindquantum.git
mindspore
mindquantum
mindquantum
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891