# SPSA max_trials

I'm using SPSA as an optimizer in VQE algorithm.
The code runs on ibmq-qasm-simulator.
I've set SPSA max_trials parameter to 500, but, when I run the code, it makes 1000 iterations.
I've tried with COBYLA optimizer too, and it makes correctly 500 iterations.
Does someone know why?
Thanks