HFInitialPoint#
- class HFInitialPoint[fuente]#
Bases:
InitialPointCompute the Hartree-Fock (HF) initial point.
A class that provides an all-zero initial point for the
VQEparameter values.If used in concert with the
HartreeFockinitial state (which will be prepended to theUCCcircuit) the all-zero initial point will correspond to the HF initial point.Attributes
- ansatz#
The UCC ansatz.
The
excitation_listandrepsused by theUCCansatz 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
ElectronicEnergythis will be equal to zero.
Methods
- compute(ansatz=None, problem=None)[fuente]#
Compute the initial point parameter for each excitation.
See class documentation for more information.
- Parámetros:
problem (BaseProblem | None) – The
problem.
- Muestra:
QiskitNatureError – If
ansatzis not set.