set_level

tenpy.tools.optimization.set_level(level=1)[source]

Set the global optimization level.

Parameters:

level (int | OptimizationFlag | str | None) – The new global optimization level to be set. None defaults to keeping the current level.