qutip_qoc._jopt module

This module contains functions that implement the JOPT algorithm to calculate optimal parameters for analytical control pulse sequences.

class qutip_qoc._jopt._JOPT(objective, time_interval, time_options, control_parameters, alg_kwargs, guess_params, **integrator_kwargs)[source]

Bases: object

Class for storing a control problem and calculating the fidelity error function and its gradient wrt the control parameters.

_infid(params)[source]

calculate infidelity to be minimized

_prepare_generator()[source]

prepare Hamiltonian call signature to only take one parameter vector ‘p’ for mesolve like: qt.mesolve(H, psi0, tlist, args={‘p’: p})

qutip_qoc._jopt._abs_jvp(primals, tangents)[source]

Custom jvp for absolute value of complex functions