Quantum splines for non-linear approximations