|q⟩ Bad Qubits

← Question Bank

Multiple choice
A circuit prepares RY(θ)0RY(\theta)|0\rangle, so the cost E(θ)=Z=cos(θ)E(\theta) = \langle Z\rangle = \cos(\theta). Using the parameter-shift rule, the gradient is 0.5(E(θ+π/2)E(θπ/2))0.5(E(\theta + \pi/2) - E(\theta - \pi/2)). At θ=0.8\theta = 0.8, what is dE/dθdE/d\theta?