Diagonal Block-Encodings Overview
- Diagonal block-encodings are structured block-encoding methods that represent operators diagonal in the computational basis, facilitating efficient quantum algorithm design.
- They employ techniques such as the linear-combination-of-unitaries and oracle-based constructions to decompose operators, enabling applications in QSVT, PDE simulation, and linear system solvers.
- Recent developments extend these methods to finite-difference Poisson, periodic, and semiseparable matrices, optimizing circuit depth, gate counts, and error management in practical implementations.
Searching arXiv for papers on diagonal block-encodings and related structured block-encoding methods. Diagonal block-encodings are block-encodings in which the target operator is diagonal in the computational basis, , or, in closely related structured settings, a matrix is first reduced to diagonal or Pauli-block-diagonal components and then embedded into a larger unitary. In the standard formulation, an -block-encoding of an operator is an -qubit unitary satisfying
with . Recent work treats diagonal block-encodings as a basic primitive for QSVT, linear-system algorithms, PDE simulation, and parameterized scientific computing, while related constructions extend the same design logic to periodic diagonal matrices, finite-difference Poisson operators, and semiseparable factorizations (Yano et al., 2 Mar 2026, Ty et al., 2024).
1. Formal definition and LCU realization
For a diagonal operator , the defining relation specializes to
Equivalently, for any 0,
1
so the block-encoding exposes diagonal data directly in basis-state amplitudes (Yano et al., 2 Mar 2026).
A standard exact realization uses the linear-combination-of-unitaries framework. If
2
one defines a state-preparation unitary 3 and the controlled unitary 4, yielding
5
In the finite-difference Poisson constructions, 6 for all 7, so the subnormalized factor is 8, and unitarity is inherited directly from the controlled-unitary building blocks and the Hadamard-tree preparation/unpreparation on the control register (Ty et al., 2024).
This formalism makes diagonal block-encoding a special case of structured LCU: the operator can be diagonal from the outset, or it can be decomposed into a small number of diagonal, shift, or Pauli-block terms. The latter viewpoint underlies most of the recent extensions.
2. Direct constructions for diagonal operators
One line of work constructs diagonal block-encodings from quantum-accessible classical data. Three loading models are used. A probability oracle 9 yields a 0 diagonal block-encoding of 1 with 2. A phase oracle 3 is itself a 4-block-encoding of 5. A binary oracle 6 loads a fixed-point expansion 7 and is then used to control subsequent gates rather than serving as a block-encoding on its own (Yano et al., 2 Mar 2026).
For spatially varying coefficients in PDEs, the same paper considers analytic approximations of the form
8
which induces the LCU representation
9
The implementation uses the standard PREP/SEL/UNPREP pattern: PREP prepares 0, SEL applies 1, and UNPREP inverts PREP. The resulting unitary uses 2 ancillas (Yano et al., 2 Mar 2026).
A distinct but closely related construction addresses periodic diagonal structure through an explicit phase gadget. For
3
binary factorization gives
4
Using one ancilla, Hadamards, controlled-5, and 6, the cosine operator satisfies
7
so the 8 ancilla subspace carries the desired cosine block. In the special case 9 with 0, the circuit uses one ancilla and has
1
hence 2 (Zecchi et al., 11 Feb 2026).
These direct constructions illustrate two complementary paradigms: oracle-based diagonal loading and analytically structured phase synthesis. Both avoid unstructured dense-matrix input models, but they differ in what must be supplied classically: either a query model for 3 or an explicit harmonic/phase representation.
3. Extension from diagonal operators to structured matrices
The most prominent extension is the finite-difference Poisson setting. The matrix family
4
arises from centered three-point finite-difference discretizations of Poisson’s equation on the 5-dimensional unit hypercube 6 with periodic, Dirichlet, Neumann, or Robin boundary conditions. Because each one-dimensional stencil matrix is circulant or nearly circulant, it admits a combinatorial block-diagonalization of the form
7
Here 8 for periodic, Dirichlet, and Neumann cases, and 9 for Robin boundary conditions. In the periodic case,
0
with 1 and 2. The periodic, Dirichlet, and Neumann cases require 3 LCU terms, while the Robin case needs 4 nonzero terms, padded to 5 by two zero operators in the LCU (Ty et al., 2024).
The corresponding circuits retain a diagonal-block flavor because each controlled unitary is elementary: 6, 7 on the least-significant qubit, 8, or, in the Robin case, controlled-9 rotations on the most-significant qubit plus 0 and its inverse. The incrementer
1
is implemented from a carry-lookahead adder (Ty et al., 2024).
A different structured extension appears for one-pair semiseparable matrices. A real symmetric one-pair semiseparable matrix 2 generated by vectors 3 and 4 satisfies
5
and admits the factorization
6
with 7 diagonal, 8 the lower-triangular all-ones matrix, and 9 diagonal. The key subroutine is an 0-block-encoding of an arbitrary diagonal matrix 1, built from an oracle 2, a reversible Boolean circuit computing a fixed-point 3, and a 4 gadget of controlled 5-rotations plus a controlled-6 for the sign. The full semiseparable construction uses 7 ancillary qubits and polylogarithmic depth (Antonioli et al., 19 Mar 2026).
Taken together, these results suggest a broader structural interpretation of diagonal block-encoding: the diagonal primitive is not limited to already diagonal matrices, but also serves as the central component in factorizations or decompositions of matrices with periodic, semiseparable, or nearly circulant structure.
4. Circuit depth, gate counts, and synthesis optimization
Reported resource statements vary sharply with the structure being exploited.
| Construction | Reported resources |
|---|---|
| Simple diagonal 8 | 9 |
| Banded periodic 0 | 1 with naive shift, 2 with optimized 3 adder |
| Finite-difference Poisson matrices | ancillas 4, Toffoli-depth 5, overall gate count 6 |
| One-pair semiseparable matrices | 7 ancillas, polylogarithmic depth, error 8 |
For the Poisson matrices, the key asymptotic statement is
9
because the only nontrivial subroutines are multi-controlled Pauli gates of 0 depth and the incrementer 1 of depth 2, with 3. The paper further states ancilla qubits 4 for the LCU plus 5 for arithmetic, overall gate count 6, and compares this against an “oracle” approach of polylog 7, poly 8 depth and a classical sparse-matrix encode of depth 9 (Ty et al., 2024).
For periodic diagonal structure, the simple diagonal case is linear in 00, whereas the full banded periodic matrix depends on how shifts are implemented. PREP and PREP01 on two ancillas cost 02 two-qubit gates if implemented by small fixed unitaries. The SELECT stage is dominated either by naive increment/decrement circuits of 03 Toffoli cost or by optimized 04 adders, leading to
05
This separates the genuinely diagonal part from the shift overhead (Zecchi et al., 11 Feb 2026).
A separate synthesis result improves generic block-encoding circuits through “diagonal matrix migration.” In the single-ancilla protocol for 06 matrices, a data-qubit diagonal operator commutes through a uniformly controlled 07 layer, allowing diagonal corrections to be absorbed into subsequent stages of a block-ZXZ recursion. The resulting leading C-NOT count for general block-encoding is
08
and for a rank-09 matrix,
10
The paper also states the counting lower bound
11
for a general block-encoding of a 12 complex matrix (Li et al., 17 Mar 2026).
The resource picture is therefore heterogeneous: diagonality can collapse costs to 13, but neighboring structural requirements such as shifts, factor compositions, or generic state preparation may dominate the actual circuit.
5. Role in PDE simulation, QSVT, and parameterized scientific computing
Diagonal block-encodings are especially prominent in PDE-oriented quantum algorithms because discretized coefficient fields often appear as diagonal matrices. In the parameterized PDE framework, diagonal coefficient operators 14 are combined with finite-difference block-encodings 15 to obtain block-encodings of first-order and second-order PDE generators. Under a Fourier assumption for the coefficients, the resulting gate count is
16
with ancilla cost 17 for the diagonal LCU-Fourier part and error 18 controlled by Fourier truncation (Yano et al., 2 Mar 2026).
Once a block-encoding 19 of 20 is available, QSVT is used to implement 21 or another polynomial approximation on the singular values. The corresponding sequence length is
22
The same framework extends to parameter-dependent operators
23
so that a design register can coherently control PDE evolution and objective evaluation in PDE-constrained optimization (Yano et al., 2 Mar 2026).
The detailed two-dimensional wave-equation example uses a shifted Gaussian speed profile
24
approximated by a truncated Fourier series of order 25. The induced coefficient operator 26 is block-encoded with 27 parameters. After adding another 6 ancillas for the 28 system selector and finite-difference block-encodings, the forward simulation uses 20 qubits; turning on the 29 registers yields 28 total qubits. The reported numerical simulations reproduce wave-front slowing near the Gaussian bump and show an objective optimum near 30 (Yano et al., 2 Mar 2026).
The same diagonal and near-diagonal methodology appears in other PDE-related settings. For the periodic-diagonal banded matrix
31
the block-encoding is intended for QSVT tasks such as matrix inversion and matrix exponentiation, with advection-diffusion-reaction dynamics given as an application (Zecchi et al., 11 Feb 2026). For finite-difference Poisson systems, combining the 32-depth block-encoding with the optimal adiabatic quantum linear solver of Costa et al. yields overall wall-clock depth
33
for preparing a quantum state representation of the PDE solution (Ty et al., 2024).
6. Error models, normalization, and implementation trade-offs
A central distinction in the literature is between exact and approximate diagonal block-encodings. The finite-difference Poisson constructions are exact at the block-encoding level because all 34 are exactly unitary and the LCU coefficients are uniform. By contrast, Fourier-based PDE coefficient encodings incur truncation error 35, and semiseparable encodings accumulate approximation error from the oracle-loaded diagonal data, the fixed-point 36 circuit, and the product of multiple block-encodings (Ty et al., 2024, Yano et al., 2 Mar 2026, Antonioli et al., 19 Mar 2026).
Normalization can also be decisive. In the semiseparable case, the scaling factor is 37, and the final error bound is
38
This means that polylogarithmic depth does not by itself imply small effective query complexity, because normalization and approximation constants still enter higher-level algorithms (Antonioli et al., 19 Mar 2026).
A separate trade-off appears in fault-tolerant implementations of diagonal quadratic operators such as
39
In the LCU/block-encoding setting, the qubit signed-binary baseline uses projectors 40 with per-call cost
41
The native qudit LCU expands 42 in generalized Pauli powers 43, with PREP and SELECT requiring 44 embedded two-level rotations in the fixed-encoding model. The paper states that the qubit encoding is asymptotically cheaper in 45, while finite-46 threshold analysis identifies regions where qudits can offer constant-factor savings: at 47, 48 only for 49 in the precision-dominated regime 50, and up to prime 51 in the time-dominated regime 52 (Godwood et al., 29 Apr 2026).
These results indicate that diagonal structure alone does not fix the full cost profile. The dominant overhead can lie in PREP, in shifts or adders, in normalization, in approximation error, or in fault-tolerant rotation synthesis. The common advantage of diagonal block-encodings is therefore not the elimination of all complexity, but the conversion of otherwise unstructured matrix input into a form compatible with explicit circuit analysis, QSVT composition, and structure-dependent asymptotic improvements.