Draft:Parameter shift rule

From testwiki
Jump to navigation Jump to search

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 U(t), defined by a Hamiltonian H and a parameter t. The eigenvalues of U(t) are expressed as {exp(iλjt)}j=1n with real-valued {λj}j=1n. We aim to determine the mean value of a measurable observable C defined as follows:

f(t)ψ|U(t)CU(t)|ψ

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 μ12=|λ1λ2| the PSR is[5]

f(t)t|t=0=μ122sin(μ12ϕ1)(f(ϕ1)f(ϕ1)).

where ϕ1(0,π). In[6], the latter rule is generalized to gates with eigenvalues {1,0,1}, resulting in m=2 frequencies:

f(t)t|t=0=y1[f(ϕ1)f(ϕ1)]y2[f(ϕ2)f(ϕ2)],

where ϕ1,ϕ2(0,π), and y1,y2 are the corresponding coefficients.

In[7], the general parameter-shift rules are introduced for the scenario of evenly spaced parameter shifts ϕj=(2j1)π2n (or ϕj=jπn), where j[1,n] is considered to reconstruct odd (even) functions:

f(0)=j=12nf((2j1)π2n)(1)j14nsin2((2j1)π4n),

f(0)=f(0)2n2+16+j=12n1f(jπn)(1)j12sin2(jπ2n).

Parameter Selection

References

Template:Reflist