Fixes all the deprecation warnings raised by Qiskit 1.2.
A warning filter still has to be applied since Qiskit itself imports deprecated code on the default path. This should be fixed in a follow-up release.
Checklist:
[x] The pull request only contains commits that are related to it.
[x] I have added appropriate tests and documentation.
[x] I have made sure that all CI jobs on GitHub pass.
[x] The pull request introduces no new warnings and follows the project's style guidelines.
Description
Fixes all the deprecation warnings raised by Qiskit 1.2. A warning filter still has to be applied since Qiskit itself imports deprecated code on the default path. This should be fixed in a follow-up release.
Checklist: