betaFeedback

WorksPhysics and Astronomy

TT-efficient unitary synthesis via block-sparse Hamiltonian simulation

Abstract

We construct Clifford+TT circuits implementing arbitrary nn-qubit unitaries with worst-case TT-count O~(N8/7)\widetilde{O}(N^{8/7}) at constant operator-norm error, where N=2nN=2^n, improving the previous exponent 5/45/4. The construction uses O~(N6/7)\widetilde{O}(N^{6/7}) clean ancillas. The main idea is to reduce the data addressed by each query to the block-encoding circuit for a sparse piece while controlling the additional simulation work needed to combine the pieces. We simulate a Hermitian logarithm of the target by flattening its traceless part with a two-layer random similarity transformation, randomly partitioning the transformed generator into block-sparse Hermitian pieces, and combining their evolutions using qDRIFT. For a target operator-norm error ε∈(0,1/2)ε\in(0,1/2), let L=log⁡2(N/ε)L=\log_2(N/ε), the qubit count plus the requested bits of accuracy. By successively correcting the approximation error, we obtain a circuit using O~(N8/7L3/7+NL)\widetilde{O}(N^{8/7}L^{3/7}+NL) TT gates and O~(N)\widetilde{O}(N) clean ancillas whenever L≤NL\le N. We also prove that, at constant precision, the exponent 8/78/7 is optimal within a sequential block-SELECT model.

Introduction

In fault tolerant quantum computing, non-Clifford gates are often substantially more expensive than Clifford gates. For example, implementations using surface codes [1] can supply the gate T=diag⁡(1,eiπ/4)T = \operatorname{diag}(1,e^{i\pi/4}) through magic state distillation [2]. This motivates using the number of TT gates as a resource measure, distinct from the total gate count, and has led to extensive optimization of small circuits [3, 4, 5]. Here we ask: how many TT gates are needed to implement an arbitrary unitary on nn qubits to accuracy ϵ\epsilon?

For N=2nN = 2^n, a generic unitary has N2N^2 real parameters. The challenge is to incorporate these parameters into a Clifford+TT circuit using few TT gates. At constant precision, a polynomial gap remains between the known bounds on the number of TT gates required in the worst case. Counting gives a lower bound of Ω(N)\Omega(N) [6, 7]. Low et al. [8] give an upper bound O~(N3/2)\widetilde{O}(N^{3/2}). Tan [7] reduces the exponent to 4/34/3 by combining recursive cosine–sine decomposition with the synthesis of multiplexed diagonal unitaries. Yuan et al. [9] obtain exponent 5/45/4 through random block flattening, dilation, and singular value transformation. Fang et al. [10] use a different approach based on a logarithm to obtain bounds that depend on the target unitary, with O~(N3/2)\widetilde{O}(N^{3/2}) TT gates in the worst case.

Related work studies depth and ancilla tradeoffs using continuously parameterized gates [11, 12, 13, 14, 15, 16, 17]. Oracle formulations count Boolean queries as primitive operations [12, 18, 19, 20, 21, 22, 23]. A recent construction gives synthesis in polynomial time at constant error in the diamond norm, using a suitably chosen oracle that depends on the target [24]. Here we count the TT gates needed to implement the complete circuit, including the synthesis of elementary gates and the implementation of data access.

We obtain the following bound by combining encodings of block-sparse matrices with Hamiltonian simulation and residual refinement.

Theorem 1 (Unitary synthesis, informal version of Theorems 3 and 4). Let N=2nN = 2^n and L=n+log⁡2(1/ϵ)L = n + \log_2(1/\epsilon), with 0<ϵ<1/20 < \epsilon< 1/2 and L≤NL \le N. For sufficiently large nn, every U∈U(N)U \in\mathrm{U}(N) can be implemented to error at most ϵ\epsilon in operator norm by a Clifford+TT circuit using

O~(N8/7L3/7+NL)(1)\widetilde{O}\left(N^{8/7}L^{3/7} + NL\right) \tag*{(1)}

TT gates and O~(N)\widetilde{O}(N) clean ancillas. At constant precision, a separate choice of parameters gives O~(N8/7)\widetilde{O}(N^{8/7}) TT gates with O~(N6/7)\widetilde{O}(N^{6/7}) ancillas.

The improvement shown in Table I comes from encoding block-sparse pieces separately, so each query accesses a smaller lookup table. In the construction of Yuan et al. [9], each query addresses a lookup table containing data for all N2N^2 matrix entries. Singular value amplification uses this encoding repeatedly, so the lookup cost is paid at every query. We instead use separate encodings with smaller lookup tables. To do this, we represent UU as evolution under a Hermitian logarithm and partition its generator into block-sparse Hermitian pieces. We construct these pieces using a random change of basis followed by a random partition that preserves Hermiticity.

