1.3K Star 2K Fork 3.5K

GVPMindSpore / mindquantum

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

mindquantum.core.operators.commutator

.. py:function:: mindquantum.core.operators.commutator(left_operator, right_operator)

    计算两个算子的对易。

    参数:
        - **left_operator** (Union[FermionOperator, QubitOperator, QubitExcitationOperator]) - 第一个算子,类型是 `FermionOperator` 或者 `QubitOperator`。
        - **right_operator** (Union[FermionOperator, QubitOperator, QubitExcitationOperator]) - 第二个算子,类型是 `FermionOperator` 或者 `QubitOperator`。

    异常:
        - **TypeError** - `left_operator` 和 `right_operator` 不是相同的类型。
Python
1
https://gitee.com/mindspore/mindquantum.git
git@gitee.com:mindspore/mindquantum.git
mindspore
mindquantum
mindquantum
master

搜索帮助