What problem does it solve? Numerical gradient methods like finite differences introduce approximation error and require careful step-size tuning when training parameterized quantum circuits. This Skill provides exact analytic gradient computation using the parameter shift rule, supporting both expectation value (Estimator) and probability distribution (Sampler) gradients on Qiskit. ## Core Features & Use Cases - Exact Analytic Gradients: Computes gradients with zero approximation error by evaluating circuits at shifted parameter values (theta +/- pi/2), batching all 2n evaluations into one primitive job. - Dual Primitive Support: Works with both ParamShiftEstimatorGradient for expectation values and ParamShiftSamplerGradient for probability distributions. - Selective Differentiation: Differentiate a subset of circuit parameters while holding others fixed, with output order matching the requested parameter list. - Use Case: When training a variational quantum eigensolver or quantum machine learning model, use this Skill to compute exact loss gradients with respect to rotation gate angles for gradient-based optimizers. ## Quick Start Ask the assistant to compute the gradient of a two-qubit RY circuit with a ZZ observable using the parameter shift rule in Qiskit.