arXiv:2610.31554quant-phOct 2026

Manuscript Offprint

arXiv:2610.31554

ArcTN: Efficient Tensor-Network Contraction Planning for Quantum Circuit Simulation

Zhengyi Liu, Li Liu, Songtao Liu, Xianglong Liu, Xiangzhen Zhou, Mingyu Huang, Dingchao Gao, Shenggang Ying, Ji Guan, Bolong Chen

Zhengyi Liu 1^{1}, Li Liu 2^{2}, Songtao Liu 1^{1}, Xianglong Liu 1^{1}, Xiangzhen Zhou 1,4^{1,4}, Mingyu Huang 1^{1}, Dingchao Gao 1^{1}, Shenggang Ying 3^{3}, Ji Guan 3^{3}, and Bolong Chen 2^{2}

1^{1} Arclight Quantum Computing Inc.

2^{2} HYGON

3^{3} Institute of Software, Chinese Academy of Sciences

4^{4} Nanjing Tech University

Abstract. Efficient tensor-network simulation of quantum circuits critically depends on finding contraction orders that minimize computational cost without excessive optimization overhead or large intermediate tensors. We present ArcTN, a contraction-order optimization framework that addresses these challenges through adaptive search and memory-aware slicing. ArcTN provides two complementary search presets, Light and Heavy, that combine diversified initial orders, adaptive randomized-greedy search, selective subtree reconfiguration, and parallel tempering with stage-specific stopping criteria. Light prioritizes low planning overhead, whereas Heavy performs more extensive refinement to obtain lower-cost contraction orders. The framework also supports Fixed and Dynamic slicing to control intermediate tensor sizes, together with numerical execution using optimized contraction orders. We evaluate ArcTN on QC32, a benchmark comprising 32 quantum-circuit tensor networks, against established contraction optimizers. On the 30 circuits completed by all eight main configurations, ArcTN Light reduces contraction FLOPs by 61.32% with a 1.62× planning-time speedup over Cotengra Auto/CMA-ES. ArcTN Heavy reduces FLOPs by 43.83% with a 7.21× planning-time speedup over Cotengra AutoHQ/Optuna, and by 11.85% with a 1.33× speedup over OMECO TreeSA-8. For memory-constrained contractions, Dynamic slicing satisfies the prescribed intermediate-tensor size limits in all 90 runs on the 18 common scalar-output instances and reduces total sliced FLOPs by 31.99% relative to Fixed slicing, at the cost of additional planning time. Experiments with a common NumPy executor further demonstrate that ArcTN Heavy achieves the lowest combined planning and execution time among five evaluated configurations on their shared successful cases. On 672 additional networks built from 320 MQT Bench circuits for amplitude, expectation-value, and state tasks, ArcTN Heavy obtains the lowest geometric-mean FLOPs on the 142 large networks while planning 3.1× and 31× faster than Cotengra AutoHQ and Hyper128.

Keywords: Tensor networks · Contraction order optimization · Quantum circuit simulation · Slicing.

1 Introduction

Classical simulation supports the development of quantum algorithms, the validation of quantum devices, and the study of quantum dynamics [2]. Many simulation tasks require

Z. Liu et al.

only selected quantities, such as a circuit amplitude or an expectation value, rather than the complete quantum state. Tensor networks (TNs) provide a common representation for these computations. Tensors encode operations and states, and contraction evaluates the requested quantity by multiplying tensor entries and summing over non-output indices [17,8]. This representation allows a simulator to exploit the structure of the circuit and the requested output without explicitly constructing the full state vector.

However, a tensor-network representation does not by itself ensure efficient simulation. The same network can be contracted in many different orders, with substantially different arithmetic costs and intermediate tensor sizes [17,19,8]. An unsuitable order can make a contraction unnecessarily expensive or produce tensors too large to store. Efficient simulation therefore depends on contraction planning, which selects an order that reduces computational cost while accounting for the resources needed to find and execute it.

