1.3K Star 2K Fork 3.5K

GVPMindSpore / mindquantum

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

mindquantum.core.gates.PhaseFlipChannel

.. py:class:: mindquantum.core.gates.PhaseFlipChannel(p: float, **kwargs)

    相位翻转信道。描述的噪声体现为:以 :math:`P` 的概率翻转量子比特的相位(应用Z门),或以 :math:`1-P` 的概率保持不变(作用I门)。

    相位翻转信道的数学表示如下:

    .. math::

        \epsilon(\rho) = (1 - P)\rho + P Z \rho Z

    其中,:math:`\rho` 是密度矩阵形式的量子态; :math:`P` 是作用额外Z门的概率。

    参数:
        - **p** (int, float) - 发生错误的概率。

    .. py:method:: matrix()

        返回该噪声信道的Kraus算符。

        返回:
            list,包含了该噪声信道的Kraus算符。
Python
1
https://gitee.com/mindspore/mindquantum.git
git@gitee.com:mindspore/mindquantum.git
mindspore
mindquantum
mindquantum
master

搜索帮助