class VQEProgram(ansatz, optimizer=None, initial_point=None, provider=None, backend=None, shots=1024, measurement_error_mitigation=False, callback=None, store_intermediate=False)[source]

Bases: VQEClient

DEPRECATED. This class has been renamed to qiskit_optimization.runtime.VQEClient.

This renaming reflects that this class is a client for a program executed in the cloud.

  • ansatz (QuantumCircuit) – A parameterized circuit used as Ansatz for the wave function.

  • optimizer (Union[Optimizer, Dict[str, Any], None]) – An optimizer or dictionary specifying a classical optimizer. If a dictionary, only SPSA and QN-SPSA are supported. The dictionary must contain a key name for the name of the optimizer and may contain additional keys for the settings. E.g. {'name': 'SPSA', 'maxiter': 100}. Per default, SPSA is used.

  • backend (Optional[Backend]) – The backend to run the circuits on.

  • initial_point (Optional[ndarray]) – An optional initial point (i.e. initial parameter values) for the optimizer. If None a random vector is used.

  • provider (Optional[Provider]) – Provider that supports the runtime feature.

  • shots (int) – The number of shots to be used

  • measurement_error_mitigation (bool) – Whether or not to use measurement error mitigation.

  • callback (Optional[Callable[[int, ndarray, float, float], None]]) – a callback that can access the intermediate data during the optimization. Four parameter values are passed to the callback as follows during each evaluation by the optimizer for its current set of parameters as it works towards the minimum. These are: the evaluation count, the optimizer parameters for the ansatz, the evaluated mean and the evaluated standard deviation.

  • store_intermediate (bool) – Whether or not to store intermediate values of the optimization steps. Per default False.



compute_minimum_eigenvalue(operator[, ...])

Calls the VQE Runtime to approximate the ground state of the given operator.


Whether computing the expectation value of auxiliary operators is supported.