Escaping Local Minima in T-Count Post-Optimization: Full-Signature TODD Nullspace Walks and Anchored Reed-Muller 4-Cube Search
Abstract
Minimizing the T-count of Clifford+T circuits is a key bottleneck in fault-tolerant quantum compilation. By Heyfron and Campbell's signature-tensor correspondence, minimizing the T-count of an m-variable phase polynomial up to diagonal Clifford gates (S, Z, CZ) is equivalent to minimizing the symmetric binary rank of its full 3-tensor S(P) in F2m x m x m (linear, quadratic, and cubic entries). Both deep reinforcement learning (AlphaTensor-Quantum, Nature Machine Intelligence, 2025) and deterministic compilers (FastTODD and TOHPE, Quantum, 2025) stall in reducible local minima on large phase polynomials (m = 50--59). We present a CPU-only, exact signature-preserving Large Neighborhood Search (LNS) post-optimizer combining (i) a GL(m, F2) pivot-compressed full-nullspace TODD kernel with complete coset sampling, (ii) randomized neutral/slight-up TODD walks, and (iii) anchored, linearly independent Reed-Muller RM(m-4, m) 4-cube perturbations. Across all 60 tensors (m <= 72, solver scaling to m <= 256, r <= 1024) in DeepMind's *nogadgets.npz suite, post-optimizing AlphaTensor-Quantum strictly beats all three baselines simultaneously on 7/60 circuits (-16 T-gates across wins, net -14 across all 60; up to -5 vs. best baseline and -7 vs. AlphaTensor-Quantum), ties on 51/60, and trails FastTODD by 1 on 2/60. Downstream of Vandaele's native FastTMerge + InternalHOpt + FastTODD pipeline on 20 raw Feynman circuits (up to m = 84, no RL), it yields 0 regressions and improves 5/20 circuits for -26 net T-gates. A 5-seed ablation shows randomized TODD stalls with zero variance on 6/7 hard circuits, while anchored 4-cube perturbations escape these basins. All decompositions pass three-layer verification; Gray-synth shows +1.2% phase-network CNOT and +28.9% total two-qubit gate change including CZ corrections. Code and verified records: https://github.com/haosenwang1018/tcount-rm-lns
Create a lesson
Metadata
- Comments
- 8 pages, 2 figures, 4 tables. Source code and verified decompositions: https://github.com/haosenwang1018/tcount-rm-lns
Related papers
What a Full Patch Can Tell Us About a Sparse Transcoder: Native readout responses from local slopes to donor replacement
Shared title terminologycs.LGRafał Wrona
LOCAL: Local-Curvature Advantage Logit Regression for Scalable Policy Optimization
Shared title terminologycs.LGYingxiao Huo, Yihe Zhou, Adrian Mircea Nenu et al.
Diffusion Adaptation Under Distribution Shifts via Distributionally Robust Optimization
Shared title terminologycs.LGZifan Wang, Amir Mohammad Karimi Mamaghan, Riccardo De Santi et al.
CARAT: Contrast-Aware Token-Normalized Rollout Allocation for Efficient Group-Relative Policy Optimization
Shared title terminologycs.LGCaleb Nguyen, Meilin Chen, Nadia Kowalski et al.
MedScope: Structured Clinical Optimization through Preference Estimation
Shared title terminologycs.LGAli Karkehabadi, Jamshid Hassanpour, Rayhaneh Shabani Nia et al.
Efficient Bandit Convex Optimization on the Euclidean Ball via Shared Orthogonal Basis Maintenance
Shared title terminologycs.LGLinzhe He, Lijun Zhang