What is a variational optimizer responsible for?

In a hybrid variational quantum algorithm, what does the classical optimizer do?

A

Correct readout errors in the counts returned by each shot

B

Choose which observable the quantum circuit will measure

C

Build the parameterized circuit that prepares the trial state

D

Update circuit parameters to improve the objective value