paddle_quantum.qchem.loss.rst 1.3 KB
Newer Older
Q
Quleaf 已提交
1 2 3 4 5
paddle\_quantum.qchem.loss
=================================

量子化学中的损失函数。

Q
Quleaf 已提交
6
.. py:class:: MolEnergyLoss(geometry, basis, multiplicity=1, charge=0)
Q
Quleaf 已提交
7 8 9 10 11 12 13 14 15 16 17 18 19 20

   基类::py:class:`paddle_quantum.loss.ExpecVal`

   分子基态计算的损失函数。

   :param geometry: 表示分子位置几何信息,例如 ``H 0.0 0.0 0.0; H 0.0 0.0 0.74``。
   :type geometry: str
   :param basis: 化学基选取,例如 ``sto-3g``。
   :type basis: str
   :param multiplicity: 自旋多重度, 默认值为 ``1``。
   :type multiplicity: int, optional
   :param charge: 分子电荷量, 默认值为 ``0``。
   :type charge: int, optional

Q
Quleaf 已提交
21
.. py:class:: RHFEnergyLoss(geometry, basis, multiplicity=1, charge=0)
Q
Quleaf 已提交
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36

   基类: :py:class:`paddle_quantum.Operator`

   Restricted Hartree Fock 计算的损失函数。

   :param geometry:  表示分子位置几何信息,例如 ``H 0.0 0.0 0.0; H 0.0 0.0 0.74``。
   :type geometry: str
   :param basis: 化学基选取,例如 ``sto-3g``。
   :type basis: str
   :param multiplicity: 自旋多重度, 默认值为 ``1``。
   :type multiplicity: int, optional
   :param charge: 分子电荷量, 默认值为 ``0``。
   :type charge: int, optional

   :raises ModuleNotFoundError: Hartree Fock 方法需要安装 ``pyscf`` 包。安装请运行 ``pip install -U pyscf``。