LLNL / quandary

Optimal control for open quantum systems
MIT License
49 stars 9 forks source link

Unitarity enforcement option for intermediate condition. #20

Closed dreamer2368 closed 8 months ago

dreamer2368 commented 9 months ago
dreamer2368 commented 9 months ago

Your code looks fine, but I don't understand why the discontinuity reported after rollout becomes non-zero. This happens, e.g., in the case results/gate_swap02/swap02.cfg when optim_unitarize_interm_ic=true. Setting that variable to false gives zero rollout discontinuities, as expected.

Added a commit to fix the rollout result.

dreamer2368 commented 9 months ago

Three main changes are added: