|
Algorithm 2 VQA algorithm. |
-
Input:
An optimization problem.
-
Output:
Parameters in the parameterized quantum circuit.
-
1:
Construct the objective function.
-
2:
Construct the parameterized quantum circuit.
-
3:
Prepare the quantum state and measure the expectation value.
-
4:
Use a classical optimizer to determine new parameters.
-
5:
Iterate the procedure in step 3 and 4 until the convergence of the value.
-
6:
return the final parameters.
|