The difficulty is that contraction planning must balance three coupled concerns. First, the returned order should have low computational cost. Second, finding that order should not require excessive planning time. More extensive search may improve an order, but its additional cost must be justified by the execution savings, either for one expensive contraction or across repeated contractions with the same network structure. Third, the plan must accommodate tensor-size constraints. Slicing selected indices splits a contraction into smaller tasks and reduces individual tensor sizes, but can increase the total computation across those tasks [8]. These concerns cannot be treated independently, because the order determines which tensors become large, while slicing changes the costs of alternative orders. A good unsliced order is therefore not necessarily a good starting point for a low-cost sliced computation.

Existing optimizers, including Cotengra [8], OMECO [14], and TNCO [16], provide techniques for constructing and improving contraction orders. The practical challenge is not simply to search more extensively, but to coordinate these techniques. Which initial orders should be explored, which candidates deserve further refinement, when should a search stage stop, and how should the order be revised when slicing is required? Moreover, improvements in modeled operation count must be assessed alongside actual execution time, since fewer operations do not by themselves guarantee faster execution on a particular backend.

We present ArcTN, a contraction-planning tool that addresses these concerns through adaptive search and tensor-size-aware slicing. Its two complementary search presets, Light and Heavy, organize established construction and refinement techniques with different levels of planning effort. Both use the cross-entropy method to adapt random-greedy candidate generation, retain multiple starting orders, and selectively refine candidates through subtree reconfiguration and parallel tempering. Retaining multiple starting points allows refinement to explore orders whose initial costs may not reflect their eventual quality. Stage-specific stopping criteria, together with overall time- and rate-based checks, control the effort spent on construction and refinement. Light prioritizes low planning overhead, whereas Heavy devotes more effort to obtaining lower-cost orders.

For tensor-size constraints, ArcTN provides Fixed and Dynamic slicing. Fixed selects sliced indices while preserving the chosen contraction order. Dynamic additionally alternates slice selection with local order refinement, retaining the feasible plan with the lowest modeled total cost across all slices. This allows the order to be reconsidered as slicing changes the computation, rather than treating slicing solely as a postprocessing step. Both modes target a user-specified bound on the size of each contraction result within a slice.

ArcTN implements this workflow in Rust with Python interfaces. Given a tensor-network description, it validates the input, searches for an order, optionally constructs a sliced plan, and supports numerical execution through a native CPU executor or an external array backend. Execution plans can be retained and reused with new tensor values without repeating the order search, connecting planning to both one-off and repeated computations.

In summary, the main contributions of this tool paper are:

  1. A coordinated planning framework. We organize adaptive candidate generation, selective refinement, and stopping control into the Light and Heavy search presets, complemented by Fixed and Dynamic slicing for tensor-size constraints.

  2. An executable contraction tool. We provide a Rust implementation with Python interfaces that connects order search and slicing to numerical execution, reusable execution plans, and integration with external tensor-network workflows.

  3. An evaluation of planning and execution benefits. We evaluate ArcTN on QC32, the 32 quantum-computing instances from Einsum Benchmark [3], and on 672 networks built from 320 MQT Bench circuits [20]. On QC32, Light reduces modeled FLOPs by 61.32% with a 1.62× planning-time speedup over Cotengra Auto/CMA-ES, while Heavy reduces FLOPs by 43.83% with a 7.21× speedup over Cotengra AutoHQ/Optuna. With a common NumPy executor, Heavy also achieves the lowest combined planning–execution time among five configurations. Dynamic reduces total sliced FLOPs by 31.99% relative to Fixed for scalar outputs. On the large MQT Bench networks, Heavy obtains the lowest geometric-mean FLOPs while planning 3.1× and 31× faster than Cotengra AutoHQ and Hyper128.

The remainder of this paper is organized as follows. Section 2 introduces tensor networks and formalizes contraction planning, its cost model, and tensor-size constraints. Section 3 presents the architecture and capabilities of ArcTN, including execution and plan reuse. Section 4 describes the contraction-order search framework and the Fixed and Dynamic slicing methods. Section 5 describes the exact integer cost arithmetic of ArcTN's dynamic programs. Section 6 evaluates planning efficiency, contraction quality, numerical execution, and slicing under tensor-size constraints, and planning on circuits from MQT Bench. Section 7 discusses related tools, and Section 8 concludes the paper.