1.3K Star 2K Fork 3.5K

GVPMindSpore / mindquantum

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

mindquantum.core.circuit.NoiseChannelAdder

.. py:class:: mindquantum.core.circuit.NoiseChannelAdder(channel: NoiseGate, with_ctrl=True, focus_on: int = None, add_after: bool = True)

    添加一个单比特量子信道。

    参数:
        - **channel** (:class:`~.core.gates.NoiseGate`) - 一个单比特量子信道。
        - **with_ctrl** (bool) - 是否在控制为上添加比特。默认值: ``True``。
        - **focus_on** (int) - 只讲该噪声信道作用在 ``focus_on`` 比特上。如果为 ``None``,则作用在量子门的所有比特上。默认值: ``None``。
        - **add_after** (bool) - 是否在量子门后面添加信道。如果为 ``False``,信道将会加在量子门前面。默认值: ``True``。
Python
1
https://gitee.com/mindspore/mindquantum.git
git@gitee.com:mindspore/mindquantum.git
mindspore
mindquantum
mindquantum
master

搜索帮助