optimize
full name: tenpy.tools.optimization.optimize
parent module:
tenpy.tools.optimization
type: function
- tenpy.tools.optimization.optimize(level_compare=OptimizationFlag.default)[source]
Called by algorithms to check whether it should (try to) do some optimizations.
- Parameters:
level_compare (OptimizationFlag) – At which level to start optimization, i.e., how safe the suggested optimization is.
- Returns:
optimize – 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.
- Return type: