  We prove optimality conditions for generalized quantum variational problems
with a Lagrangian depending on the free end-points. Problems of calculus of
variations of this type cannot be solved using the classical theory.
