1.8K Star 3.1K Fork 4.3K

GVPMindSpore/mindquantum

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

mindquantum.device.GridQubits

.. py:class:: mindquantum.device.GridQubits(n_row: int, n_col: int)

    格点形式的量子比特拓扑结构。

    参数:
        - **n_row** (int) - 格点有多少行。
        - **n_col** (int) - 格点有多少列。

    .. py:method:: n_col()

        获取列数。

        返回:
            int,列数。

    .. py:method:: n_row()

        获取行数。

        返回:
            int,行数。
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/mindspore/mindquantum.git
git@gitee.com:mindspore/mindquantum.git
mindspore
mindquantum
mindquantum
r0.9

搜索帮助