from qiskit.aqua import QuantumInstance
from qiskit.aqua.components.optimizers import COBYLA
from qiskit.aqua.components.variational_forms import RY
from qiskit.aqua.algorithms import VQE
I am unable to implement it in my code and cannot figure out if the following libraries have been shifted to qiskit-terra or somewhere else?
The Qiskit Aqua support finished on December 2021 after being deprecated on April 2021.
For the objects you are referring in your post, currently (March 2024) the situation is:
qiskit.aqua.QuantumInstancewas replaced by primitives. See migration guide hereqiskit.aqua.components.optimizers.COBYLAis nowqiskit_algorithms.optimizers.COBYLA(docs)qiskit.aqua.components.variational_forms.RYhas no direct replacementqiskit.aqua.algorithms.VQEis now inqiskit_algorithms.VQE(docs)The alternative is to have an environment with old version of
qiskit-aquaand its dependencies at April 2021 and a Python 3.8. Something like this: