Constant amplitude optimization in GRAPE #83
Replies: 1 comment
-
This does not seem like it would be easily possible. GRAPE by definition optimizes piecewise-constant pulses on a fixed time grid. The implementation in GRAPE.jl calculates the gradient vector (gradient of You might be able to figure out something with constraints. LBFGSB allows for box constraints, for example. If you found a solver that allows you to express the constraint that all values should be the same, that would hypothetically solve the problem. I'm not sure that there is such a solver. You could also try something with running costs: basically, add a smoothness term with a very large weight (penalizing ϵₙ - ϵₙ₋₁ ≠ 0). That would only be approximate, of course, so I'm not sure how far that will get you. In general, I would approach this in one of two ways:
Of course, approach (2) also combines with approach (1). You can just iterate over the two optimizations. It might also be possible that one could derive GRAPE from scratch for a constant field… but if that yields a numerical scheme, you would have to implement that scheme completely by hand (GRAPE.jl wouldn't help you at all). But it might be worth thinking about. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to have a GRAPE optimization where one of the controls being optimized is just a flat constant while having other controls that are time-dependent?
For example, I could define the following constant function structure:
Then if I do:
And plot it...
Here, we see that the amplitude that should have been a constant has a time dependence. I think it is also explicitly mentioned that parameterized functions should not be used together with GRAPE, so this is perhaps expected. Is it simply not possible to combine a constant and a time-varying field in GRAPE, or should it be defined differently?
Beta Was this translation helpful? Give feedback.
All reactions