GRAPE's method in Quantum Control (GRAPE.jl)

There’s two points where you didn’t follow my instructions :wink: :

  1. You’re not using the correct signature for store_pulses. It has to be store_pulses(wrk, iteration, _...)
  2. You’re not passing store_pulses as an info_hook, but the result of store_pulses(wrk), which is where your error originates.

Here is a complete working example: