qutip_qtrl.optimconfig

Configuration parameters for control pulse optimisation

Classes

OptimConfig()

Configuration parameters for control pulse optimisation

class qutip_qtrl.optimconfig.OptimConfig[source]

Configuration parameters for control pulse optimisation

Attributes:
log_levelinteger

level of messaging output from the logger. Options are attributes of qutip_qtrl.logging_utils, in decreasing levels of messaging, are: DEBUG_INTENSE, DEBUG_VERBOSE, DEBUG, INFO, WARN, ERROR, CRITICAL Anything WARN or above is effectively ‘quiet’ execution, assuming everything runs as expected. The default NOTSET implies that the level will be taken from the QuTiP settings file, which by default is WARN

dyn_typestring

Dynamics type, i.e. the type of matrix used to describe the dynamics. Options are UNIT, GEN_MAT, SYMPL (see Dynamics classes for details)

prop_typestring

Propagator type i.e. the method used to calculate the propagtors and propagtor gradient for each timeslot options are DEF, APPROX, DIAG, FRECHET, AUG_MAT DEF will use the default for the specific dyn_type (see PropagatorComputer classes for details)

fid_typestring

Fidelity error (and fidelity error gradient) computation method Options are DEF, UNIT, TRACEDIFF, TD_APPROX DEF will use the default for the specific dyn_type (See FidelityComputer classes for details)

check_create_output_dir(output_dir, desc='output')[source]

Checks if the given directory exists, if not it is created.

Returns:
dir_okboolean

True if directory exists (previously or created) False if failed to create the directory

output_dirstring

Path to the directory, which may be been made absolute

msgstring

Error msg if directory creation failed