1.3K Star 2K Fork 3.5K

GVPMindSpore / mindquantum

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
mindquantum.algorithm.qaia.CFC.rst 993 Bytes
一键复制 编辑 原始数据 按行查看 历史
donghufeng 提交于 2024-01-03 15:55 . add QAIA algorithm

mindquantum.algorithm.qaia.CFC

.. py:class:: mindquantum.algorithm.qaia.CFC(J, h=None, x=None, n_iter=1000, batch_size=1, dt=0.1)

    混沌振幅反馈算法。

    参考文献:`Coherent Ising machines with optical error correction circuits <https://onlinelibrary.wiley.com/doi/full/10.1002/qute.202100077>`_。

    参数:
        - **J** (Union[numpy.array, csr_matrix]) - 耦合矩阵,维度为 :math:`(N x N)`。
        - **h** (numpy.array) - 外场强度,维度为 :math:`(N, )`。
        - **x** (numpy.array) - 自旋初始化配置,维度为 :math:`(N x batch_size)`。默认值: ``None``。
        - **n_iter** (int) - 迭代步数。默认值: ``1000``。
        - **batch_size** (int) - 样本个数。默认值为: ``1``。
        - **dt** (float) - 迭代步长。默认值: ``0.1``。

    .. py:method:: initialize()

        初始化自旋和错误变量。

    .. py:method:: update()

        动力学演化。
Python
1
https://gitee.com/mindspore/mindquantum.git
git@gitee.com:mindspore/mindquantum.git
mindspore
mindquantum
mindquantum
master

搜索帮助