To approximate evolution under the sum of these pieces, we use qDRIFT [25, 26], which applies short evolutions under randomly chosen pieces. More pieces give smaller lookup tables, but can require more such evolutions to achieve the same accuracy. We choose the block size and number of pieces to balance these costs, using O~(N8/7)\widetilde{O}(N^{8/7}) TT gates at constant precision.

For higher precision, we successively correct the remaining approximation error using residual refinement. Each correction involves a smaller generator, avoiding the costly precision dependence of a single qDRIFT approximation. All sampling is performed during classical preprocessing, and the sampled evolutions are compiled into a Clifford+TT circuit.

Table 1. Number of TT gates required in the worst case to implement an arbitrary unitary on nn qubits with Clifford+TT circuits, where N=2nN=2^n and L=n+log⁡2(1/ϵ)L=n+\log_2(1/\epsilon). Here, fixed ϵ\epsilon means a sufficiently small positive error tolerance independent of NN. Theorem 3 gives a smaller ancilla bound at fixed error, while Theorem 4 improves the dependence on accuracy through residual refinement. Ancilla counts follow each reference’s conventions. Our constructions use clean ancillas, while Ref. [8] also allows dirty workspace. The lower bound in Theorem 5 concerns the cost in the sequential block-SELECT model under the stated limit on information stored in the unitaries between evolutions.

ReferenceTT gatesAncillasValidity
Low, Kliuchnikov, and Schaeffer [8]O~(N3/2)\widetilde{O}(N^{3/2})O~(N1/2)\widetilde{O}(N^{1/2})fixed ϵ\epsilon
Tan [7]O(N4/3L2/3+NL)O(N^{4/3}L^{2/3}+NL)O(N2/3L1/3+L)O(N^{2/3}L^{1/3}+L)all ϵ\epsilon
Yuan, Zhang, and Zi [9]O(N5/4L5/8log⁡N)O(N^{5/4}L^{5/8}\log N)O(NL)O(N\sqrt{L})L≤NL\le N
This work, Theorem 3O~(N8/7ϵ−6/7)\widetilde{O}(N^{8/7}\epsilon^{-6/7})O~(N6/7ϵ−8/7)\widetilde{O}(N^{6/7}\epsilon^{-8/7})ϵ≥N−1/8polylog⁡N\epsilon\ge N^{-1/8}\operatorname{polylog}N
This work, Theorem 4O~(N8/7L3/7+NL)\widetilde{O}(N^{8/7}L^{3/7}+NL)O~(N)\widetilde{O}(N)L≤NL\le N
Lower bound [6, 7]Ω(N)\Omega(N)—fixed ϵ\epsilon
This work, Theorem 5Ω~(N8/7)\widetilde{\Omega}(N^{8/7})—fixed ϵ\epsilon

We also prove a matching lower bound in a restricted cost model that includes our construction. The model represents the target as a sequence of Hamiltonian evolutions, charging for matrix lookups, operations within each block, and simulation. It limits how much information about the target can be stored in the unitaries between evolutions. Within this model, called the sequential block-SELECT model, the exponent 8/78/7 is optimal in the worst case at constant precision, up to factors polynomial in nn.

Theorem 2 (Optimality within the model, informal version of Theorem 5). At sufficiently small constant error in operator norm, the cost of unitary synthesis in the sequential block-SELECT model is Ω~(N8/7)\widetilde{\Omega}(N^{8/7}) in the worst case.

The rest of the paper is organized as follows. Sec. II introduces the notation and error criterion and summarizes the tools for data loading and Hamiltonian simulation. Sec. III illustrates the construction and its cost balance. Sec. IV develops the flattening, partitioning, and encoding steps. § 1.4 bounds the resources for unitary synthesis using qDRIFT and QSVT, and § 1.5 improves the precision dependence through residual refinement. Sec. VII states the lower bound in the sequential block-SELECT model. These last three sections include proof sketches. Sec. VIII concludes the work. The appendices contain the complete proofs and an extension of the lower bound to mixed block sizes.

Preliminaries

We first set the notation and error criterion. The remaining subsections state the data-loading and simulation tools needed.

Notation

Let nn be the number of data qubits and N=2nN=2^n. We order the computational basis lexicographically by bit strings x∈{0,1}nx\in\{0,1\}^n. For a positive integer rr, write [r]={1,…,r}[r]=\{1,\ldots,r\}.

