qrisp.vqe.VQEProblem.visualize_energy#

VQEProblem.visualize_energy(exact=False)[source]#

Visualizes the energy during the optimization process.

Parameters:
exactBoolean

If True, the exact ground state energy of the spin operator is computed classically, and compared to the energy in the optimization process. The default is False.