To understand and implement the parameter shift rule in Qiskit, you can refer to the official Qiskit documentation and tutorials. The parameter shift rule is a method used to calculate the gradient of a quantum circuit's output with respect to its parameters. This technique is particularly useful in variational quantum algorithms, such as the Variational Quantum Eigensolver (VQE) and Quantum Approximate Optimization Algorithm (QAOA).
Initial Setup: Begin with an initial state vector $( |\psi(\theta)\rangle = U(\theta)|0\rangle )$, where $( U(\theta) )$ represents a parameterized quantum circuit. Here, $( \theta )$ parameterizes the quantum circuit.
The parameter shift rule allows you to compute the gradient of a quantum circuit with respect to its parameters by evaluating the circuit at shifted parameter values. For a parameter $( \theta $), the gradient $( \frac{\partial f}{\partial \theta} )$ can be approximated as:
$$
\frac{\partial f(\theta)}{\partial \theta} \approx \frac{f(\theta + \epsilon) - f(\theta - \epsilon)}{2}
$$
Here, $( f(\theta) )$ represents the output of the entire quantum circuit, typically with respect to an observable ( O ).
Observable ( O ): The choice of observable ( O ) depends on the application. For instance, in binary classification tasks, you might choose the Pauli-Z operator, which measures in the computational basis (returns 0 or 1), corresponding to labeling outcomes. In VQE, the observable could be a local Hamiltonian, as described in the VQE section of the paper you referred to.
This approach allows for efficient computation of gradients using quantum circuits, facilitating optimization tasks in variational quantum algorithms.
You can incorporate this understanding into your implementation in Qiskit by following examples and tutorials provided in the Qiskit documentation and related resources. Look at RealAmplitudes, which includes the parameterization of the circuit, which is later being optimized in VQC. For theoretical details of parameter optimization , you can follow up this paper.