Enhancements
- Add
cmaes
as anoptlib
method, use it by default for'auto'
preset if available since ih has less overhead thanoptuna
. - Add
HyperOptimizer.plot_parameters_parallel
for plotting the sampled parameter space of a hyper optimizer method in parallel coordinates. - Add
ncon
interface. - Add
utils.save_to_json
andutils.load_from_json
for saving and loading contractions to/from json. - Add
examples/benchmarks
with various json benchmark contractions - Add
utils.networkx_graph_to_equation
for converting a networkx graph to cotengra styleinputs
,output
andsize_dict
. - Add
"max"
as a validminimize
option foroptimize_optimal
(also added tocotengrust
), which minimizes the single most expensive contraction (i.e. the cost scaling) - Add
RandomOptimizer
, a fully random optimizer for testing and initialization purposes. It can be used withoptimize="random"
but is not recommended for actual optimization. - Add
PathOptimizer
to top-level namespace. ContractTreeCompressed.from_path
: add theautocomplete
option- Add option
overwrite="improved"
to reusable hyper optimizers, which always searches but only overwrites if the new tree is better, allowing easy incremental refining of a collection of trees. - einsum via bmm (
implementation="cotengra"
) avoids using einsum for transposing inputs. - add example {ref}
ex_extract_contraction
doc
Bug fixes
- Fix
HyperGraph.plot
when nodes are not labelled as consecutive integers (#36) - Fix
ContractionTreeCompressed.windowed_reconfigure
not propagating the default objective - Fix
kahypar
path optimization when no edges are present (#48)
Full Changelog: v0.6.2...v0.7.0