This jupyter notebook implements GRAPE
for the synthesisizing a CNOT gate.
More info can be found here and in this short presentation.
In the following jupyter notebook at In[8] 1
the starting guess for the control field is prepared as follows
- generate a vector of random numbers for each control field
- convolve it with another vector of length 10 (consisting of '1').
Why is there a need to convolve the field? GRAPE does not say anything about how one must generate the initial guess. Also as side questions
- why do it with a vector of ones?
- what is the reason behind choosing the value 2*np.pi*0.01 in the initial random generation step