1.3K Star 2K Fork 3.5K

GVPMindSpore / mindquantum

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
mindquantum.device.GridQubits.rst 492 Bytes
一键复制 编辑 原始数据 按行查看 历史
donghufeng 提交于 2023-11-01 01:16 . 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,行数。
Python
1
https://gitee.com/mindspore/mindquantum.git
git@gitee.com:mindspore/mindquantum.git
mindspore
mindquantum
mindquantum
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891