qiskit.algorithms.VQE.find_minimum¶
-
VQE.
find_minimum
(initial_point=None, ansatz=None, cost_fn=None, optimizer=None, gradient_fn=None)¶ Optimize to find the minimum cost value.
- Parameters
initial_point (
Optional
[ndarray
]) – If not None will be used instead of any initial point supplied via constructor. If None and None was supplied to constructor then a random point will be used if the optimizer requires an initial point.ansatz (
Optional
[QuantumCircuit
]) – If not None will be used instead of any ansatz supplied via constructor.cost_fn (
Optional
[Callable
]) – If not None will be used instead of any cost_fn supplied via constructor.optimizer (
Optional
[Optimizer
]) – If not None will be used instead of any optimizer supplied via constructor.gradient_fn (
Optional
[Callable
]) – Optional gradient function for optimizer
- Returns
Optimized variational parameters, and corresponding minimum cost value.
- Return type
dict
- Raises
ValueError – invalid input