qutip_qtrl.loadparams

Loads parameters for config, termconds, dynamics and Optimiser objects from a parameter (ini) file with appropriate sections and options, these being Sections: optimconfig, termconds, dynamics, optimizer The options are assumed to be properties for these classes Note that new attributes will be created, even if they are not usually defined for that object

Functions

load_parameters(file_name[, config, ...])

Import parameters for the optimisation objects Will throw a ValueError if file_name does not exist

set_param(parser, section, option, obj, ...)

Set the object attribute value based on the option value from the config file.

qutip_qtrl.loadparams.load_parameters(file_name, config=None, term_conds=None, dynamics=None, optim=None, pulsegen=None, obj=None, section=None)[source]

Import parameters for the optimisation objects Will throw a ValueError if file_name does not exist

qutip_qtrl.loadparams.set_param(parser, section, option, obj, attrib_name)[source]

Set the object attribute value based on the option value from the config file. If the attribute exists already, then its datatype is used to call the appropriate parser.get method Otherwise the parameter is assumed to be a string