qiskit-community / qiskit-nature

Qiskit Nature is an open-source, quantum computing, framework for solving quantum mechanical natural science problems.
https://qiskit-community.github.io/qiskit-nature/
Apache License 2.0
306 stars 207 forks source link

refactor: remove all deprecated code #1248

Closed mrossinek closed 1 year ago

mrossinek commented 1 year ago

Summary

This commit removes all deprecated code. Even though this is done a bit earlier than originally announced under the Qiskit deprecation policy, we are taking this step now since this project has become part of a community effort. As a direct consequence, new codeowners will soon join the team behind Qiskit Nature. Rather than handing over a codebase that includes pieces of code which need attention in the near future (and even continued support until then) we are removing these parts early.

As a consequence, if you still require parts of this code, we suggest you stick to Qiskit Nature 0.6 until you can transition based on the provided migration guides.

This commit also removes the deprecation utilities which are superseded by the ones provided by Qiskit directly (see qiskit.utils.deprecation). Thus, this PR closes #1196

Details and comments

mrossinek commented 1 year ago

This also closes #1169

mrossinek commented 1 year ago

Since there is too much to go through in detail in this PR, here are a few noteworthy details:

woodsp-ibm commented 1 year ago

What do you want to do about the AdaptVQE howto docs/howtos/adapt_vqe.rst It refers to settings that this removes. I get that it will also need to be updated around qiskit_algorithms but this PR removes some of what it refers to, so if we want it in sync with this then maybe update it here - and again for the algorithms change later.

mrossinek commented 1 year ago

What do you want to do about the AdaptVQE howto docs/howtos/adapt_vqe.rst It refers to settings that this removes. I get that it will also need to be updated around qiskit_algorithms but this PR removes some of what it refers to, so if we want it in sync with this then maybe update it here - and again for the algorithms change later.

Nice catch! I did not think to look through the tutorials and how-tos for additional usage of settings or other removed aspects. Will do that now :+1:

mrossinek commented 1 year ago

I have pushed two additional changes: