kestrelquantum / QuantumCollocation.jl

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

Min time objective fix for unequal timesteps #47

Closed andgoldschmidt closed 11 months ago

andgoldschmidt commented 1 year ago

Describe the bug The min time objective was written for equal timesteps, but needs to actually take the sum of timesteps

To Reproduce Call MinimumTimeObjective for a problem_template that uses unequal timesteps

Expected behavior Loss over sum of timesteps and gradients that update all timesteps, not just the last (shared) timestep.