-
Notifications
You must be signed in to change notification settings - Fork 31
g_a_integrals: possible missing a coefficient of lambda/S ? #96
Description
First, thanks for open sourcing this implementation! I was writing my own implementation in julia from scratch following your paper SciPostPhys.7.6.080, but noticed a discrepancy in the J values: basically, e.g. with this example the infidelity J_T agrees but the integral of g_a differs. Glancing over the code, look like the integral of g_a
Line 474 in 9f9a223
| g_a_integrals[i_pulse] += abs(Δϵ) ** 2 * dt # dt may vary! |
does not agree with the second line of Eq. 7 in the paper: the integrand missed the \lambda_{a,l}/S_l(t) term and is just (\delta \epsilon)^2, and when I also drop that \lambda_{a,l}/S_l(t) term my julia code does agree with your python code. If I understand it correctly, this does not affect the shape of the controls (may change a bit due to iterating process stopping at a different iteration) but may just be that the actual J values would be different from the definition in the reference paper? What would be the correct term for the running cost int g_a part of J?
Again, thanks a lot!