Ai
1.8K Star 3.1K Fork 4.3K

GVPMindSpore/mindquantum
暂停

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

mindquantum.algorithm.nisq.Ansatz

.. py:class:: mindquantum.algorithm.nisq.Ansatz(name, n_qubits, *args, **kwargs)

    Ansatz的基类。

    参数:
        - **name** (str) - ansatz的名字。
        - **n_qubits** (int) - ansatz作用于多少个量子比特。

    .. py:method:: circuit
        :property:

        获取ansatz的量子线路。

        返回:
            Circuit,ansatz的量子线路。
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/mindspore/mindquantum.git
git@gitee.com:mindspore/mindquantum.git
mindspore
mindquantum
mindquantum
r0.10

搜索帮助