I am trying to implement a Variational Quantum Classifier using qiskit's VQC. I have set the feature map to ZZFeatureMap
and am using the RealAmplitudes
ansatz. I am using cross_entropy
loss function and ADAM
optimiser. One more parameter that VQC requires is a QuantumInstance object and this I have set to aer_simulator
with 1024 shots
.
The code and instructions I followed is in this qiskit's tutorial.
When I try to train the classifier, it running for a different number of iterations each time. Is there a way to set minimum number of iterations ? and how are iterations different from shots ?
Also, how can I set the learning rate for the algorithm ? Thank you !