1.3K Star 2K Fork 3.6K

GVPMindSpore / mindquantum

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

mindquantum.core.gates.KrausChannel

.. py:class:: mindquantum.core.gates.KrausChannel(name: str, kraus_op, **kwargs)

    Kraus 信道接受两个或多个 2x2 矩阵作为 Kraus 算子,以在量子电路中构造自定义(单量子比特)噪声。

    Kraus 信道以如下形式作用噪声:

    .. math::

        \epsilon(\rho) = \sum_{k=0}^{m-1} E_k \rho E_k^\dagger

    其中 :math:`\rho` 是密度矩阵形式的量子态;:math:`E_k` 是Kraus算符,
    并且它需要满足完备性条件::math:`\sum_k E_k^\dagger E_k = I`。

    参数:
        - **name** (str) - 该自定义噪声信道的名称。
        - **kraus_op** (list, np.ndarray) - Kraus 算符,两个或多个 2x2 矩阵打包成的list。

    .. py:method:: define_projectq_gate()

        定义对应的projectq门。

    .. py:method:: get_cpp_obj()

        获取底层c++对象。

    .. py:method:: matrix()

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

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

搜索帮助