
Exact ground-state energy via classical diagonalisation
Source:R/quantum_vqe.R
quantum_vqe_exact.RdRuns Qiskit's NumPyMinimumEigensolver (dense diagonalisation of
the Hamiltonian matrix) and returns the exact ground-state
eigenvalue. Works for any Hamiltonian up to ~12 qubits before
memory becomes the limit.