1.4K Star 2.3K Fork 3.7K

GVPMindSpore/mindquantum

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
mindquantum.algorithm.nisq.QubitUCCAnsatz.rst 1.74 KB
一键复制 编辑 原始数据 按行查看 历史
donghufeng 提交于 2023-11-01 01:16 . re-organize docs

mindquantum.algorithm.nisq.QubitUCCAnsatz

.. py:class:: mindquantum.algorithm.nisq.QubitUCCAnsatz(n_qubits=None, n_electrons=None, occ_orb=None, vir_orb=None, generalized=False, trotter_step=1)

    量子比特幺正耦合簇(qUCC)是幺正耦合簇的变体,它使用量子比特激励算子而不是费米子激励算子。
    量子比特激励算子跨越的Fock空间相当于费米子算子,因此可以使用量子比特激发算子以更高阶的 Trotterization 为代价来近似精确的波函数。

    qUCC最大的优点是:即使使用3阶或4阶Trotterization,CNOT门的数量比UCC的原始版本小得多。
    此外,尽管变分参数的数量增加,但精度也大大提高。

    .. note::
        不包括哈特里-福克电路。
        目前,不允许generalized=True,因为需要理论验证。
        参考文献: `Efficient quantum circuits for quantum computational chemistry <https://doi.org/10.1103/PhysRevA.102.062612>`_。

    参数:
        - **n_qubits** (int) - 模拟中量子比特(自旋轨道)的数量。默认值: ``None``。
        - **n_electrons** (int) - 给定分子的电子数。默认值: ``None``。
        - **occ_orb** (list) - 手动分配的占用空间轨道的索引。默认值: ``None``。
        - **vir_orb** (list) - 手动分配的虚拟空间轨道的索引。默认值: ``None``。
        - **generalized** (bool) - 是否使用不区分占用轨道或虚拟轨道的广义激励(qUCCGSD)。目前,不允许 `generalized=True` ,因为需要理论验证。默认值: ``False``。
        - **trotter_step** (int) - 梯度的数量。建议设置大于等于2的值,以获得较好的精度。默认值: ``1``。
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/mindspore/mindquantum.git
git@gitee.com:mindspore/mindquantum.git
mindspore
mindquantum
mindquantum
r0.9

搜索帮助