1.3K Star 2K Fork 3.5K

GVPMindSpore / mindquantum

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

mindquantum.core.circuit.QubitNumberConstrain

.. py:class:: mindquantum.core.circuit.QubitNumberConstrain(n_qubits: int, with_ctrl: bool = True, add_after: bool = True)

    只将噪声信道作用在比特数为 ``n_qubits`` 的量子门上。

    参数:
        - **n_qubits** (int) - 量子门的比特数目。
        - **with_ctrl** (bool) - 控制比特是否算在总比特数目之内。默认值: ``True`` 。
        - **add_after** (bool) - 在量子门前面或者后面添加量子信道。默认值: ``True``。
Python
1
https://gitee.com/mindspore/mindquantum.git
git@gitee.com:mindspore/mindquantum.git
mindspore
mindquantum
mindquantum
master

搜索帮助