
GP-equivalent posterior for a Quantum Kernel Ridge Regression fit
Source:R/quantum_posterior.R
quantum_krr_posterior.RdGiven a fitted quantum_krr_fit() model, returns the predictive
posterior at new inputs as an edaphos_posterior(). Using the
well-known equivalence between Kernel Ridge Regression and
Gaussian-process regression (Rasmussen & Williams 2006, §2.3), the
predictive variance is derived analytically from the same gram
matrix K + lambda I that produces the point prediction. Aleatoric
noise is estimated from leave-one-out residuals.