The construction groups matrix entries into square blocks. The block size balances the cost of loading the data with the cost of implementing the quantum operations. Let bb be the number of rows and columns in each square block, chosen as a power of two with b≤Nb\le N. Then D=N/bD=N/b is the number of block rows and block columns. For a matrix A∈CN×NA\in\mathbb{C}^{N\times N}, group its rows and columns consecutively in sets of bb. The block AIJA_{IJ} is the b×bb\times b submatrix in block row II and block column JJ, with I,J∈[D]I,J\in[D].

For a row index xx, write x=(xh,xl)x=(x_h,x_l). Here xhx_h identifies the block row and xlx_l the row within it. They consist of the first log⁡2D\log_2D and last log⁡2b\log_2b bits, respectively. The same convention applies to column indices. Figure 1 illustrates the partition and its bit labels.

An $N=8$ matrix partitioned into $D=4$ block rows and columns

Figure 1. An N=8N=8 matrix partitioned into D=4D=4 block rows and columns, with b=2b=2 rows and columns per block. The shaded submatrix A23A_{23} contains rows 3–4 and columns 5–6. For the row label x=011x=011, the high bits 01 select row group I=2I=2, and the low bit 1 selects its second row.

We use ∥⋅∥\lVert\cdot\rVert for the operator norm and ∥⋅∥F\lVert\cdot\rVert_{F} for the unnormalized Frobenius norm. Logarithms are natural unless written log⁡2\log_{2}. Both O~(⋅)\widetilde{O}(\cdot) and Ω~(⋅)\widetilde{\Omega}(\cdot) hide factors polynomial in nn only. Define F=H⊗nF=H^{\otimes n}, where HH is the Hadamard gate. FF is real and symmetric, with F2=IF^{2}=I. For a sign vector σ∈{±1}N\sigma\in\{\pm1\}^{N}, let Sσ=diag⁡(σ)S_{\sigma}=\operatorname{diag}(\sigma) denote the corresponding diagonal sign matrix.

Implementation with clean ancillas

We measure error on the full output, including the ancillas, using the standard convention of Ref. [7].

Definition 1 (Approximate implementation with clean ancillas). A unitary U~\widetilde{U} on n+mn+m qubits implements U∈U(2n)U\in U(2^{n}) to error ϵ\epsilon if

∥U~(∣0m⟩⊗I)−∣0m⟩⊗U∥≤ϵ.\left\lVert\widetilde{U}(\lvert0^{m}\rangle\otimes I)-\lvert0^{m}\rangle\otimes U\right\rVert\leq\epsilon.

where the ancillas are written first. The TT-count of U~\widetilde{U} is the number of TT gates in a Clifford+TT circuit for U~\widetilde{U}, and mm is its number of ancillas.

If U~j\widetilde{U}_{j} implements UjU_{j} to error ϵj\epsilon_{j} on a shared ancilla register, then U~2U~1\widetilde{U}_{2}\widetilde{U}_{1} implements U2U1U_{2}U_{1} to error ϵ1+ϵ2\epsilon_{1}+\epsilon_{2}. This follows from the triangle inequality and unitary invariance of the operator norm.

Data loading with Clifford+T circuits

Lookup tables and classical descriptions of unitaries are inputs to the compiler. We count the TT gates and ancillas required to access the data and apply the selected unitaries. Quantum lookup methods trade ancillary workspace for a lower TT-count per lookup [8, 27]. For example, at constant precision, the optimal worst-case TT-count for nn-qubit diagonal-unitary synthesis is Θ(N1/2)\Theta(N^{1/2}) [6]. Related lookup-based sparsity and amplitude oracles reduce block-encoding gate counts for second-quantized fermionic Hamiltonians [28].

The first primitive reads a table entry into an output register by bitwise XOR.

