HFInitialPoint#
- class HFInitialPoint[ソース]#
ベースクラス:
InitialPoint
Compute the Hartree-Fock (HF) initial point.
A class that provides an all-zero initial point for the
VQE
parameter values.If used in concert with the
HartreeFock
initial state (which will be prepended to theUCC
circuit) the all-zero initial point will correspond to the HF initial point.Attributes
- ansatz#
The UCC ansatz.
The
excitation_list
andreps
used by theUCC
ansatz is obtained to ensure that the shape of the initial point is appropriate.
- problem#
The problem.
The problem is not required to compute the HF initial point. If it is provided we will attempt to obtain the HF
reference_energy
.
- total_energy#
The Hartree-Fock reference energy.
If the reference energy was not obtained from
ElectronicEnergy
this will be equal to zero.
Methods
- compute(ansatz=None, problem=None)[ソース]#
Compute the initial point parameter for each excitation.
See class documentation for more information.
- パラメータ:
problem (BaseProblem | None) – The
problem
.
- 例外:
QiskitNatureError – If
ansatz
is not set.