Qiskit / qiskit.org

The Qiskit official website
https://qiskit.org
Apache License 2.0
101 stars 108 forks source link

change the VQE examples to stop using the deprecated qiskit.algorithms #3531

Closed 1ucian0 closed 1 year ago

1ucian0 commented 1 year ago

Changes

Fixes #3487 Co-authored-by: @ElePT

As qiskit.algorithms is deprecated, the VQE examples in the landing page needs to be refactor.

Implementation details

How to read this PR

The change was implemented with a script. So, if you are ok with one of the entries, you are ok with all of them. They are literally the same.

Screenshots

1ucian0 commented 1 year ago

LGTM!! I only have one final suggestion, to remove the empty line between imports and code for the hamiltonian definition step (there is none for the other steps).

done in https://github.com/Qiskit/qiskit.org/commit/1ea4fcbc676223dd75bb1c3823d74294184792d0 Let me know what you think.