1.7K Star 3K Fork 4.3K

GVPMindSpore/mindquantum

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

mindquantum.algorithm.compiler.BasicDecompose

.. py:class:: mindquantum.algorithm.compiler.BasicDecompose(prefer_u3=False)

    将量子线路编译成简单的量子门。

    本编译规则可编译多控制的量子门、自定义量子门和多泡利旋转门。

    参数:
        - **prefer_u3** (bool) - 是否优先选择 :class:`~.core.gates.U3` 来进行分解。默认值: ``False``。

    .. py:method:: do(dag_circuit: DAGCircuit)

        原位的将该多控制和自定义量子门编译规则运用到 :class:`~.algorithm.compiler.DAGCircuit` 上。

        参数:
            - **dag_circuit** (:class:`~.algorithm.compiler.DAGCircuit`) - 量子线路的 DAG 图。
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/mindspore/mindquantum.git
git@gitee.com:mindspore/mindquantum.git
mindspore
mindquantum
mindquantum
r0.10

搜索帮助