Skip to content

Replace the TensorOperations Optimal backend with OMEinsumContractionOrders ExhaustiveSearch#219

Merged
mtfishman merged 1 commit into
mainfrom
mf/drop-tensoroperations
Jul 13, 2026
Merged

Replace the TensorOperations Optimal backend with OMEinsumContractionOrders ExhaustiveSearch#219
mtfishman merged 1 commit into
mainfrom
mf/drop-tensoroperations

Conversation

@mtfishman

@mtfishman mtfishman commented Jul 13, 2026

Copy link
Copy Markdown
Member

Summary

Drops the TensorOperations dependency, which existed only to compute optimal contraction orders through the Optimal backend, in favor of OMEinsumContractionOrders' ExhaustiveSearch (added in TensorBFS/OMEinsumContractionOrders.jl#119, released in v1.3). ExhaustiveSearch is a port of the same optimaltree netcon algorithm, and ITensorBase's OMEinsumContractionOrders extension already dispatches on any CodeOptimizer, so it needs no new code. The Optimal evaluation-order algorithm is removed. Pass ExhaustiveSearch() in its place.

@mtfishman mtfishman force-pushed the mf/drop-tensoroperations branch from 6243767 to 03657ac Compare July 13, 2026 18:25
…onOrders `ExhaustiveSearch`

Drops the TensorOperations dependency, which existed only to compute optimal contraction orders through the `Optimal` backend, in favor of OMEinsumContractionOrders' `ExhaustiveSearch` (added in TensorBFS/OMEinsumContractionOrders.jl#119, released in v1.3). `ExhaustiveSearch` is a port of the same `optimaltree` netcon algorithm, and ITensorBase's OMEinsumContractionOrders extension already dispatches on any `CodeOptimizer`, so no new code is needed. The `Optimal` evaluation-order algorithm is removed. Use `ExhaustiveSearch()` in its place.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mtfishman mtfishman force-pushed the mf/drop-tensoroperations branch from 03657ac to 92295e2 Compare July 13, 2026 18:27
@mtfishman mtfishman enabled auto-merge (squash) July 13, 2026 18:34
@mtfishman mtfishman merged commit a300d28 into main Jul 13, 2026
16 checks passed
@mtfishman mtfishman deleted the mf/drop-tensoroperations branch July 13, 2026 18:47
mtfishman added a commit to ITensor/ITensorNetworksNext.jl that referenced this pull request Jul 13, 2026
## Summary

Widens the ITensorBase compat to include 0.12. ITensorBase 0.12 removed
the `Optimal` contraction-order backend
(ITensor/ITensorBase.jl#219), so the
`contract_network` test that exercised `ITensorBase.Optimal` now uses
OMEinsumContractionOrders' `ExhaustiveSearch`, which runs the same
netcon algorithm. This also drops the test's now-unused TensorOperations
dependency.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant