mindquantum.simulator.mqchem.UCCExcitationGate#

class mindquantum.simulator.mqchem.UCCExcitationGate(fermion_operator)#

酉耦合簇(UCC)激发门,用于与 MQChemSimulator 一同使用。

该门表示酉算符 \(e^{G}\),其中 \(G\) 是一个反厄米生成元,形式为 \(G = \theta (T - T^\dagger)\)。 这里,\(T\) 是一个同时保持自旋和电子数守恒的费米子激发算符。该算符常用于量子化学中变分量子算法的UCC拟设。

备注

此门专为 MQChemSimulator 设计,并依赖其内部的CI空间表示。它与标准的态矢量 Simulator 不兼容。

该门定义为:

\[U(\theta) = \exp(\theta(T - T^\dagger))\]

其中 \(T\) 必须是单项的 FermionOperator, 例如 \(a_p^\dagger a_q\)

参数:
  • fermion_operator (FermionOperator) - 费米子激发算符 \(T\)。 它必须只包含一项。该项的系数用作旋转角 \(\theta\)。如果系数是变量,则该门是参数化的。

get_cpp_obj(n_qubits, n_electrons, backend)#

返回用于模拟的C++对象。

备注

此方法供 MQChemSimulator 内部使用。

参数:
  • n_qubits (int) - 系统中的总量子比特数(自旋轨道数)。

  • n_electrons (int) - 系统中的总电子数。

  • backend (Union[_mq_chem.float, _mq_chem.double]) - C++后端模块。

返回:

C++对象,底层绑定类型为 CppExcitationOperator,用于模拟。