1.8K Star 3K Fork 4.3K

GVPMindSpore/mindquantum

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

mindquantum.algorithm.compiler.cu_decompose

.. py:function:: mindquantum.algorithm.compiler.cu_decompose(gate: QuantumGate, with_barrier: bool = False)

    对任意维度的受控幺正门进行分解。

    该门拥有 :math:`m` 个控制比特和 :math:`n` 个作用比特。
    当迭代的调用函数本身时,:math:`m` 将会逐步减小并保持 :math:`n` 恒定。

    参数:
        - **gate** (:class:`~.core.gates.QuantumGate`) - 量子门实例。
        - **with_barrier** (bool) - 是否在分解时加入 :class:`~.core.gates.BarrierGate`。默认值: ``False``。

    返回:
        :class:`~.core.circuit.Circuit`,由单比特门和CNOT门构成的量子线路。
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/mindspore/mindquantum.git
git@gitee.com:mindspore/mindquantum.git
mindspore
mindquantum
mindquantum
r0.9

搜索帮助