kestrelquantum / QuantumCollocation.jl

Quantum Optimal Control with Direct Collocation
MIT License
29 stars 7 forks source link

[Feature] Quadratic regularizer with nonzero baseline #61

Closed andgoldschmidt closed 4 months ago

andgoldschmidt commented 10 months ago

Is your feature request related to a problem? Please describe. Sometimes we might want to keep controls or trajectories close to some baseline. Currently, $||a||_R$ is allowed, but the new feature should allow for $||a - a_0||_R$.

Describe the solution you'd like The QuadraticRegularizer objectives can be modified with an optional argument for the new feature. The objective function, gradient, and hessian can be modified to account for the shifted baseline.

andgoldschmidt commented 8 months ago

This has been implemented on a feature branch, but needs to be tested and merged into main.

Some problem templates may want to allow access to this feature via a keyword argument.