References

  1. [1]A. G. Fowler, M. Mariantoni, J. M. Martinis, and A. N. Cleland, Surface codes: Towards practical large-scale quantum computation, Physical Review A 86, 032324 (2012).DOI
  2. [2]S. Bravyi and A. Kitaev, Universal quantum computation with ideal Clifford gates and noisy ancillas, Physical Review A 71, 022316 (2005).DOI
  3. [3]V. Kliuchnikov, D. Maslov, and M. Mosca, Fast and efficient exact synthesis of single-qubit unitaries generated by Clifford and T gates, Quantum Information and Computation 13, 607 (2013).arxiv.org/abs/1206.5236
  4. [4]N. J. Ross and P. Selinger, Optimal ancilla-free Clifford+T approximation of z-rotations, Quantum Information and Computation 16, 901 (2016).arxiv.org/abs/1403.2975
  5. [5]V. Gheorghiu, M. Mosca, and P. Mukhopadhyay, T-count and T-depth of any multi-qubit unitary, npj Quantum Information 8, 141 (2022).DOI
  6. [6]D. Gosset, R. Kothari, and K. Wu, Quantum state preparation with optimal T-count, Quantum 10, 2168 (2026), arXiv:2411.04790 [quant-ph].DOI
  7. [7]X. Tan, Unitary synthesis with fewer T gates, PRX Quantum 7, 033058 (2026), arXiv:2509.25702 [quant-ph].arxiv.org/abs/2509.25702
  8. [8]G. H. Low, V. Kliuchnikov, and L. Schaeffer, Trading T gates for dirty cubits in state preparation and unitary synthesis, Quantum 8, 1375 (2024), arXiv:1812.00954.
  9. [9]P. Yuan, S. Zhang, and W. Zi, Quantum circuit for general unitary: Improved T-count via block flattening and dilation (2026), arXiv:2608.17846 [quant-ph].arxiv.org/abs/2608.17846
  10. [10]W. Fang, C. Heunen, and Q. Wang, Unitary synthesis with near-optimal T-count for near-Clifford unitaries (2026), arXiv:2607.12907 [quant-ph].arxiv.org/abs/2607.12907
  11. [11]X. Sun, G. Tian, S. Yang, P. Yuan, and S. Zhang, Asymptotically optimal circuit depth for quantum state preparation and general unitary synthesis, IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems 42, 3301 (2023), arXiv:2108.06150 [quant-ph].arxiv.org/abs/2108.06150
  12. [12]G. Rosenthal, Query and depth upper bounds for quantum unitaries via Grover search, Quantum 10, 2144 (2026), arXiv:2111.07992 [quant-ph].
  13. [13]P. Yuan and S. Zhang, Optimal (controlled) quantum state preparation and improved unitary synthesis by quantum circuits with any number of ancillary qubits, Quantum 7, 562 (2023), arXiv:2202.11302 [quant-ph].DOI
  14. [14]B. Nehoran, J. Slote, and H. Yuen, All unitaries have constant depth quantum circuits (2026), arXiv:2609.40351 [quant-ph].
  15. [15]P. Yuan, W. Zi, and S. Zhang, Exact unitary synthesis: Simultaneously optimal in size and depth-ancilla tradeoff (2026), arXiv:2610.07010 [quant-ph].arxiv.org/abs/2610.07010
  16. [16]S. Strelchuk, S. Subramanian, and M. Weisz, The power of constant-depth quantum circuits of unbounded size (2026), arXiv:2609.40294 [quant-ph].arxiv.org/abs/2609.40294
  17. [17]C. Cao, Mid-circuit measurements and feedforward implement every unitary exactly in constant depth (2026), arXiv:2610.06551 [quant-ph].arxiv.org/abs/2610.06551
  18. [18]S. Aaronson and G. Kuperberg, Quantum versus classical proofs and advice, Theory of Computing 3, 129 (2007), arXiv:quant-ph/0604056.arxiv.org/abs/quant-ph/0604056
  19. [19]A. Lombardi, F. Ma, and J. Wright, A one-query lower bound for unitary synthesis and breaking quantum cryptography, in Proceedings of the 56th Annual ACM Symposium on Theory of Computing (2024), arXiv:2310.08870 [quant-ph].arxiv.org/abs/2310.08870
  20. [20]F. Dong, A. Lombardi, and F. Ma, Explicit separations for one-query unitary synthesis (2026), arXiv:2607.26478 [quant-ph].arxiv.org/abs/2607.26478
  21. [21]F. Dong and A. Lombardi, Lower bounds for preprocessing attacks on quantum cryptography (2026), arXiv:2610.02101 [quant-ph].arxiv.org/abs/2610.02101
  22. [22]Z. Brakerski and H. Yuen, On scalable pseudorandom unitaries and the unitary synthesis problem, in Advances in Cryptology – CRYPTO 2026 (2026) arXiv:2605.09957 [quant-ph].arxiv.org/abs/2605.09957
  23. [23]A. Huang, A. Ramkumar, and J. Wright, Random-oracle unitary synthesis is impossible (2026), arXiv:2610.06700 [quant-ph].arxiv.org/abs/2610.06700
  24. [24]OpenAI, Polynomial-time unitary synthesis from a Boolean oracle (2026), preprint, October 5, 2026.DOI
  25. [25]E. Campbell, Random compiler for fast Hamiltonian simulation, Physical Review Letters 123, 070503 (2019).DOI
  26. [26]C.-F. Chen, H.-Y. Huang, R. Kueng, and J. A. Tropp, Concentration for random product formulas, PRX Quantum 2, 040305 (2021), arXiv:2008.11751.DOI
  27. [27]S. Zhu, A. Sundaram, and G. H. Low, Unified architecture for quantum lookup tables, Physical Review Research 7, 043230 (2025).DOI
  28. [28]D. Liu, Z. Shu, L. Lin, G. H. Low, and C. Yang, Low-gate-count block encodings for second-quantized fermionic Hamiltonians (2025), arXiv:2510.08644 [quant-ph].arxiv.org/abs/2510.08644
  29. [29]A. Gilyén, Y. Su, G. H. Low, and N. Wiebe, Quantum singular value transformation and beyond: Exponential improvements for quantum matrix arithmetics, in Proceedings of the 51st Annual ACM SIGACT Symposium on Theory of Computing (STOC) (2019) pp. 193–204. arXiv:1806.01838.
  30. [30]G. H. Low and I. L. Chuang, Hamiltonian simulation by qubitization, Quantum 3, 163 (2019).
  31. [31]A. M. Childs, A. Ostrander, and Y. Su, Faster quantum simulation by randomization, Quantum 3, 182 (2019).DOI
  32. [32]G. H. Low, Hamiltonian simulation with nearly optimal dependence on spectral norm, in Proceedings of the 51st Annual ACM SIGACT Symposium on Theory of Computing (STOC) (2019) pp. 491–502, arXiv:1807.03967.DOI
  33. [33]S. J. Szarek, Nets of Grassmann manifold and orthogonal group, in Proceedings of Research Workshop on Banach Space Theory (Iowa City, Iowa, 1981) (University of Iowa, Iowa City, 1982) pp. 169–185.
  34. [34]D. Liu, H. Wang, S. Zhu, J. Cong, W. A. de Jong, D. Fang, Z. Huang, C. Iancu, and C. Yang, Logical resource estimation for quantum state preparation with compilation (2026), arXiv:2605.18877 [quant-ph].arxiv.org/abs/2605.18877
  35. [35]D. Liu, H. Wang, S. Zhu, J. Cong, W. A. de Jong, D. Williams-Young, and C. Yang, Exponentially compressed and garbage-free alias sampling for polynomial state preparation (2026), arXiv:2601.03800 [quant-ph].
  36. [36]E. J. Gustafson, H. Lamm, D. Liu, E. M. Murairi, and S. Zhu, Synthesis of single-qubit circuits from Clifford+R gates, Physical Review A 112, 062414 (2025), arXiv:2503.20203 [quant-ph].DOI
  37. [37]E. S. Meckes, The Random Matrix Theory of the Classical Compact Groups, Cambridge Tracts in Mathematics, Vol. 218 (Cambridge University Press, Cambridge, 2019).DOI
  38. [38]M. Rudelson and R. Vershynin, Hanson–Wright inequality and sub-Gaussian concentration, Electronic Communications in Probability 18, 1 (2013).arxiv.org/abs/1306.2872
  39. [39]J. A. Tropp, An introduction to matrix concentration inequalities, Foundations and Trends in Machine Learning 8, 1 (2015).arxiv.org/abs/1501.01571
  40. [40]V. H. de la Peña and S. J. Montgomery-Smith, Decoupling inequalities for the tail probabilities of multivariate U-statistics, The Annals of Probability 23, 806 (1995).
  41. [41]V. H. de la Peña and E. Giné, Decoupling: From Dependence to Independence (Springer, New York, 1999).DOI
  42. [42]J. A. Tropp, User-friendly tail bounds for sums of random matrices, Foundations of Computational Mathematics 12, 389 (2012).
  43. [43]P. R. Halmos, Normal dilations and extensions of operators, Summa Brasiliensis Mathematicae 2, 125 (1950).
  44. [44]C. Gidney, Halving the cost of quantum addition, Quantum 2, 74 (2018).DOI
  45. [45]S. A. Cuccaro, T. G. Draper, S. A. Kutin, and D. P. Moulton, A new quantum ripple-carry addition circuit (2004), arXiv:quant-ph/0410184.DOI
  46. [46]A. M. Childs, Y. Su, M. C. Tran, N. Wiebe, and S. Zhu, Theory of Trotter error with commutator scaling, Physical Review X 11, 011020 (2021).DOI
  47. [47]T. M. Cover and J. A. Thomas, Elements of Information Theory, 2nd ed. (Wiley, Hoboken, NJ, 2006).

Paper details

vlnc:W_bwnk46ae
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Physics and Astronomy

GPT-5.5 Pro, GPT-5.6 Sol (bare), GPT-6 Astra (bare)

View statement
Looking for related papers…
Contents