optimize¶
full name: tenpy.tools.optimization.optimize
parent module:
tenpy.tools.optimization
type: function
-
tenpy.tools.optimization.
optimize
(level_compare=<OptimizationFlag.default: 1>)[source]¶ Called by algorithms to check whether it should (try to) do some optimizations.
- Parameters
- level_compareOptimizationFlag
At which level to start optimization, i.e., how safe the suggested optimization is.
- Returns
- optimizebool
True if the algorithms should try to optimize, i.e., whether the global “optimization level” is equal or higher than the level to compare to.