1.8K Star 3.1K Fork 4.3K

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``。
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/mindspore/mindquantum.git
git@gitee.com:mindspore/mindquantum.git
mindspore
mindquantum
mindquantum
r0.9

搜索帮助