RL-Guided Contraction of Symbolic Tensor Networks for Quantum Circuit Equivalence
Suhaib Al-Rousan, Christian Schilling, Max Tschaikowski, Kim Guldstrand Larsen
NeurIPS 2026
TL;DR. We propose an RL framework to obtain a GNN policy for contracting a tensor network represented by a symbolic data structure.
Abstract. Verifying that two quantum circuits are equivalent is a critical challenge in compiler validation. A common approach is to transform the circuits into a tensor network and then iteratively contract tensors in the network. The order in which contractions are applied has a crucial influence on the complexity, as tensor size may grow exponentially in the number of qubits. This motivated research into heuristic policies to find good contraction orders, including recent work based on reinforcement learning (RL). Orthogonally, to mitigate the complexity of an explicit tensor representation, tensor decision diagrams (TDDs) have been proposed as a compact symbolic representation. However, also the TDD performance is sensitive to the contraction order, and policies designed for tensor networks do not perform well in case of a TDD representation. In this paper, we propose an RL framework to obtain a graph-neural-network policy that navigates the trade-off between arithmetic complexity and TDD size. Experimental results demonstrate that a policy learned with our framework is effective at taming the symbolic representation size.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 4 reviews · OpenReview
Updated 25 Nov 2026, 03:46 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
Update: Please read final justification
The authors pose the contraction order planning for tensor decision diagram networks as an RL problem. Then work on training a GNN policy with PPO under a size-penalizing reward and curriculum, They report large peak memory reductions over Cotengra planners and the TDD-specific Counting heuristic, zero-shot generalization from 23 to 45 qubits.
To potentially improve would suggest to prioritze (1) ensuring every training and evaluation instance is an equivalent circuit pair whose network contracts to identity; demonstrate behavior on non-equivalent pairs, which the equivalence-checking use case requires (2) clarifying the methodology behind the two scaling tables (pure RL vs hybrid and per-method baseline numbers rather than a virtual best) and whether a Counting prefix would equally help classical planners (3) justifying the reward functional form and empirical scaling constants (or other alternatives?) (4) also adding seed variance for training. Given time and other constraints potentially deprioritize requests to rerun on server hardware.
Final justification
I can confirm that I have read the author's responses in full along with discussions with reviewers. Had made 4 asks in the initial meta review - and all the 4 were answered with new evidence. On the newly constructed non equivalent instances the policy attains the lowest GM in both regimes and the authors also stated the unfavorable parts themselves. 3 of the 4 reviewers were sufficiently satisfied with the rebuttal and reviewer with most decisive ask moved from borderline reject to border line accept. The authors have also unprompted, added a negative result to state their scope.
A couple of reviews are discounted. The rating with 5 is given low weightage as text was found in the earlier review to contain phrasing from the injected prompt in the pdf (prompt injected by PC to evaluate reviews) and its review and post rebuttal comments were read on its merits. Similarly, the other review of 2 is also given lower weightage as the reviewer contradicts their own statement even with new evidence stating they will keep it as borderline reject but changed it to reject.
Read meta-review
Meta-review
Update: Please read final justification
The authors pose the contraction order planning for tensor decision diagram networks as an RL problem. Then work on training a GNN policy with PPO under a size-penalizing reward and curriculum, They report large peak memory reductions over Cotengra planners and the TDD-specific Counting heuristic, zero-shot generalization from 23 to 45 qubits.
To potentially improve would suggest to prioritze (1) ensuring every training and evaluation instance is an equivalent circuit pair whose network contracts to identity; demonstrate behavior on non-equivalent pairs, which the equivalence-checking use case requires (2) clarifying the methodology behind the two scaling tables (pure RL vs hybrid and per-method baseline numbers rather than a virtual best) and whether a Counting prefix would equally help classical planners (3) justifying the reward functional form and empirical scaling constants (or other alternatives?) (4) also adding seed variance for training. Given time and other constraints potentially deprioritize requests to rerun on server hardware.
Final justification
I can confirm that I have read the author's responses in full along with discussions with reviewers. Had made 4 asks in the initial meta review - and all the 4 were answered with new evidence. On the newly constructed non equivalent instances the policy attains the lowest GM in both regimes and the authors also stated the unfavorable parts themselves. 3 of the 4 reviewers were sufficiently satisfied with the rebuttal and reviewer with most decisive ask moved from borderline reject to border line accept. The authors have also unprompted, added a negative result to state their scope.
A couple of reviews are discounted. The rating with 5 is given low weightage as text was found in the earlier review to contain phrasing from the injected prompt in the pdf (prompt injected by PC to evaluate reviews) and its review and post rebuttal comments were read on its merits. Similarly, the other review of 2 is also given lower weightage as the reviewer contradicts their own statement even with new evidence stating they will keep it as borderline reject but changed it to reject.
1 comment
- Rating
- 2/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 2/4
- Significance
- 3/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The authors present a novel RL-based framework for contracting quantum circuits using tensor decision diagrams aiming to improve upon existing peak intermediate memory usage and planning latency. The authors demonstrate that the policy learned by the agent improves upon the tradeoff between runtime and memory usage for different families of quantum circuits when compared to previous approaches. Overall, I feel the paper may be of interest to the community.
Strengths and weaknesses
The proposed method presented in this paper is novel and demonstrates improvement when compared to previous approaches. One limitation of the paper is that the datasets used in the simulations are quite limited. Also, the experiments are based on simulations and the authors mention including the effects of actual quantum hardware as future work. Finally there are minor typographical errors for example in the last paragraph on Pg. 4.
Questions
(a) The reward function r in Section 4.1 is not properly justified and feels adhoc. Can the authors justify the choice of the reward function? (b) In the transition dynamics, what it the mathematical form of the updated edge weight after the contraction? Also, any justification for this particular form? (c) In the bond strength discussion, why is the scaling factor chosen as 5? (d) The example at end of Page 5 is a bit confusing. How are the authors calculating the feature vectors? (e) The authors mention “To mitigate initial memory bottlenecks, we apply the Tetris rank-simplification technique [24] as a preprocessing step.” Can the authors clarify separately the advantage from the preprocessing step and the methodology of this work? (f) The number of qubits and the circuit depth in the simulations appears to be quite restricted. How does it scale? (g) GHZ and W-state have specific entanglement structures across the partitions. If we look at Figure 6 and 7, the GHZ state and W-state have similar total run time and max TDD node count with varying qubits. Does this observation hold for other classes of multi-qubit entangled states? (h) The authors mention a 120s time out. Hypothetically, if I allow a higher timeout (say, increase it x times), then how many qubits can I scale if I have constrained memory? Kindly provide a comparative analysis (at least a hand waiving argument).
Limitations
See above.
Final justification
The authors have provided a qualitative analysis in response to the Review comments. The authors provide insights about GHZ and W-states but ignore other classes of entangled states. In this context, I am concerned about the scalability of the approach to higher qubit systems lacking definite symmetries. Hence, I would change my score from borderline reject to reject.
Formatting concerns
No.
2 comments
We thank the reviewer for the detailed questions. We answer (a)–(h) in order; (a), (c), (f), and (h) are supported by new response-period experiments (full tables in our response to Reviewer CCNA).
(a) Reward justification. The objective is peak intermediate memory. The reward penalizes every intermediate TDD. Log scaling handles sizes spanning orders of magnitude, while makes rare large TDDs dominate the return, yielding a dense surrogate for the maximum. normalizes episode length across circuit sizes. Under identical training, a sparse terminal reward is 1.20$\times$ worse and unstable (held-out reward variance rises ), while a stepwise reward is 1.82$\times$ worse. The paper's β ablation covers the exponent; we additionally found β=2.5 promising on W-State, but our new seed-variance study shows W-State seed noise of ±26.5%, so that effect is within noise, and we label it as future work.
(b) Edge update after contraction. No edge weight is learned or heuristic. Contracting into removes their shared indices, and inherits all remaining indices. For each neighbor , . Edge features, including and local topology, are then recomputed. This is exact index bookkeeping for TN contraction; we will state it explicitly.
(c) Why 5? We ran a sensitivity sweep on the trained policy, perturbing the bond-strength normalizer over {3,5,8} crossed with the rank normalizer over {5,10,20}. Every setting with bond-normalizer ≥5 lies within ±4% of the used configuration across the full 4× range of the rank normalizer (8 is marginally better, 0.968×); only under-scaling hurts (normalizer 3 costs 16–32%). So the constant is not load-bearing above 5. It merely keeps the feature O(1) for typical bond counts (1–5 shared indices). We will report the sweep to clarify that 5 is not tuned.
(d) Feature-vector example. For tdd₀ in Figure 3: merge count = 1 original TDD → 1.0; memory load = log₁₀(3 nodes) ≈ 0.48; connectivity density = 1 shared index / N_max=87 ≈ 0.01; degree = 1 neighbor / 10 = 0.1, giving [1.0, 0.48, 0.01, 0.1]. Edge x₀,₁: 1 shared index / 5 = 0.2; average bond dimension of endpoints / 87 ≈ 0.03 → [0.2, 0.03]. We will rewrite the passage with this explicit arithmetic.
(e) Tetris preprocessing vs our method. Rank simplification is applied identically to RL and every baseline before planning. It therefore cannot explain the reported gains; it only reduces the initial TN enough to make TDD construction feasible. All comparisons isolate the planner.
(f) Scale of the simulations. The 5–23-qubit range follows standard MQT-Bench equivalence-checking evaluations, but the policy scales further. At 45 qubits, DJ/GHZ/QNN/BV use pure zero-shot RL because their simplified graphs fit the training observation bounds. They reach 137 peak nodes, within 0.7% of the best-of-four Cotengra virtual best, while running 66–160$\times$ faster. At 50 qubits on W-State, the hybrid policy is the only method finishing within 120 s. We also added 304 proven non-equivalent instances, where the policy remains best, and 31 unstructured random circuits, where it does not transfer; Section 5.8 now states this scope limit. The p.4 typos will be fixed.
(g) GHZ vs W-State. Both are shallow and sparse at small , hence the similar curves, but their intermediate TDD compressibility differs. GHZ is Clifford/CNOT-dominated and preserves substantial subgraph sharing. W-State uses non-Clifford controlled rotations that break sharing, causing sharp growth at scale (KaHyPar: 2.2M nodes at 38q). We therefore expect regular, Clifford-dominated preparations to behave like GHZ, while dense non-Clifford families behave like W-State or worse. A systematic entanglement-class study is future work.
(h) Timeout scaling. Memory, not time, is the binding constraint. On W-State, KaHyPar grows from 33k nodes at 30q to 2.2M at 38q ( for eight qubits), so a timeout adds only roughly qubits before memory dominates. Even with a Counting warm start, the best baseline needs k peak nodes at 45q versus 152 for the policy. At 50q, all baselines exceed 120 s, while the hybrid finishes in s with 15,289 nodes (Table 2). As a hand-waving rule from these measurements, on W-State, each 10× timeout increase buys the baseline planners roughly 3–5 qubits until memory (not time) terminates them; the policy's own limit is the observation bound (a retraining knob), not the timeout.
Datasets: the standard five MQT-Bench families, plus 304 non-equivalent and 31 random-circuit instances. Quantum hardware: equivalence checking is entirely classical; no quantum hardware is required. The future-work statement concerns awareness of compiler-targeted device topologies, which we will clarify.
I thank the authors for their response. However, I will keep my score as borderline reject.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 2/4
- Significance
- 4/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
In this paper, the authors propose a RL framework for the task of TN contraction, with the objective of performing QC equivalente. In particular, a GNN-based agent in a PPO-framework is used to contract the "memory" required (computed as peak tensor decision diagrams nodes) in the representation of the circuit , for equivalent to .
Strengths and weaknesses
This work addresses an interesting task for a well-known problem: QC equivalence. This task is quite studied, and is in general very difficult, due to exponential cost of constructing the unitary matrix of a given circuit. TNs provide a way to efficiently represent a QC, but the compression factor depends heuristic planning. RL can be efficiently used for plan selection. Therefore, the combination of RL for TNs contraction is already an interesting topic, and the task of QC equivalence is an excellent candidate for applying the proposed method. For this reason, this work could be a very strong contribution. In addition, the results on up to 23 qubits are very promising. However, this work has a few noticeable limitations that should be addressed before acceptance.
-
In particular, the first one is a methodological one. To the best of my understanding, the agent is trained only on pairs C, C' that are equivalent (i.e., the final contraction is always the Identity). This may induce a very strong bias in the agent (i.e., the agent may be very good in contracting C C' \dag for C equivalent to C', but acting extremely poorly in contracting C C'\dag for C not equivalent to C'). If the paper is framed as learning contractions to produce identities, then it is not a limitation. But if we aim to use to evaluate equivalence (i.e. we do not know if C and C' are equivalent prior to perform the contraction, then the paper does not establish that the proposed policy remains effective in this setting
-
In addition, the evaluation of scaling to higher qubit counts is biased, as (again, to the best of my understanding, but feel free to correct me), the RL agent performs better than baselines only on the W-State class (in Table 2), but it performs worse on the other 4 classes (DJ, QNN, GHZ, BV), in Table 4. However, only the first is reported in the main paper. Finally, the methodology in Tables 2 and 4 is not very clear.
Therefore, despite the great potential of this work, I would recommend weak reject for the paper in this current form.
With regards to the individual numerical rating, please find a brief comment below:
Quality: 2 Since the agent is trained only on circuit pairs that we already know to be equivalent, the method cannot be used to evaluate equivalence. This is the main limitation that justifies my vote.
Clarity: 2 Results on higher qubits count are not clear to me.
Significance: 4 Very relevant and interesting task. Reasonable approach to address it.
Originality: 3 To the best of my knowledge, it is a novel combination of RL with TNs for this task.
Questions
-
With regards to the Weakness 1, it would be very important to evaluate if the agent, trained on equivalent pairs, can still provide an advantage on not equivalent pairs. For example, you could evaluate different circuits from the same class (e.g., contraction of C C'\dag for C and C' in the DJ class, for C not equivalent to C'). Providing a strong result such as the one presented in Figure 5 would show the applicability of the method in a more general setting.
-
Wrt tables 2 and 4, is the experimental setting the same? if the counting contraction is fundamental to make the RL work, is it possible/reasonable to apply the same counting contraction before using the other classical heuristics (greedy, etc?). Can you provide the performance of each Cotengra method in table 4?
-
[minor] the reward function in the environment is a greedy one, i.e. at each step the agent is rewarded when it selects a step without an increase in TDD nodes. Did you also try to select different reward functions to induce a more long-term reward?
Limitations
yes
Final justification
The authors addressed the most critical component in their work, which was the applicability in the context of equivalence checking. I am not fully satisfied by the analysis in this broader context, however on the provided experiment the proposed method still obtains better performance than other strategies/techniques. This shows clearly that even if the model specializes on equivalent circuits, it can also generalize on non equivalent pairs.
This is enough to address my concerns, and I will suggest a borderline accept, increased from my previous borderline reject score.
Formatting concerns
2 comments
We thank the reviewer for the assessment. All new runs use the trained policy (no retraining or fine-tuning) and every completed RL contraction produced the correct final TDD.
W1/Q1: Non-equivalent pairs.
We built a non-equivalent set of 304 instances via two independent modes:
- Mutation (285 instances, all 5 circuit families, 5–23 qubits): we inject exactly one error into the combined circuit of each used equivalent pair (a dropped gate, a reversed CNOT, or an inserted X/Z gate).
- Cross-instance (19 instances) (the reviewer's suggestion): two genuinely different DJ instances (different oracle secrets), with same-oracle controls at every size (19/19 contract to the identity). One subtlety: MQT-Bench's balanced DJ oracle depends only on the parity of the secret, so our secrets differ in parity.
We ran the policy and all five baselines on all 304, plus the 114 equivalent originals, in the identical setup (120 s timeout). Geometric-mean peak TDD nodes:
| Method | Equivalent | Non-equivalent |
|---|---|---|
| RL policy | 44.8 | 79.0 |
| Betweenness | 57.0 | 89.6 |
| Counting | 72.2 | 88.3 |
| KaHyPar | 63.6 | 101.0 |
| Greedy | 62.7 | 106.5 |
| Random Greedy | 63.8 | 108.2 |
The policy attains the lowest peak in both settings and completes the most instances (299/304 vs 286–300). It is within 2% of the per-instance best baseline at the median and 1.57× at the 90th percentile, vs 5–6× in the baselines' tails. Final TDDs matched ground truth in every completed run (114/114 equivalent, 296/296 completed non-equivalent).
Details: (i) the policy's peak grows 1.76× moving to non-equivalent pairs, more than any baseline (1.22–1.70×); the reviewer's instinct about identity-specialization is right in kind, but not large enough to cost the policy its lead; (ii) Counting beats the policy by 26% on reversed-CNOT instances; (iii) on the 19 cross-instance DJ pairs, the policy is on a par with the Cotengra methods (0.98–1.02×).
W2/Q2: Tables 2 and 4 methodology.
Is the setting the same? No. The Counting preprocessing is only used when the initial graph exceeds the policy's observation bounds (N=87, M=151; exactly the largest training graph, W-State at 23 qubits). At 45 qubits, DJ/GHZ/QNN graphs are within bounds (87 nodes/129 edges; BV 65/63), so all of Table 4 is pure zero-shot RL. Only W-State (175/305) exceeds them; Table 2 is the hybrid setting, with hybrid lengths of 38/70/95/111 steps at 30/38/45/50 qubits.
Per-method Cotengra peak nodes for Table 4 (no seed parameter in Cotengra 0.7.0; min–max over 6 repeated runs), DJ-45/QNN-45/GHZ-45/BV-45: RL (ours) 137 throughout; Counting 475/265/196/162; Greedy 136–155/136–184/136–178/136–563; Random Greedy 136–179/136–172/136–184/136–454; Betweenness 136–137/136–166/136/136; KaHyPar 173/136–184/136/136.
We found that the published RL row (138/155/185/137) is reproduced exactly by an intermediate phase-1 checkpoint that a model-loading scripting error had selected in place of the final model. With the paper's main model, the row is uniformly 137: equal or better on every benchmark (up to −26% on GHZ-45). We will correct this in the revision.
On "RL performs worse on the other 4 classes": with the corrected row, the policy is within 0.7% (137 vs 136) of the best-of-four-Cotengra minimum, and that minimum is a virtual best: no single Cotengra method attains 136 reliably (per-method spreads run 136–563), and obtaining it requires running all four baselines, costing 13.3–21.2 s versus the policy's 0.08–0.32 s (66–160×, and deterministic).
Would a Counting integration equally help other baselines? We ran the identical hybrid strategy ahead of every baseline on W-State 30–50q. It does help: it rescues Betweenness from timeout at 30q/38q, improves Greedy and KaHyPar by >2× at 30q and Random Greedy by >4× at 45q, so the warm-start is a general technique, not an RL-specific tweak. The policy nonetheless remains the best finisher by a wide margin: 127 vs 44,789 peak nodes at 38q against the best hybrid baseline, 152 vs 490,183 at 45q, and at 50q it is the only configuration completing within 120 s (1 of 28 runs). One exception: at 30q, hybrid Betweenness (158) edges out the hybrid (220).
Q3: Reward function. The reward penalizes the size of every intermediate TDD with a super-linear exponent (β=1.5s), so rare large intermediate TDDs dominate the return; the agent is not rewarded merely for avoiding per-step increases. We trained two long-horizon alternatives: a sparse terminal reward paying −log₁₀(peak) only at episode end is 1.20× worse and trains unstably (held-out reward variance grows ~28× late in training), and a stepwise change-based reward (−Δlog₁₀ nodes) is 1.82× worse. The dense super-linear form is a deliberate middle ground: per-step signal for stable PPO training, super-linear growth to encode the peak-memory objective.
I thank the authors for their answers. I believe the most critical point on Q1 has been addressed. The results are interesting and show the method could be used to evaluate circuit equivalence. I will raise my score.
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 4/4
- Clarity
- 4/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This work addresses the central challenge of verifying quantum circuit equivalence through efficient tensor network contraction. Specifically, the authors propose a Reinforcement Learning (RL) framework tailored for Tensor Decision Diagrams (TDDs), where contraction order critically impacts memory usage. Unlike existing methods designed for dense tensors, this approach uses a Graph Neural Network (GNN) policy to navigate the trade-off between arithmetic complexity and TDD size. The claims of the paper are supported by empirical results showing significant reductions in peak memory usage and contraction time compared to state-of-the-art heuristics such as Greedy, Counting, and KaHyPar.
Strengths and weaknesses
Strengths
- Performance Improvement: The RL policy reduces mean peak TDD size by 2.51× over the TDD-specific Counting heuristic and 5.34× over Greedy.
- Scalability: The method demonstrates zero-shot generalization to 45-qubit circuits and successfully handles up to 50 qubits using a hybrid heuristic/RL strategy.
- Reproducibility: The submission includes code and data in the supplementary material, with detailed hyperparameters and architecture specifications in Appendix B.
- Methodological Rigor: The paper provides a clear MDP formulation, ablation studies on features and reward exponents, and statistical significance reporting with confidence intervals.
Weaknesses
- Training Cost: Training incurs an offline cost of approximately four hours on consumer hardware, which may be a barrier for some users.
- Observation Bounds: The GNN policy uses fixed observation bounds (Nmax, Mmax), requiring a hybrid strategy for very large initial graphs.
- Evaluation Scope: The evaluation focuses on structured algorithmic circuits; highly entangled or unstructured circuits remain challenging.
Questions
- How does the policy perform on completely unstructured random circuits beyond the curriculum augmentation described in Appendix B.4?
- Can the training time be reduced further to facilitate easier integration into continuous compilation pipelines?
- What specific mechanisms allow the policy to generalize to 45-qubit circuits when trained only on up to 23 qubits?
Limitations
yes
Final justification
The rebuttal satisfactorily addressed my main technical questions. The new random-circuit experiment transparently establishes the method’s limited transfer to unstructured circuits, while the graph-size analysis clarifies why the policy generalizes from 23- to 45-qubit structured circuits. The additional multi-seed results also strengthen confidence that the reported gains are robust.
The main unresolved limitations are the method’s specialization to structured circuit families, its reliance on a hybrid heuristic when observation bounds are exceeded, and the lack of empirical validation for checkpoint-based adaptation to new distributions. These issues constrain the method’s generality and broader significance, but do not undermine its technical soundness or core empirical contributions.
Considering the rebuttal and available discussion, I therefore maintain my score of 5: the paper is technically solid, reproducible, and valuable for its target application, but the remaining scope limitations do not justify a higher rating.
Formatting concerns
I did not notice any major issues regarding formatting or anonymity. The paper appears to strictly adhere to the NeurIPS 2026 Paper Formatting Instructions.
2 comments
We thank the reviewer for the positive assessment and the precise questions. All three now have concrete answers, one of them from a new experiment (see our response to reviewer CCNA for details).
Q1: Unstructured random circuits. We measured this directly during the response period: 31 random-circuit instances (qiskit random_circuit, transpiled to the environment's basis gates, 5–22 qubits, all within the policy's observation bounds), trained policy vs all five baselines. Our result is that the policy does not transfer to this setting: its geometric-mean peak TDD size (1781) is the largest of the six planners (KaHyPar (412) is 4.3× better) and it is never the single best method on instances where all planners finish. This confirms and quantifies the scope limitation the reviewer identified and that Section 5.8 states: the policy is specialized to structured algorithmic circuits, which is the regime compiler equivalence checking targets. Two contextual notes: unstructured circuits are drastically harder for every method (peaks are 1–2 orders of magnitude above structured families at equal width), and our test pairs a random circuit with its own inverse, whose mirror symmetry the baseline planners may exploit.
Q2: Reducing training time. Three concrete levers, two of them measured. (i) A one-shot 200k-step training (no curriculum) takes ~2.2–2.7 h versus ~4.5–5 h for the full 700k-step curriculum but degrades held-out geometric-mean peak from 48.2 to 62.8; the curriculum contributes more than any single hyperparameter we ablated, so we would not recommend dropping it. (ii) Fine-tuning from the used checkpoint instead of training from scratch is the intended path for new circuit distributions and should cost a fraction of full training; we will add this to the discussion. (iii) For continuous pipelines, the relevant cost is inference (0.047 s average), since the policy is trained once.
Q3: Generalization mechanisms (23 → 45 qubits). Three mechanisms, one of which we can now demonstrate quantitatively. (i) Scale-free features: every node/edge/global feature is a ratio, a normalized count, or a log-scaled size, so feature magnitudes at 45 qubits remain inside the training range: the policy never sees a raw "45". (ii) Locality of the policy: the GINE/GAT/TransformerConv stack passes messages only over the sparse observed edge set, so decisions depend on neighborhood structure, and the local nature of a 45-qubit DJ or GHZ residual resemble those of its 23-qubit counterpart. (iii) Graph size grows far slower than qubit count: measured on the actual instances, the combined-circuit graphs of DJ/GHZ/QNN at 45 qubits have 87 nodes/129 edges and BV has 65/63, within the training-time observation bounds (87/151, set by W-State at 23 qubits). So for four of the five families, 45-qubit inputs are not out-of-distribution in graph size at all, and no hybrid warm-start is involved; only W-State (175/305) exceeds the bounds and uses the hybrid strategy. We will make this explicit, as it also clarifies the Tables 2/4 methodology (see our response to Reviewer CCNA, which additionally reports per-method baseline numbers and a small correction to Table 4's RL row in our favor).
Finally, on robustness of the headline numbers: we retrained the full pipeline with three additional seeds (four runs in total). Mean peak across runs is 48.5±3.1 (6.4% relative), the ratios become 5.99×±0.39 vs Greedy, 2.39×±0.15 vs Counting and 72.5×±1.0 vs KaHyPar in time, and the RL policy is the second-worst of the four runs, so the reported results were not a favorable draw. Nearly all seed variance concentrates in W-State (±26.5%; the other families vary ≤0.4%), consistent with it being the spiky family throughout.
Thank you for the detailed and transparent response. The rebuttal adequately addresses my questions.
The new random-circuit experiment clearly establishes that the learned policy does not transfer to unstructured circuits. I view this as an important clarification of the method’s scope rather than a contradiction of the main results, since the paper targets structured algorithmic circuits used in compiler equivalence checking. However, this applicability boundary should be stated prominently in the revision.
The explanation of 23-to-45-qubit generalization is convincing: normalized/local features and the measured graph sizes show that four of the five circuit families remain within the training-time observation bounds, while W-State requires the hybrid strategy. The training-time discussion also clarifies the offline cost versus inexpensive inference, although checkpoint fine-tuning remains an unverified proposal.
The additional four-seed results strengthen the robustness of the empirical claims. Overall, the response resolves my main technical questions, but it also confirms limitations in distributional generalization and fixed observation bounds. I therefore maintain my rating of 5.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 2/4
- Clarity
- 2/4
- Significance
- 2/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposes a Reinforcement Learning (RL) framework to optimize the contraction order of Tensor Decision Diagrams (TDDs) for the purpose of quantum circuit equivalence checking. While TDDs offer a compact symbolic representation compared to dense tensors, their performance is highly sensitive to the contraction sequence. The authors formulate the contraction planning as a Markov Decision Process (MDP) and employ a Graph Neural Network (GNN) policy trained via Proximal Policy Optimization (PPO). The method utilizes a custom reward function penalizing peak TDD node growth and a curriculum learning strategy. Experimental results on various quantum benchmarks (DJ, GHZ, W-State, QNN, BV) suggest that the proposed RL agent outperforms standard TN heuristics (e.g., Greedy, KaHyPar) and a TDD-specific heuristic (Counting) in terms of peak memory usage and runtime, particularly on complex circuit families like W-State
Strengths and weaknesses
Strengths
- Novel Problem Formulation: The paper successfully identifies a gap in existing literature: while RL has been applied to dense Tensor Network (TN) contraction, it has not been effectively adapted to the symbolic TDD regime where costs are dynamic and non-local. Strong Empirical Performance: The proposed method demonstrates significant improvements over state-of-the-art baselines. Specifically, the reduction in peak TDD size (e.g., 2.51× over the Counting heuristic) and the substantial speedup in end-to-end runtime (63.7× over KaHyPar) are compelling.
- Generalization Capability: The agent shows promising zero-shot generalization, successfully handling circuits with up to 45 qubits despite being trained only on circuits with up to 23 qubits.
Weaknesses
- Questionable Experimental Setup (Hardware): The decision to conduct all experiments on a consumer-grade MacBook Air (M3, 16GB RAM) is a significant weakness. Quantum circuit simulation and equivalence checking are typically compute-intensive tasks requiring high-performance computing (HPC) resources. Evaluating a method intended to solve "memory bottlenecks" on a machine with unified memory limits the credibility of the scalability claims. It is unclear if the method would hold up under the memory pressure of a standard server environment or if the "low memory" baseline skewed the results.
- Limited Scope of Baselines: The comparison is largely restricted to general TN heuristics (Cotengra variants) and one specific TDD heuristic (Counting). The paper lacks comparison against other modern symbolic simulation tools or decision diagram-based verifiers (e.g., recent advancements in ZX-calculus based simplification or other DD-based tools like those from the JKU group) which might have different internal reordering mechanisms.
- Scalability and "Hybrid" Dependency: The method fails on large initial graphs (exceeding N=87) without a "hybrid" strategy that relies on the Counting heuristic to reduce the graph size first (Section 5.7). This dependency undermines the claim of the RL agent's autonomous capability. If the agent cannot handle the initial state of a large circuit, its practical utility in a compiler pipeline is reduced.
- Training Cost vs. Inference Benefit: While inference is fast, the paper notes a training time of approximately four hours on consumer hardware. For a task like equivalence checking, which might be run intermittently, the overhead of training (or even fine-tuning) a specific policy might not be justified compared to instant, albeit suboptimal, greedy heuristics, unless the policy is pre-trained and frozen. The paper does not sufficiently discuss the "cold start" problem for new, unseen circuit architectures that differ significantly from the training distribution.
Questions
See weaknesses
Limitations
yes
Final justification
Authors well solved my concerns
Formatting concerns
No concerns
2 comments
We thank the reviewer for recognizing the novelty of the problem formulation and the strength of the empirical results. We address each mentioned weakness; several of them are now answered with new measurements (full tables in our response to Reviewer CCNA).
Hardware. Three points. (i) Our primary metric (peak TDD node count) is a property of the contraction plan, not the machine: a plan that peaks at 2.2M nodes on a MacBook peaks at 2.2M nodes on a server. The memory-reduction claims are therefore hardware-independent. (ii) A 16 GB unified-memory machine makes memory pressure harsher, not gentler: baselines fail earlier than they would on a server, but the policy's advantage is that its plans need orders of magnitude fewer nodes, which no amount of server RAM changes. (iii) Wall-clock ratios could shift with hardware, but the dominant term in the 63.7× speedup over KaHyPar is planning cost (hypergraph partitioning), which is algorithmic. TDD contraction is CPU-bound and single-threaded in the backend we build on, so consumer hardware is a fair and reproducible choice; we note that the AC also suggested to deprioritize hardware reruns. New seed-variance results (4 independent training runs) additionally show the ratios are stable: 5.99×±0.39 vs Greedy, 2.39×±0.15 vs Counting, 72.5×±1.0 vs KaHyPar in time, and the published model was the second-worst of the four seeds, so the reported numbers were not a favorable draw.
Baseline scope (ZX-calculus / JKU DD tools). These are complete equivalence checkers with their own internal strategies (e.g., proportional gate application in QCEC = JKU tool), whereas our contribution is a contraction planner inside a TDD pipeline. A whole-tool comparison would conflate backend representation with planning policy; to isolate planning, we execute all Cotengra plans on the same TDD backend, and we compare against Counting, the (to our knowledge) only available TDD-specific planner. We agree that an end-to-end tool comparison is valuable and will add it as explicit future work; our method is complementary. It could serve as the scheduling policy inside such tools.
Hybrid dependency. We measured when the hybrid strategy engages, and the answer narrows this concern considerably. The bounds (N=87, M=151) equal the largest training graph (W-State at 23 qubits): they are a training-distribution artifact, not a method limitation. At 45 qubits, DJ/GHZ/QNN/BV initial graphs are within those bounds (87 nodes/129 edges; BV 65/63), so the entire 45-qubit table is pure zero-shot RL with no warm-start; only W-State uses the hybrid strategy. Moreover, we ran the identical Counting hybrid strategy ahead of every baseline (reviewer CCNA asked the same question): it helps them too (rescuing Betweenness from timeouts and improving Greedy/KaHyPar >2× at 30q) so it is a general graph-reduction technique, not an RL-specific tweak. The policy is still the best performer by 352–3225× in peak nodes at 38–45 qubits and is the only method completing 50-qubit W-State within the timeout. Retraining with larger bounds is a compute knob, not a redesign.
Training cost and cold start. The policy is pre-trained: the ~4 h cost is paid once, and every result in the paper and in this response uses one checkpoint across all families, sizes, and (new; see our response to reviewer CCNA) non-equivalent instances with no fine-tuning, which is the deployment model the reviewer describes as the justifiable one. On cold start for out-of-distribution circuit architectures, we now have quantified answers in both directions: (i) on 304 circuits with unseen perturbations (injected compiler-style bugs; see the CCNA response), the trained policy transfers and remains the best method; (ii) on 31 fully unstructured random circuits, it does not transfer; its geometric-mean peak is the worst of the six planners (KaHyPar is 4.3× better). This confirms and quantifies the scope limitation already stated in Section 5.8: the policy is specialized to structured algorithmic circuits, which is the regime compiler equivalence checking targets. For genuinely new architectures, fine-tuning from the used checkpoint (minutes to hours, once) is the intended path, and we will discuss this trade-off explicitly.
Thanks for the rebuttal. I'd like to raise my score.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
We thank the AC for the clear prioritization. All four items were addressed during the response period; details and full tables are in our reviewer replies.
(1) Non-equivalent pairs. Every instance in the paper is an equivalent pair contracting to the identity. We added 304 proven non-equivalent instances (injected compiler-style errors across all 5 families, plus cross-instance DJ pairs). Using the same checkpoint with no fine-tuning, the policy attains the lowest geometric-mean peak in both regimes (44.8 equivalent / 79.0 non-equivalent vs. 57.0 / 88.3 for the best baseline) and completes the most instances. Every completed run produced the correct final TDD.
(2) The two scaling tables. Table 4 (45q) is pure zero-shot RL: only W-State exceeds the policy's observation bounds, so Table 2 alone is the hybrid setting. We now report per-method Cotengra numbers rather than a virtual best; no single method reliably attains that minimum. We also correct Table 4: the published RL row came from an intermediate checkpoint selected by a model-loading script error, and the paper's actual model gives a uniform 137 — equal or better on every benchmark. Finally, the Counting prefix helps the classical planners too (rescuing Betweenness from timeouts, >2× for Greedy/KaHyPar at 30q), so it is a general technique; the policy still leads by 352–3225× in peak nodes at 38–45q.
(3) Reward and constants. Under an identical protocol, a sparse terminal reward is 1.20× worse and trains unstably, and a stepwise change-based reward is 1.82× worse, supporting the dense super-linear form. A sensitivity sweep shows the scaling constants are not load-bearing above the used values.
(4) Seed variance. Four independent training runs give a mean peak of 48.5±3.1 (6.4%), with ratios stable to within ±0.4 across baselines; the published model was the second-worst of the four, so the reported results were not a favorable draw. Variance concentrates almost entirely in W-State.
Per the AC's guidance we did not rerun on server hardware. We also report one negative result plainly: the policy does not transfer to unstructured random circuits, confirming the scope limitation in Section 5.8.