Draft:Parameter shift rule
Template:AfC submission The parameter shift rule (PSR) is a method used in quantum computing, specifically for variational quantum algorithms (VQAs), to compute the exact gradient of an expectation value with respect to a parameter in a quantum circuit. PSRs enabl efficient and exact optimization crucial for the advancement of quantum algorithms in chemistry, optimization, and machine learning.
A variational quantum circuit (VQC) is a parameterized quantum circuit (PQC) [1] where certain gates depend on continuous parameters. These parameters are adjusted to optimize a cost function, typically the expectation value of an observable, by training the circuit in a way analogous to training weights in a neural network. To optimize the parameters, one needs to compute the gradient of the cost function with respect to these parameters. However, directly computing gradients on quantum hardware is non-trivial due to the probabilistic nature of quantum measurements and the inability to directly access the quantum state.
Known Parameter Shift Rules
Let denote the quantum state in the Hilbert space. Consider the unitary operator , defined by a Hamiltonian and a parameter . The eigenvalues of are expressed as with real-valued . We aim to determine the mean value of a measurable observable defined as follows:
A parameterized quantum circuit (PQC) generates probabilistic results, using the expectation value of an observable as an estimate. While mean values of simple variables are obtained by averaging measurement outcomes, there are several methods to optimize the estimation of expectation values for observables involving multiple qubits[2][3][4] .
The PSRs establish connections between derivatives of a quantum function and the function's evaluations at distinct points. For the two eigenvalue Hamiltonian with the PSR is[5]
where . In[6], the latter rule is generalized to gates with eigenvalues , resulting in frequencies:
where , and are the corresponding coefficients.
In[7], the general parameter-shift rules are introduced for the scenario of evenly spaced parameter shifts (or ), where is considered to reconstruct odd (even) functions: