1.3K Star 2K Fork 3.5K

GVPMindSpore / mindquantum

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

mindquantum.algorithm.library.general_ghz_state

.. py:function:: mindquantum.algorithm.library.general_ghz_state(qubits)

    基于零态制备通用GHZ态的线路。
    GHZ态通常定义为三个全零态和三个全一态的均匀叠加:

    .. math::

        \left|\text{GHZ}\right> = (\left|000\right> + \left|111\right>)/\sqrt{2}

    在本接口中,我们可以创建出任意量子比特规模下任意部分量子比特之间的GHZ态。

    参数:
        - **qubits** (list[int]) - 需要应用通用GHZ态的量子比特。

    返回:
        Circuit,可以制备GHZ态的线路。
Python
1
https://gitee.com/mindspore/mindquantum.git
git@gitee.com:mindspore/mindquantum.git
mindspore
mindquantum
mindquantum
master

搜索帮助