I’m following the tutorial (https://qiskit.org/textbook/ch-applications/vqe-molecules.html) to construct the VQE circuit. In this tutorial, it used the classical optimizer like “COBYLA, SPSA, SLSQP” to choose the appropriate parameters. I wonder how to adjust the optimizers so the optimizers will always choose the specific parameters.
I want to choose two kinds of specific parameters:
The multiple of a number. For example: I want the parameters to be 2πi/2^10 ,i∈N
A given set. For example: I want the parameters to be chosen from a set {0.01, 0.05, 0.23, …}
How do I constraint the optimizers? Thanks for answering my questions!