1.8K Star 3K Fork 4.3K

GVPMindSpore/mindquantum

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

mindquantum.algorithm.compiler.kak_decompose

.. py:function:: mindquantum.algorithm.compiler.kak_decompose(gate: QuantumGate, return_u3: bool = True)

    通过kak分解来分解任意的两量子比特门。

    更多信息,请参考论文 `An Introduction to Cartan's KAK Decomposition for QC
    Programmers <https://arxiv.org/abs/quant-ph/0406176>`_.

    参数:
        - **gate** (:class:`~.core.gates.QuantumGate`) - 只有一个控制为的单比特量子门。
        - **return_u3** (bool) - 如果为 ``True``,则返回 :class:`~.core.gates.U3` 形式的分解,否则返回 :class:`~.core.gates.UnivMathGate` 形式的分解。默认值: ``True``。

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

搜索帮助