|q⟩ Bad Qubits

← Question Bank

Multiple choice
The parameter-shift rule estimates a gradient as 0.5(f(θ+π/2)f(θπ/2))0.5 ( f(\theta + \pi/2) - f(\theta - \pi/2) ), where here f(θ)=cos(θ)f(\theta) = \cos(\theta). At θ=π/4\theta = \pi/4, what value does it give?