WorksMathematics
Quantum-Inspired Tensor Train Spectral Solver for High-Resolution PDEs with Non-Periodic Boundary Conditions
Abstract
Tensor train (TT) methods enable high-resolution computational mechanics simulations by exploiting low-rank structure in discretized fields and operators. While the superfast Fourier transform (SFFT) has enabled efficient TT-based spectral solvers for periodic problems, corresponding representations for non-periodic boundary conditions remain underexplored. We introduce the superfast cosine and sine transforms (SFCT and SFST), extending the TT spectral framework to homogeneous Neumann and Dirichlet boundary conditions, respectively. Building on a quantum-circuit construction of the discrete cosine and sine transforms, we derive both transforms from a shared TT operator representation and prove that their TT ranks are bounded by , independently of the discretization order, where is the rank of the SFFT at the prescribed accuracy. The measured ranks plateau near 32 for grid sizes up to points. For Rayleigh-Bénard convection, spectral pressure projection achieves up to a 7-fold speedup in the Poisson solve relative to a preconditioned physical-space TT solver while maintaining comparable accuracy. Three-dimensional computational homogenization achieves a 2-6-fold speedup and a 4-7-fold reduction in memory consumption compared with the existing TT-based approach. The results establish an efficient TT framework for spectral PDE solvers with non-periodic boundary conditions.
Introduction
Partial differential equations (PDEs) model a wide range of physical phenomena, including fluid flow, heat transport, and the response of heterogeneous materials. Their numerical solution on fine grids can require substantial memory and computing time. Tensor-Train (TT) methods approximate the discretized solution by a chain of small tensors [1, 2]. The dimensions connecting these tensors, called TT ranks, determine the storage cost and the attainable approximation accuracy. Calculations can be carried out on the compressed representation, with potential savings when the ranks remain moderate. TT methods have proven beneficial in a wide range of high-resolution applications, including fluid dynamics [3, 4], kinetic plasma dynamics [5], simulations of the Gross–Pitaevskii equation [6, 7], structural mechanics problems [8, 9] and computational homogenization [10, 11, 12, 13].
For grid dimensions of the form with , TT representations provide a link between tensor-based numerical methods and quantum computing (see [14] for a review). This connection can be exploited in both directions: tensor networks have been used to construct quantum circuits for differential equations [15] and hybrid algorithms for nonlinear flow problems [16], while quantum-circuit constructions can, conversely, be used to derive low-rank TT representations. For the quantum Fourier transform (QFT), such a low-rank representation has been established in the form of the Superfast Fourier Transform (SFFT) [17, 18]. The SFFT applies the transform directly to fields in compressed TT form, avoiding the reconstruction of the full grid vector. Its computational efficiency depends on the intermediate TT ranks. For periodic problems, this approach enables direct Fourier-space operations within a TT solver [11].
While the SFFT provides an efficient approach for periodic problems, practical applications also involve non-periodic boundary conditions, such as Dirichlet and Neumann conditions, or combinations thereof. Spectral methods offer a natural way to accommodate these conditions through basis functions adapted to the underlying boundary-value problem. For suitable operators on uniform Cartesian grids, discrete cosine and sine transforms diagonalize the corresponding finite-difference operators for homogeneous Neumann and Dirichlet conditions, respectively. This allows the discrete equations to be solved in spectral space, although the appropriate transform depends on the grid arrangement and boundary discretization [19]. Such operators arise, for example, in pressure-correction equations for wall-bounded incompressible flow [20] and in computational homogenization with prescribed displacement or traction boundary conditions [21, 22].
TT methods for non-periodic boundary-value problems include finite-element solvers [23, 24] and explicit representations of the one-dimensional discrete inverse Laplacian [25]. For thermal homogenization, Risthaus and Schneider [13] compared a solver based on conventional sine and cosine transforms with one based on a QTT approximation of the Green’s operator. However, a direct TT representation of the spectral transforms themselves has not yet been established. To address this gap, we adapt the quantum-circuit construction of [26] and derive the type-II superfast cosine and sine transforms (SFCT and SFST) from a shared QFT-based TT operator. We prove that their ranks are bounded by , where is the SFFT rank, independently of the grid size. We evaluate their numerical accuracy, ranks, storage requirements, and runtime for sizes up to grid points. Finally, we demonstrate the applicability of the transforms to two relevant problems in computational mechanics. For Rayleigh–Bénard convection, we compare a mixed Fourier–cosine pressure solver with a preconditioned physical-space TT solve. In three-dimensional computational homogenization, we apply the spectral transforms to problems with mixed, periodicity-compatible uniform boundary conditions.
The remainder of this paper is organized as follows. § 1.1 summarizes the basics of the TT format. In § 2, we develop the SFCT and SFST and use their quantum-circuit construction to establish the expressivity theorem. We then evaluate their accuracy and computational cost numerically. § 3 and § 4 present two complementary applications in computational mechanics: Rayleigh–Bénard convection and computational homogenization. Finally, § 5 summarizes the main developments and findings of this work.
Tensor-Train Format
In this work, we employ the tensor train (TT) format to represent a tensor of order as a chain of interconnected third-order tensors, referred to as TT cores. The decomposition of is given by [1]
where denotes the -th TT core with physical dimension and shape . The tuple collects the virtual indices. The corresponding TT ranks determine the expressive capacity of the representation and, consequently, its computational cost. The boundary ranks are conventionally fixed to the trivial dimension to obtain a closed representation.
For an -th order tensor with uniform physical dimension , direct storage requires elements, whereas the TT representation requires only parameters, provided the TT ranks are bounded by . Thus, for sufficiently low ranks, the representation reduces the storage requirement from exponential to linear in the tensor order . This low-rank structure also enables efficient manipulation of high-dimensional tensors without explicitly forming the full tensor [27, 28], potentially leading to significant runtime improvements in the process.
To apply the TT format to spatially discretized fields, such as those considered throughout this work, we first reshape their sampled values into high-order tensors by expressing the grid indices in binary form. For a uniform grid with points on , each coordinate can be expressed through
Each grid point is therefore identified by a binary string . Generalizing this idea to a three-dimensional field sampled on a tensor-product grid results in an order- tensor. Thus, defining the tuples and analogously and , we define the high-order tensor
Since this procedure is solely a bookkeeping operation, it introduces no additional approximation to the sampled field. The resulting high-order tensor can be transferred into TT format by employing the TT-SVD algorithm [1], yielding the quantized tensor-train (QTT) representation, with physical dimension . This representation is mathematically analogous to the tensor-product structure of a quantum many-body system, where each binary mode corresponds to a single qubit with a two-dimensional Hilbert space [29]. This analogy will be explored in subsequent sections.
Scalar multiplication, addition, element-wise multiplication, and the application of linear operators can be performed directly in TT format. Scalar multiplication leaves the ranks unchanged, whereas addition, element-wise multiplication, and operator application can increase the TT ranks, potentially leading to an increasingly costly representation as successive operations are performed. However, TT rounding reduces these ranks while controlling the relative Frobenius error [1]. Alternatively, the TT ranks can be truncated to a prescribed maximum value, providing direct control over the representation complexity at the expense of potentially larger approximation errors.
For the application of a general linear map, the operator itself must also be represented in a suitable tensor format. A tensor-train operator (TTO) represents the linear map in TT form and can be applied to a TT tensor through local contractions between the corresponding operator and tensor cores. In analogy to the TT representation, each TTO core contains two physical indices, corresponding to the input and output spaces. Therefore, a TTO is written as
where denotes the -th TTO core. For the square operators considered here, each TTO core has dimensions , where denotes the operator rank and . The indices and correspond to the output and input, respectively. Applying a TTO to a TT contracts each input index with the corresponding physical index of the TT. Before compression, the resulting representation has bond dimensions .
Another central operation is the Hadamard product , which refers to the pointwise multiplication of discretized fields. Such operations arise, for example, in the evaluation of nonlinear terms and the application of diagonal operators in spectral space, and can constitute a major computational bottleneck in TT-based solvers. For two fields and in TT format, the Hadamard product can be written as . If is the -th TT core of , the corresponding core of is defined as
Applying the diagonal TTO to is a standard TTO–TT contraction. If both input TTs have rank , the product ranks can reach . Reducing these ranks using standard TT rounding costs .
Variational compression (VAR) instead fits an output TT without forming the rank- intermediate. This fit can be computed via alternating least squares (ALS) [30], which minimizes over one core of at a time. For comparable input and output ranks, each sweep costs [31]. Rank-adaptive alternatives include the two-site modified alternating least squares (MALS) method [30], which updates two neighboring cores together, and the alternating minimal energy method (AMEn) [32], which enriches the local basis using residual information.
Algorithms for the Hadamard product that can achieve cubic scaling in the TT rank include tensor train multiplication (TTM) [31], alternating cross interpolation (ACI) [33], and recursive sketched interpolation (RSI) [34]. In § 3, we test RSI as an alternative to VAR for the Hadamard product within the spectral Poisson solver.
Boundary-Adapted Spectral Transforms in TT Format
In this section, we develop TT representations of boundary-adapted spectral transforms, connecting classical spectral methods with quantum-circuit constructions and their classical tensor-network representations. We focus on the type-II discrete cosine and sine transforms (DCT-II and DST-II), which are relevant to the boundary conditions considered in this work. The construction can be extended analogously to other types of cosine and sine transforms. Starting from the classical construction of these transforms, we derive a unitary quantum formulation and exploit its circuit structure to establish an upper bound on the TT ranks of the resulting transform operators. This analysis provides the foundation for the Superfast Cosine and Sine Transforms introduced in the subsequent sections.
Classical Spectral Methods
To illustrate the construction of spectral methods for boundary value problems, we briefly review Fourier-type transforms for solving elliptic partial differential equations on bounded domains. As a simple example, we consider the one-dimensional Poisson problem to establish the fundamental concepts underlying the subsequent formulations. Let and consider the problem
subject to homogeneous Neumann boundary conditions
In general, the continuous problem is reformulated in a discretized setting to obtain a computationally tractable formulation. Therefore, the domain will be represented using a cell-centered grid
with . For consistency with the subsequent sections, we assume that the number of grid points is a power of two, , with . The continuous functions in Eq. (6) are sampled at the grid points, yielding the discrete values and for the field and source terms, respectively. We then construct the even extension of as
which contains entries and is indexed similarly by . An analogous even extension is constructed for .
The discrete Fourier transform (DFT) can then be applied to these extended vectors, yielding
with the Fourier coefficients and , respectively. Additionally, the component wise Poisson equation (6) can be written through
To close the above finite difference operation at the boundary points, we introduce two ghost points through the discrete Neumann conditions and . Substituting the transformations (7) and (8) into the component-wise discretized Poisson equation (9) yields an alternative representation of the original problem in Fourier space
The differential equation we started with is thus transformed into an algebraic equation in Fourier space. Owing to the orthogonality of the Fourier modes, the above expression further reduces to the component-wise equation
with for . Since , the zero mode imposes the solvability condition that discrete source has zero mean
Moreover, the zero mode implies that the solution is not unique, since its mean component remains undetermined. In particular, if is a solution, then so is for any constant .
The even extension allows the Poisson problem to be solved using the DFT, but doubles the number of grid points from to without adding new information. The discrete cosine transform avoids this redundancy by incorporating the even symmetry directly into the transform, allowing the original -point problem to be solved without explicitly constructing the extended signal.
To see how this is achieved, let us consider the Fourier transform of the even extension
Due to the even extension, the symmetry condition is fulfilled. Therefore we are able to simplify the above relation to
with the orthonormalization factor for and .
The above expression connects the original -point vector with its components in Fourier space via the orthonormal DCT-II transform . Therefore, we can solve the one-dimensional Poisson problem with Neumann conditions without explicit even extension.
Similar derivations can be performed for different discretization schemes, leading to the different DCT types, as well as for Dirichlet boundary conditions, leading to the discrete sine transform (DST) [19, 35]. More complex inhomogeneous Dirichlet boundary conditions can be incorporated via a lifting function satisfying the prescribed boundary values. Writing yields a homogeneous problem for with a modified right-hand side. Neumann and mixed boundary conditions can be treated analogously by choosing appropriate symmetric or antisymmetric extensions, leading to cosine- or mixed-sine spectral bases [36].
Quantum Spectral Methods
Quantum Spectral Methods build on variants of the Quantum Fourier Transform (QFT) adapted to different boundary conditions. While periodic boundary conditions are treated using algorithms based directly on the QFT, Dirichlet and Neumann boundary conditions are naturally associated with the Quantum Sine Transform (QST) and Quantum Cosine Transform (QCT), respectively.
The quantum circuit implementation of the QFT is shown in Figure 1 (a), where the -qubit QFT is represented through a product

Figure 1. Quantum circuit for qubits: (a) the QFT and (b) the QCST. (c) Extraction of either the SFCT or SFST from their shared TTO representation. Selecting either SFCT or SFST is achieved by fixing the boundary cores to trivial 0− or 1−vectors. This procedure generally produces a skewed TTO representation, which is subsequently restored to standard canonical TTO form via a reshaping step. The circuits in (a) and (b) are based on the constructions presented in [37] and [26], with modifications described in the text.
of the pure transformation , and a reordering operation [37]. While the pure transformation depends solely on elementary gates, such as the Hadamard and the phase gate , the reordering operation depends on multiple SWAP gates. These rely heavily on CNOT gates, which remain a comparatively challenging component even in the quantum setting [38]. Moreover, the reordering is not necessarily needed for the actual transform but rather is introduced in the literature to match the ordering conventions used in classical DFT methods. In contrast to its classical counterpart, which exhibits an exponential time-complexity in the number of qubits, requiring operations, the QFT achieves a quadratic time complexity of [37, 39].
Classically, the DCT and DST can be derived from the DFT using even and odd extensions of the input data, respectively. However, simply discarding redundant Fourier coefficients is not a unitary operation and therefore cannot be directly implemented on a quantum computer. A suitable quantum circuit must implement the desired transform while preserving unitarity.
This obstacle can be avoided by embedding the sine and cosine transforms into a single unitary framework rather than treating them as independent reductions of the Fourier transform. Specifically, one can decompose the Fourier transform into two symmetry-adapted components acting on complementary subspaces
where and denote the discrete cosine and sine transforms of type II, respectively [35]. Similar decompositions can be derived for other types of discrete cosine and sine transforms. This identity defines a unitary mapping on the full Hilbert space of dimension . It therefore admits a natural quantum generalization by replacing the classical FFT with the QFT and constructing quantum circuits for the auxiliary basis transformations and [26]. The full quantum circuit implementing the combined Quantum Cosine-Sine Transform (QCST), analog to Eq. (13), is shown in Figure 1(b). We emphasize that the circuit is formulated exclusively in terms of the reduced transform , cf. Eq. (12). While this restriction is not strictly necessary for the quantum implementation, it is crucial for obtaining an efficient classical tensor train representation. The full circuit representation employs a set of non-standard gates defined as
as well as , and where . In addition, the construction makes use of the bit-reversed inverse permutation gate
with . The operator constitutes the bit reversal operation . The original permutation gate is a well-known construction consisting solely of multi-controlled NOT gates [40].
Quantum-Inspired Spectral Methods
Having established a full quantum circuit representation of the QCST, we now address its classical simulability. In particular, we ask how the complexity of this transformation scales in a classical TT representation. It is well known that the reduced QFT , which forms the backbone of the QCST construction, admits an efficient classical representation in TT format known as the Superfast Fourier Transform (SFFT) [17, 18]. This suggests that similar properties are inherited by the QCST structure as well. This leads to one of the central results of this work:
Theorem 1 (Expressivity Theorem). The quantum circuit implementing the QCST admits a TT representation with maximal TT rank bounded by
where denotes the TT rank of the SFFT associated with a relative accuracy . If the circuit is restricted to implement either the quantum version of the DCT or the DST individually, the corresponding TT rank satisfies the tighter bound
The proof takes the operator Schmidt decomposition of the circuit in Figure 1(b) across every qubit bipartition, left and right of the reduced QFT . The initial Hadamard–CNOT block has Schmidt rank two. To the right of , the controlled block reduces to a product operator of rank one, while the two controlled permutations have rank three and the CNOT-- block has rank four. Because these components share operator factors, the assembled right-hand block does not reach the naive product of these ranks but has Schmidt rank exactly six, which drops to three once the output index of the last qubit is fixed. Combining the leading factor of two with the rank of , which is determined by the prescribed operator accuracy , yields the bounds and , respectively. A detailed proof of Theorem 1 can be found in Appendix A. Following the naming convention used for the SFFT, we refer to the TTO representations of the QCT and QST as the Superfast Cosine Transform (SFCT) and Superfast Sine Transform (SFST), respectively.
The tighter bound applies directly to the SFCT and SFST: both are obtained from the QCST by fixing the boundary physical indices, see Figure 1(c). Since fixing an index cannot increase a bond dimension, the ranks of the transforms are bounded by those of the QCST. Reshaping the resulting tensors into standard TTO form (step 2) may introduce an additional rank increase, but the observed ranks remain well below , as shown in § 2.4. The ranks required to achieve a prescribed accuracy for the SFFT saturate as the discretization is refined. The rank bounds derived above therefore imply the same saturation behavior for the QCST and, consequently, for the SFCT and SFST. The question remains under which conditions the TTO version is preferred over the classical transforms.
Before proceeding with the analysis, we convert the quantum circuit into a TTO representation using the so-called Zip-Up algorithm, which constructs the operator sequentially, one slice at a time [41]. The resulting slices are successively contracted and compressed to obtain a single TTO representing the full transformation.
Importantly, within the TN framework the unitarity constraint is no longer required. This allows us to construct separate TTO representations for the cosine and sine transforms from the full QCST operator without discarding information explicitly. To this end, we exploit the block-diagonal structure of the decomposition in Eq. (13). The DCT and DST components can be extracted by fixing the boundary physical indices of the TTO. Concretely, we project the input index of the first core and the output index of the last core onto basis states or , see Figure 1(c). This selection reflects the structure of the underlying operator: the input index of the first core determines whether the upper or lower block of the matrix representation in Eq. (13) is selected, while the output index of the last core distinguishes between the left and right blocks. The latter arises from the adopted momentum-space convention, which reverses the ordering of the cores. Consequently, the first core encodes both the most significant input bit and the least significant output bit.
Performing the resulting contractions yields a TTO in a slightly distorted form, where the boundary cores carry either a single input or a single output index, see Figure 1(c), step 1. To restore the standard TTO structure, we apply a sequence of contractions and reshaping operations. First, the uppermost core is contracted with its neighboring core and reshaped to expose one input and two output indices. The resulting tensor is contracted with the next core and reshaped again, effectively transferring the output index to the next core. This is followed by a SVD, which splits the compound tensor back into two cores: the first regains the standard TTO structure, while the second temporarily carries two output indices. Repeating this procedure moves the output indices one core at a time along the chain until the final core is reached. In this process, the output indices are propagated along the chain, while the first core, having lost its outer indices, is absorbed into its neighboring core. This restores the regular TTO form, as illustrated in Figure 1(c), step 2.
Validation
Before incorporating the superfast spectral transform into practical applications, we first assess the performance of the SFCT by comparing it with the classical DCT for a range of representative input signals. Specifically, we investigate its accuracy, computational cost, and TTO rank growth as functions of the discretization order, characterized by the number of qubits .
To probe different spectral characteristics, we consider the following classes of inputs: (i) smooth periodic signals, (ii) high-frequency oscillatory signals, (iii) discontinuous signals, (iv) localized Gaussian profiles, and (v) i.i.d. Gaussian white noise samples. These test cases span a range of regularity and spectral localization properties, which are known to strongly influence TT compressibility. The explicit definitions are provided in Appendix B. All experiments are conducted on a one-dimensional uniform grids of size , with ranging from 2 to 26. The classical reference solutions are computed using the orthonormal type-II DCT. However, since the computational cost of the DCT-II does not depend on the specific input, only one representative run is reported. The TT-based computations employ an error-controlled truncation scheme with tolerance . Consequently, the error between the reference solution and the TT approximation remains on the order of the prescribed tolerance and is therefore not shown in a separate plot. No explicit rank constraints are imposed, allowing the TT ranks to adapt dynamically.
Figure 2(a) shows the runtime comparison between the classical DCT and the SFCT. While the classical implementation exhibits the expected scaling [42], the TT-based method shows favorable scaling behavior for all structured input types. In contrast, the unstructured white noise input does not exhibit compression and follows a scaling comparable to the classical method, up to a constant prefactor. For structured inputs, all TT-based runs exhibit a crossover with the classical method at approximately . Beyond this regime, the SFCT becomes increasingly efficient, with runtime improvements of several orders of magnitude.

Figure 2. (a) Runtime comparison of the classical DCT and the SFCT for different input classes as a function of the discretization order ; (b) TTO rank evolution of the SFCT; (c) Memory of the SFCT operator compared with the signal vector required by the classical FFT-based DCT (dashed) and, for reference, the dense DCT matrix (dotted).
The evolution of the maximal TT rank of the SFCT representation is shown in Figure 2(b). After an initial growth phase for small , the ranks stabilize at a plateau value of approximately 32. This behavior is consistent with Theorem 1, under the assumption that the underlying reduced QFT operator saturates at a fixed rank ( for the chosen accuracy).
Finally, Figure 2(c) compares the memory required by the SFCT operator with that of the classical DCT. Since the classical transform is evaluated via the FFT without forming the transform matrix, its memory is dominated by the signal vector and grows as , while the dense transform matrix is shown for reference only. Once the TT rank plateau is reached, the memory of the SFCT grows only linearly in . The two curves cross between and , and at the SFCT operator requires 0.67 MB compared with 540 MB for the signal vector, a reduction by a factor of about 800.
Overall, these results demonstrate that the SFCT provides an efficient and accurate representation of spectral transforms for inputs that admit a compact TT representation, particularly in the high-resolution regime of large . The corresponding results for the DST-II and the SFST are given in Appendix C.
Application I: Quantum-Inspired CFD
TT methods have been used to simulate incompressible flows in periodic [3, 43, 44] and wall-bounded domains [4, 45, 46]. Several of these methods solve the Poisson equation for pressure or streamfunction in physical space. For the two-dimensional Rayleigh–Bénard benchmark of Ref. [47], we compare two spectral TT pressure solvers with a preconditioned physical-space TT solver. In this problem, a fluid layer is heated from below and cooled from above [48]. The horizontal direction is periodic, and at the plates we impose no-slip conditions on the velocity and homogeneous Neumann conditions in the pressure projection [20, 49]. The discrete pressure operator is diagonalized by a Fourier transform in the horizontal direction and the DCT-II in the wall-normal direction (§ 2).
Following Ref. [47], we use the Oberbeck–Boussinesq approximation and scale lengths by the plate separation , temperatures by their difference , and velocities by , where is the gravitational acceleration and the thermal expansion coefficient. Time is measured in units of . The Rayleigh and Prandtl numbers are and , with kinematic viscosity and thermal diffusivity . The governing equations are
Here and , repeated indices are summed, and is the Kronecker delta. The coordinate increases downward, as in Ref. [47]. The pressure is scaled by the reference density times , and denotes temperature relative to the plate-mean temperature. We use and in a domain of width . At the plates in scaled coordinates, and . The figures use height above the lower plate, , and upward velocity .
We use the uniform staggered grid, second-order finite differences, and two-stage implicit–explicit Runge–Kutta (IMEX-RK2) scheme described in Ref. [47]. The discretization orders are and , giving and grid points, and . Let and denote the staggered-grid divergence and gradient. Each pressure projection solves
where is the intermediate velocity and is in the first stage and in the second. The velocity correction is .
For the solver comparison, we prescribe a rank cap for velocity, temperature and pressure instead of a compression tolerance as in § 2.4. We apply the same cap when forming the pressure right-hand side (RHS). To assess storage efficiency, we use the ratio of stored TT coefficients to entries in the full-grid array for each field:
The three pressure solvers are as follows, where both spectral solvers use the SFFT in the horizontal direction but compute the wall-normal DCT-II differently:
Preconditioned ALS. We solve the physical-space pressure equation with ALS [30], using a left preconditioner with maximum operator rank [46]. The construction of and its use in the local linear systems are described in Appendix § 10.
SFCT. The SFCT applies the DCT-II directly to the wall-normal sites, without extending the field.
Even extension + SFFT. The wall-normal DCT-II is evaluated through an even extension and the SFFT on sites, followed by restriction and phase correction. The remaining pressure-solve operations are the same as in method 2.
The periodic–Neumann Laplacian has a constant null mode. We subtract the discrete mean of the RHS before solving, as required by Eq. (11). ALS fixes the pressure at one grid point. The spectral solvers set its mean to zero. For an exact solve with a compatible RHS, these gauges give the same pressure gradient. Writing for the RHS and hats for the mixed Fourier–cosine transform, the spectral solvers compute
Here and , with the constant mode. For scaled grid spacings and , the eigenvalues are
The wall-normal eigenvalues have the cosine spectrum derived in § 2. For the SFCT, we approximate the inverse-spectrum product using VAR. For even extension + SFFT, we compare VAR with RSI [34] for the same product. We compare these three spectral configurations with preconditioned ALS. We construct the TT representation of using tensor cross interpolation (TCI) [50]. The spectral construction tolerance controls , the eigenvalue vectors and phase factors. The inverse transform is followed by realification (Appendix § 11.1) and rounding to .
Starting from the same developed convective state, we compare trajectories through . We run each of the three spectral configurations at and preconditioned ALS only at . Separate short runs compare the computational cost of all four solver configurations at .
For velocity and temperature, we use
The velocity norm includes both components. The reference uses the same spatial and temporal discretization without TT compression. We evaluate heat transport and incompressibility using
Here denotes the volume average. The minus sign follows from the downward velocity .
Figure 3 compares the reference and SFCT fields at . The rank-100 TT fields have a relative storage requirement of . All four rank-100 runs in Figure 4(a,Figure 4b) reproduce the reference heat transport with relative deviations below over the sampled times.
Figure 3. Rayleigh–Bénard convection at . (a) Full-grid reference and (b) SFCT solution at , using VAR for the inverse-spectrum product. Parameters are , , and (512 × 256 grid points). Color shows temperature and line integral convolution (LIC) shows velocity orientation.
Figure 4. Heat transport, velocity divergence and field errors for the four pressure-solver configurations. Spectral constructions use . (a) Volume Nusselt number and (b) its relative error at . (c) Divergence RMS at the indicated ranks. (d) Relative velocity error and (e) relative temperature error at . Preconditioned ALS is shown only at .
Increasing the field rank reduces both the divergence and the field errors (Figure 4(c–Figure 4e)). The SFCT and even extension followed by the SFFT give similar errors at all three ranks. Their endpoint divergence RMS falls from about at to at . At , all four configurations give endpoint velocity and temperature errors of approximately and , with divergence RMS values of –. At , the spectral runs reduce the field errors to about and , respectively, roughly 300 times smaller than at . The full-grid reference divergence remains below . In the TT runs, divergence can remain even after an accurate pressure solve because we round the RHS and the updated velocity to rank . Changing VAR to RSI in the SFFT runs with even extension has comparatively little effect on the field errors.
Figure 5 compares pressure-solve and full-step times at for the four configurations. At step 10, all four give relative errors of approximately in velocity and in temperature. Relative to preconditioned ALS, the SFCT with VAR gives a 3.75-fold speedup for the pressure solve and a 1.48-fold speedup for the full step. For even extension followed by the SFFT, the corresponding speedups are 3.45 and 1.45 with VAR, and 7.30 and 1.62 with RSI. The momentum and temperature solves account for most of the remaining cost.
Figure 5. Time per step at for (a) both pressure projections combined and (b) the full step. SFFT denotes the even-extension runs. Bars show median times. Error bars span the three repetitions. Each label shows the median speedup over preconditioned ALS (Prec. ALS), calculated from matched runs. See Appendix § 11 for timing procedures and solver details.
Application II: Quantum-Inspired Homogenization
Given a composite material, Fourier-based homogenization [51, 52] determines its macroscopic mechanical response by solving a microscopic boundary value problem on a representative volume element (RVE) [53]. For a prescribed macroscopic strain , the objective is to determine the effective stiffness tensor , relating the macroscopic stress and strain through
The RVE considered here consists of distinct material phases with piecewise-constant properties and sharp interfaces. The local constitutive response is described by
We first review the classical FFT-based homogenization scheme and its Tensor-Train extension before generalizing the latter to periodicity-compatible mixed uniform boundary conditions (PMUBC), which are particularly suitable for finite microstructural samples that are not intrinsically periodic. Their spectral treatment relies on the DCT-II and DST-II formulations introduced above.
Throughout this section, stress and strain tensors are represented in Voigt notation as vectors , with in two dimensions and in three dimensions. The stiffness tensor is correspondingly represented by a matrix [52].
FFT-based Homogenization
On the periodic RVE , the total displacement field is given by , where denotes the prescribed macroscopic part and is a periodic fluctuation. The local strain field is obtained from the displacement field as
with denoting the symmetric part of the gradient. We further require the fluctuation to have a vanishing average gradient over the cell,
which ensures that equals the volume-averaged strain. Requiring the local stress field to satisfy equilibrium and introducing a homogeneous reference stiffness together with the polarization field
the local equilibrium problem can be recast as the well-known Lippmann–Schwinger equation [51, 54]
The symbol denotes the Green–Eshelby operator associated with the homogeneous reference stiffness . This
Algorithm 1: FFT-based homogenization algorithm
Input: Macroscopic strain , stiffness , tolerance
Output: Local strain field
while not converged do
if then
break
end
end
return
operator admits a closed-form representation in Fourier space [55], and, additionally, the convolution in the Lippmann–Schwinger equation reduces to a pointwise product in this representation. This enables efficient evaluation using the Fast Fourier Transform (FFT), denoted by , resulting in the FFT-based homogenization algorithm 1. This algorithm evaluates Eq. (23) iteratively, starting from , until the convergence criterion is satisfied. Here and in the following we set .
After convergence, the effective stiffness tensor is obtained from the volume-averaged stress corresponding to each prescribed macroscopic strain . Specifically,
and the resulting stress–strain relation determines [56]. The computational cost of the FFT-based scheme scales as for an discretization. This motivates the Tensor-Train formulation introduced in the following subsection, which aims to reduce the computational and memory requirements for high-resolution RVEs.
Tensor-Train based extension
The FFT-based homogenization scheme can be transferred to the tensor train format by representing the discretized fields and operators as low-rank tensor representations and replacing the classical Fourier transform by the Superfast Fourier Transform (SFFT). A detailed derivation of the resulting SFFT-based homogenization scheme is given in [11]; here, we summarize the aspects relevant for the present formulation. All fields and operators use the QTT representation of Section 2.
In contrast to the scalar fields often considered in conventional applications of TT formalism, the quantities appearing in the homogenization algorithm carry additional tensorial indices of dimensionality associated with the Voigt representation. The TT representation must therefore account for these indices in addition to the indices associated with the discretization procedure. This is achieved by introducing an additional control core at the beginning of the TT representation, whose dimensionality corresponds to the number of Voigt components, six in the present three-dimensional formulation. The Green–Eshelby operator requires particular care because its momentum-space representation imposes a specific TT core ordering that must be consistent with the convention dictated by the SFFT (cf. § 2). For a multidimensional tensor-product transform, this is achieved by reversing the ordering of the TT cores independently within each spatial dimension.
With these representations, the FFT-based homogenization procedure can be transferred directly to TT format by replacing the Fourier transforms and with the SFFT and its inverse, denoted by and , respectively. The pointwise application of the Green–Eshelby operator, , is replaced by the fast AMEn TT-TTO contraction algorithm denoted by [32].
The resulting SFFT-based homogenization scheme therefore follows the same fixed-point iteration as the classical FFT formulation. After convergence, the local strain field is obtained by contracting the resulting tensor train representation. If the TT ranks of all fields and operators remain bounded, the computational cost per iteration grows only polylogarithmically with , in contrast to the complexity of the classical FFT-based scheme [11]. Whether this regime is reached depends on the microstructure.
Spectral-Tensor-Train Homogenization
We generalize the SFFT-based homogenization framework to Spectral-Tensor-Train (STT) homogenization by replacing the purely periodic boundary conditions with periodicity-compatible mixed uniform boundary conditions (PMUBC) [21, 57]. These conditions extend periodic boundary conditions by combining displacement and traction constraints and are particularly suitable for finite microstructural samples that are not intrinsically periodic. In particular, for porous media, finite-volume representations of the microstructure may exhibit pronounced size and boundary effects, and artificially periodic continuation can alter features such as pore connectivity and therefore lead to significant differences in the predicted effective properties [58, 59, 60]. For readability, we present the following construction in two dimensions. Its extension to three dimensions is straightforward and is adopted in the numerical experiments.
For a prescribed macroscopic tensile load in Voigt notation , the corresponding PMUBC are given by
Here, the normal displacement is prescribed in the loading direction, while the transverse displacement and shear tractions are constrained according to the PMUBC prescription.
For a macroscopic shear load , the corresponding conditions take a different form, fulfilling
Here, the roles of displacement and traction constraints are exchanged component-wise. The particular choice of boundary condition therefore depends on the applied macroscopic strain component, rather than being identical for all load cases. Details for all components in the three-dimensional formulation are given in Appendix H.
PMUBC can alternatively be interpreted through an extended mirrored domain. In particular, PMUBC on the original domain are equivalent to periodic boundary conditions on , provided that the displacement field is extended according to
These reflection symmetries induce corresponding even and odd symmetries in the local strain and stress components. The resulting extensions satisfy the appropriate matching conditions across the boundaries of the mirrored cells and therefore define periodic fields on the extended domain [57].
Although this construction permits the direct application of the FFT-based homogenization scheme on the mirrored domain, it increases the number of grid points by a factor of four in two dimensions and eight in three dimensions. To avoid this severe overhead, we instead exploit the symmetries induced by the mirrored-domain construction directly on the original domain, following [21]. In particular, each field component is either even or odd with respect to a given coordinate, with the specific symmetry depending on the applied macroscopic strain and the field component. This structure allows the corresponding Fourier transforms to be evaluated using only half of the original grid.
The construction parallels the even extension of § 2, with two differences: the symmetry is now imposed by the boundary conditions rather than chosen, and it differs between field components and load cases. Consider first a discretized volumetric component , , for which the even or odd symmetry on the mirrored domain translates to the grid-level relation
Substituting this relation into the formula for the discrete Fourier coefficients
and pairing each index with its mirrored counterpart yields, for an even number of grid points,
The phase factor accounts for the fact that the reflection symmetry is centered between grid points, while the remaining sums are real-valued cosine and sine transforms [21, 61].
For shear components, the corresponding symmetry relation takes the form , resulting in
Thus, the PMUBC formulation requires discrete cosine and sine transforms with additional phase factors, which are realized in the TT format by the SFCT and SFST, respectively.
Depending on the applied macroscopic strain, different components of the displacement, strain, and stress fields exhibit different symmetry types and consequently require different combinations of SFCT and SFST, as indicated in Figure 6. The complete component-wise transformation pattern for the employed Hex8R discretization [62] therefore relies exclusively on the DCT-II and DST-II and is given in Appendix H. Consistent with the type-II transforms, whose symmetry axis lies between two samples, the microstructure is sampled at the voxel centers, so that the mirror planes coincide with the voxel boundaries.

Figure 6. Slice of the 3D RVE (a) for the input geometry and (b) the corresponding local stress field under shear load. The arrows indicate the relation between the displacement vectors within each quadrant. The dashed box denotes the reduced domain used for the STT homogenization method. The gray region has a Young’s modulus of , while the white region has . Both regions have a Poisson’s ratio of .
When assembling these component-wise transforms in the TT format, the different frequency sets of the cosine and sine transforms require a common frequency layout. However, for a transform length , the cosine transform yields the frequencies , whereas the sine transform yields . We therefore store each sine coefficient in slot , mapping the Nyquist frequency to slot 0. This cyclic shift introduces no information loss, since the sine coefficient at vanishes identically. However, slot 0 then represents different physical frequencies for cosine and sine components. This distinction must be retained when applying the Green–Eshelby operator, which couples the Voigt components: at slot 0, cosine components are coupled at and sine components at , whereas components of different parity are decoupled. All other frequency slots remain unchanged.
Returning to Algorithm 1, PMUBC can be incorporated into the Fourier-based homogenization algorithm by replacing the standard SFFT with the load-dependent, component-wise SFCT or SFST and the associated phase factors as well as the periodic Green operator by the modified operator described above. The multidimensional transforms are constructed separably by applying the prescribed one-dimensional transforms along each spatial direction for every Voigt component and load case, according to the symmetry patterns listed in Appendix H. The corresponding one-dimensional TTOs are concatenated along the consecutive directional TT cores and connected by rank-one bonds.
The phase factors are also represented in TT format with rank one. They depend only on the mode index , defined analogously to Eq. (3), along the corresponding direction. The -th core of the phase TT satisfies , while for it is given by
The resulting rank-one phase representation can be lifted to a TTO through Eq. (5) and combined directly with the corresponding SFCT or SFST TTO.
Evaluation of the Homogenization Algorithm
Having established the role of the SFCT and SFST within the STT-based homogenization algorithm, we evaluate the computational performance of the mirrored and reduced-domain formulations for the three-dimensional boxed-fiber geometry shown in Figure 6. The discretization order determines discretization points per spatial dimension and points in the full three-dimensional domain. Thus, the maximum investigated order of corresponds to points per dimension and approximately points in the full domain. For the reduced-domain formulation, the smaller computational domain is explicitly accounted for in the PMUBC formulation, where a mirrored domain of order is represented by a reduced domain of order , such that both approaches are evaluated at the same physical resolution. All experiments use a fixed TT-compression tolerance of . The TT-based homogenization reproduces the effective stiffness of the classical FFT-based scheme over the range in which the latter remains feasible, see Appendix § 11.2.
The reduced-domain formulation consistently lowers the computational cost over the investigated discretization range, as can be seen in Figure 7. To quantify the reduction, we define the improvement factor as

Figure 7. Computational scaling of the mirrored and reduced-domain approaches for the three-dimensional boxed-fiber geometry: (a) iteration time, (b) memory consumption, (c) maximum TT rank, and (d) improvement factor of the reduced approach relative to the mirrored approach.
where denotes memory consumption, iteration time, or maximum TT rank. Thus, indicates an advantage of the reduced formulation.
The memory consumption is reduced by approximately a factor of 4 over a substantial range of discretization orders, while the iteration-time improvement ranges from approximately 2 to 4 for , matching the range previously reported for the dense setting [21]. For the highest discretizations, both improvements increase further, reaching approximately , see Figure 7(d). The maximum TT rank is approximately halved by the reduced formulation, consistent with the observed reduction in memory consumption.
The number of iterations required for convergence remains approximately the same for both formulations, with only minor variations at the lower discretization orders. Hence, the reduction in iteration time primarily results from the lower computational cost per iteration rather than from a reduction in the number of iterations. Overall, the reduced-domain formulation provides a consistent computational advantage while maintaining the same physical discretization resolution.
Conclusion
We have developed tensor train (TT) representations of the type-II discrete cosine and sine transforms (SFCT and SFST). To this end, we converted a quantum circuit for the combined quantum cosine-sine transform into a single tensor train operator from which both transforms can be extracted. This construction also enabled us to derive an expressivity theorem establishing an upper bound of on the TT ranks of the individual transforms, independently of the discretization order. Here, denotes the TT rank of the Superfast Fourier Transform (SFFT), which saturates at approximately . Numerical experiments further show that the ranks of both the SFCT and SFST saturate at approximately 32. For structured inputs, both transforms exhibit favorable runtime and memory scaling, outperforming their classical counterparts in runtime for discretization sizes above (approx. 1 million) and achieving improved memory efficiency above (approx. 32 thousand) discretization points.
For Rayleigh–Bénard convection at , all four pressure-solver configurations gave comparable velocity and temperature errors. The spectral trajectories also closely reproduced the reference Nusselt number. With VAR for the Hadamard product, the SFCT and even extension followed by the SFFT sped up the Poisson solve by factors of 3.75 and 3.45, respectively, relative to preconditioned ALS. Using RSI instead of VAR in the even-extension solver gave a 7.3-fold speedup for the Poisson solve and a 1.6-fold speedup for the full time step. The momentum and temperature solves now account for most of the time per step. We therefore plan to test whether applying recursive sketched interpolation (RSI) [34] and alternating cross interpolation (ACI) [33] to the nonlinear products in the momentum and temperature equations can further reduce the full-step time.
In computational homogenization, the SFCT and SFST enabled the direct implementation of periodicity-compatible uniform boundary conditions (PMUBC) in TT format for high-resolution three-dimensional problems with up to 70 billion grid points. Compared with the conventional SFFT-based homogenization algorithm, this direct implementation resulted in a 2–6-fold speedup and a 4–7-fold reduction in memory consumption.
Several extensions of the proposed approach are possible. Other types of discrete cosine and sine transforms can be treated analogously. Moreover, since the Chebyshev transform on Chebyshev–Gauss nodes is equivalent to a DCT-II, the SFCT can also be applied to Chebyshev spectral methods on nonuniform grids. The quantum-circuit-based construction additionally provides a classical framework for simulating and benchmarking quantum spectral algorithms with non-periodic boundary conditions [63]. More broadly, the SFCT and SFST extend the range of spectral transforms that can be efficiently represented in TT format, opening up new possibilities for high-resolution PDE solvers with non-periodic boundary conditions.
Acknowledgment
S.H.H., M.K. and N.R.G. gratefully acknowledge funding from the German National High Performance Computing (NHR) association for the Center NHR South-West. N.-L.v.H. and D.J. acknowledge support from the European Union’s Horizon Europe programme under grant agreement No. 101080085 (QCFD). Their work on the spectral pressure solvers was carried out as part of the 16th German-Israeli Call for Proposals for Joint R&D Projects – Eureka Network. N.-L.v.H. and D.J. acknowledge computing resources provided by the Hummel-2 cluster at the University of Hamburg, funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) – 498394658.
Proof of the Expressivity Theorem
Let act on with . For the bipartition between qubits and , the operator Schmidt decomposition reads
with and . The number of non-zero coefficients is the operator Schmidt rank; it equals the TT rank across that bipartition, so the maximum over all bipartitions is the bond dimension of an exact TT representation. All operators below refer to one such fixed bipartition, and its index is suppressed; the cases in are stated explicitly where the rank depends on it.
Two bounds are used throughout. An expansion into product operators gives
without requiring orthogonality of the factors, and the rank is submultiplicative,
The only external input is the transform itself: Chen et al. [18] show that the Schmidt coefficients of the reduced QFT obey
so admits the low-rank TT representation known as the SFFT, whose rank we denote by . It remains to bound the blocks to the left and right of the QFT in Figure 1(b).
Schmidt ranks of the individual circuit components
Throughout, the controlled permutation following the QFT is the bit-reversed shift of § 2.2, the convention induced downstream of the reduced transform . It enters via the recursion
in which the leading qubits carry the low-order bits, so that a carry either stays within the first qubits or propagates past the cut.
The block to the left of the QFT consists of the Hadamard gate and the multi-target CNOT,
which is already of the form Eq. (26) across the cut after qubit , with
Both families are orthonormal, since and , and the two coefficients are equal, . The left-hand block therefore has across every bipartition.
Right of the QFT, the block collapses further. Because , its two controlled branches differ only by a global phase, so the controlled structure disappears and becomes a single product operator. Collecting the action on the last qubit into
the cut after qubit gives the single pair
with and hence .
The two controlled permutations are identical,
and inserting (29) separates them after qubit into
The three terms correspond to a carry crossing the cut, a carry absorbed before it, and the uncontrolled branch. Their left factors are mutually orthogonal and the terms are independent, so for , reducing to two at , where the recursion terminates. The associated Schmidt coefficients are not all equal, so (30) fixes the rank without being normalised in the sense of (26).
The remaining block combines a multi-target CNOT, the gate on the last qubit and an inverted multi-control . Writing and , the multi-control structure collapses to , and multiplying by the leading CNOT gives the four-term expansion
Its four left factors remain linearly independent for , so the bound (27) is attained and , again reducing to two at . The explicit Schmidt pairs of are not needed, since only its rank enters below and the exact rank of the assembled right-hand block is obtained directly.
Rank of the complete block to the right of the QFT
Applying (28) to the four components subcircuit yields only the loose estimate
which ignores that the components share operator factors: both permutations are the same , and the projector appears in as well. We therefore decompose directly. Being a product operator, does not change the rank and is omitted. The last qubit controls both permutations and carries and , so it is natural to expand in its computational basis. Writing and for the resulting scalars, one obtains with
with the matrices defined through and . The exponents and record whether the permutation acts on the outgoing and incoming branch, so each is a shift, a gate, and a shift again.
Across the cut after qubit the factors that act as tensor products split trivially, , and . The shift does not: the permutation may cross the cut, which happens exactly when the first qubits are all one and become all zero. This gives the two-term split
with the carry operator and the remainder
and we write for the corresponding operator on the other side of the cut. Because maps a single basis state to a single basis state, products involving it collapse; the relations needed below are
Applying them, every reduces from four product terms to two, and the eight surviving terms use only six distinct left factors. Collecting them, takes the form (26) with
and
By (27) this already sharpens (32) from 36 to 6. It remains to show that six is attained, that is, that the left factors are linearly independent. Their Gram matrix decouples into two identical blocks, one spanned by and one by , each of the form
so that . For the determinant is non-zero and all six factors are independent, whereas makes it vanish and the Gram matrix drops to rank four. Hence
so the factor six is an exact property of the right-hand block rather than an artefact of the product bound.
Boundary-fixed circuit and the expressivity bound
For the SFCT and SFST the physical index of the final qubit is fixed, so only half of the terms in (33) contribute. For a fixed output index the surviving left factors are for and for – exactly the two Gram blocks above, each of full rank for . Hence for , reducing to two at the outermost cut.
Combining , the rank of the QFT and (34) gives
for the QCST with open boundary indices, and
for the boundary-fixed SFCT and SFST. Both bounds are independent of the discretisation order , which establishes that the SFCT and SFST admit efficient TT representations with a saturating rank.
One qualification remains. The rank of the assembled circuit can fall below the product bound, since further linear dependencies arise when the right-hand block is composed with the QFT. Equation (34) is therefore a rigorous circuit-level bound rather than a claim that the full circuit attains it.
Input Functions
We provide the explicit definitions of the input functions used in the numerical experiments of § 2.4 and Appendix § 9. All functions are defined on and discretized on a uniform grid of size via
Smooth signal.
High-frequency signal.
Discontinuous signal.
Gaussian signal.
Noise signal. We additionally consider a stochastic input given by Gaussian white noise:
with independent samples at each grid point.
These test cases include both structured deterministic signals and a stochastic signal, allowing us to assess the robustness of the SFCT and SFST with respect to different input regularities and noise levels.
Numerical Experiments on DST-II
Figure 8 presents the results of the experiments in § 2.4 for the DST-II and the SFST using the functions defined in Appendix § 8. The runtime and memory trends are consistent with those observed for the DCT-II and the SFCT, respectively. Moreover, the TT ranks coincide for all tested values of , as expected from the equality of the exact operator Schmidt ranks of the SFCT and SFST across every bipartition.

Figure 8. (a) Runtime comparison of the classical DST and the SFST for different input classes as a function of the discretization order ; (b) TTO rank evolution of the SFST; (c) Memory of the SFST operator compared with the signal vector required by the classical FFT-based DST (dashed) and, for reference, the dense DST matrix (dotted).
Preconditioned linear solve in TT format
Poor conditioning of linear systems can slow iterative methods, including TT-based solvers. In the alternating linear scheme (ALS) [30], this can increase both the number of forward–backward sweeps and the effort required to solve each local linear system.
To remove the constant null mode, we replace the row and column of associated with one pressure grid point by those of , where is the identity matrix. We denote the resulting matrix by and refer to that location as the pinned point. We represent the pressure and RHS as TTs and and the preconditioner as TTOs, following § 1.1. For the Rayleigh–Bénard benchmark, we construct a left preconditioner once before time integration and reuse it in all runs with the same pressure matrix . At each pressure solve, ALS solves the preconditioned system in TT format [46].
Offline construction. We construct an approximate left inverse by solving in TT form. Let denote column-wise vectorization and the Kronecker product. The vectorized system is
We use single-site ALS with residual enrichment after each sweep, inspired by AMEn [32], and cap the operator ranks at .
Online pressure solve. At site , the unknowns are the entries of the core shown separately in Fig. 9. The other pressure cores are fixed and define the frame matrix [32], with . Substituting this representation into the preconditioned system and projecting with gives the one-site ALS system [2, 30]
Figure 9 shows the contractions with and retained as separate TTOs. We solve this local linear system iteratively with GMRES. After the sweep, we set the pressure to zero at the pinned point.
Figure 9.
Numerical details for Rayleigh–Bénard convection
All spectral runs in Figure 4 and Figure 5 use . For the timing comparison in Figure 5, all four configurations advance the same compressed initial state for 12 steps at . The preconditioner rank is . Preconditioned ALS uses one forward–backward sweep with local GMRES absolute and relative tolerances of . VAR uses at most five forward–backward sweeps, stopping when the relative change in the objective or iterate falls below .
RSI uses an intermediate rank cap . For the binary TT cores, the local Gaussian sketch matrices have size [34], where is the sketch width. RSI starts with a block of eight TT cores and uses a relative tolerance of for the interpolative decompositions. The product is subsequently rounded to rank cap .
We perform three sequential repetitions on an AMD EPYC 9654 processor using Julia 1.12.6 with one Julia thread and one BLAS thread. Method order varies between repetitions, while the random seeds are held fixed. The RSI sketch seed is reset at each call. For each repetition, we average the time per step over steps 3–10. Pressure-solve time sums both stages and includes convergence tests, gauge fixing and reification. Full-step time also includes RHS formation and all state updates. Neither includes setup, diagnostic reporting or output. We report the median of the three within-repetition speedup ratios relative to preconditioned ALS.
As a check on the pressure solves in the timing runs of Figure 5, we evaluated the relative residual of the unpinned pressure equation, , outside the timed region. Over both projection stages of steps 3–10, the median was for preconditioned ALS and ranged from to across the three spectral configurations.
Figure 9 (PDF p. 18). Effective local linear system in Eq. (36), with the unknown pressure core shown separately. Superscripts label TT or TTO cores, with , and overbars denote complex conjugation. Dashed outlines mark omitted cores, leaving three input and three output legs in the effective matrix. All other pressure cores are fixed.
Real-core TT representation of real-valued states
A real-valued state can have a TT representation with complex cores. In both spectral pressure solvers, the inverse Fourier–cosine transform gives a real pressure field whose TT cores may still be complex. We construct an equivalent representation with real cores by doubling the internal bond dimensions. For a complex matrix , define
For complex matrices and of compatible dimensions, , so this map preserves matrix products.
Write the complex TT as in Eq. (1),
with open boundary ranks . We apply to each matrix slice and select the real component at the two boundaries. With , the real cores are
The contraction of the realified TT gives
Validation of Homogenization
The figure of merit for the homogenization procedure is the macroscopic stiffness tensor obtained from the Fourier-based algorithms. We assess the accuracy of the TT-based homogenization method through two complementary comparisons, which are shown in Figure 10.

Figure 10. Validation of the Spectral-TT Homogenization method by comparing TT-based and FFT-based homogenization using the mirrored-domain approach (solid blue), as well as the mirrored-domain approach and direct PMUBC using TT-based homogenization (dashed black). The relative error in the homogenized stiffness tensor is shown as a function of the discretization order , with grid points per dimension.
First, we compare the stiffness tensors obtained using TT-based and conventional FFT-based homogenization, both employing the mirrored-domain representation shown in Figure 6. The corresponding relative validation error is defined as
This comparison serves to validate the TT implementation against the established FFT-based approach over the range of discretization orders for which the conventional FFT method remains computationally feasible.
For the lowest two discretization orders, and , the relative error is below , indicating almost identical results. For higher orders, the error increases slightly above . This behavior is consistent with the accuracy controlled by the prescribed truncation tolerance in the homogenization algorithms. Thus, the observed differences are within the expected accuracy of the TT-based procedure and could be further reduced by reducing .
Second, we investigate the influence of the domain representation by comparing the homogenized stiffness tensors obtained using the mirrored-domain approach and direct PMUBC, with both calculations employing the TT-based
For a real-valued tensor, the construction preserves the represented values up to roundoff. Before recompression, the internal bond dimensions are for , with . In the pressure solver, the realified TT is rounded to rank cap . homogenization algorithm. The corresponding relative difference is defined as
For and , the relative difference is initially on the order of . With increasing discretization order, however, it decreases rapidly to approximately and subsequently remains at a level of around . This indicates that, for sufficiently fine discretizations, both domain representations yield virtually identical homogenized stiffness tensors.
Symmetries and Spectral Methods
The present work employs the Hex8R discretization [62], i.e., trilinear hexahedral elements with reduced integration on a regular voxel grid. The displacements are located at the voxel corners, whereas all strain and stress components are evaluated at the single integration point in the voxel center, see Table 1. The FFT-based scheme transforms only strain-type quantities. For these, every reflection symmetry of the mirrored domain is therefore half-sample symmetric with and the required transforms are exclusively the DCT-II for even and the DST-II for odd symmetry.
| Variable | Location |
Table 1. Location of displacement and strain components for Hex8R discretization [62].
Table 2 lists the symmetry of each strain component with respect to the three coordinate directions for all six unit load cases. Each letter selects the transform along the corresponding direction: E denotes a DCT-II and O a DST-II. For example, under tensile load in -direction, the shear strain with pattern OOE is transformed by a DST-II in and and by a DCT-II in .
| Load | ||||||
| 11 | EEE | EEE | EEE | EOO | OEO | OOE |
| 22 | EEE | EEE | EEE | EOO | OEO | OOE |
| 33 | EEE | EEE | EEE | EOO | OEO | OOE |
| 23 | EOO | EOO | EOO | EEE | OOE | OEO |
| 13 | OEO | OEO | OEO | OOE | EEE | EOO |
| 12 | OOE | OOE | OOE | OEO | EOO | EEE |
Table 2. Symmetry of strain components for different loading cases. E/O denote even/odd symmetry with respect to [21].
References
- [1]I. V. Oseledets, Tensor-train decomposition, SIAM Journal on Scientific Computing 33 (2011) 2295–2317.DOI
- [2]U. Schollwöck, The density-matrix renormalization group in the age of matrix product states, Annals of Physics 326 (2011) 96–192.DOI
- [3]N. Gourianov, M. Lubasch, S. Dolgov, Q. Y. van den Berg, H. Babaee, P. Givi, M. Kiffner, D. Jaksch, A quantum-inspired approach to exploit turbulence structures, Nature Computational Science 2 (2022) 30–37.DOI
- [4]M. Kiffner, D. Jaksch, Tensor network reduced order models for wall-bounded flows, Phys. Rev. Fluids 8 (2023) 12401.DOI
- [5]E. Ye, N. F. G. Loureiro, Quantum-inspired method for solving the Vlasov–Poisson equations, Phys. Rev. E 106 (2022) 035208.DOI
- [6]R. J. J. Connor, C. W. Duncan, A. J. Daley, Tensor network methods for the Gross–Pitaevskii equation on fine grids, New Journal of Physics 28 (2026) 023203.arxiv.org/abs/2507.01149
- [7]F. Gómez-Lozada, N. Perico-García, N. Gourianov, H. Salman, J. J. Mendoza-Arenas, Simulating quantum turbulence with matrix-product states, Physical Review Applied (2026).
- [8]M. Ali, A. Cortines, S. Morales, S. Mugel, M. Olave, R. Orús, S. Palmer, H. Usabiaga, Quantum-inspired solver for simulating material deformations, 2025. doi:10.48550/arXiv.2501.12151. arXiv:2501.12151.DOI
- [9]L. Risthaus, M. Schneider, Solving phase-field fracture problems in the tensor strain format, Proceedings in Applied Mathematics and Mechanics 22 (2023) e202200098.DOI
- [10]J. Vondřejec, D. Liu, M. Ladecký, H. G. Matthies, FFT-based homogenisation accelerated by low-rank tensor approximations, Comput. Methods Appl. Mech. Eng. 364 (2020) 112890.
- [11]S. H. Hauck, M. Kabel, M. Ali, N. R. Gauger, SFFT-Based Homogenization: Using Tensor Trains to Enhance FFT-Based Homogenization, Acta Mechanica Sinica 42 (2026) 724928.DOI
- [12]S. H. Hauck, M. Kabel, N. R. Gauger, Performance benchmarking of tensor trains for quantum-inspired homogenization on TPU, GPU, and CPU architectures, Future Generation Computer Systems 186 (2027) 108709.
- [13]L. Risthaus, M. Schneider, Imposing different boundary conditions for thermal computational homogenization problems with FFT- and tensor-train-based Green’s operator methods, Int J Numer Methods Eng. 125 (2024) e7423.DOI
- [14]M. G. Cecile, N.-L. van Hülst, T. Hashizume, P. Siegl, A. Setty, et al., Quantum algorithms for computational fluid dynamics, 2026. ArXiv:2609.39962.arxiv.org/abs/2609.39962
- [15]P. Siegl, G. S. Reese, T. Hashizume, N.-L. van Hülst, D. Jaksch, Tensor-programmable quantum circuits for solving differential equations, Physical Review Research 8 (2026) 013052.
- [16]P. Siegl, N.-L. van Hülst, M. Mandelt Buxadé, T. Hashizume, D. Jaksch, Efficient treatment of non-linearity in quantum computational fluid dynamics using hybrid tensor networks, 2026. ArXiv:2608.24150.arxiv.org/abs/2608.24150
- [17]S. Dolgov, B. Khoromskij, D. Savostyanov, Superfast Fourier transform using QTT approximation, J. Fourier Anal. Appl. 18 (2012) 915–953.DOI
- [18]J. Chen, E. M. Stoudenmire, S. R. White, Quantum Fourier transform has small entanglement, PRX Quantum 4 (2023) 040318.DOI
- [19]G. Strang, The discrete cosine transform, SIAM Review 41 (1999) 135–147.DOI
- [20]J. L. Guermond, P. Minev, J. Shen, An overview of projection methods for incompressible flows, Computer Methods in Applied Mechanics and Engineering 195 (2006) 6011–6045.
- [21]H. Grimm-Strele, M. Kabel, FFT-based homogenization with mixed uniform boundary conditions, Int. J. Numer. Methods Eng. 122 (2021) 7241–7265.
- [22]A. Javili, S. Saeb, P. Steinmann, Aspects of implementing constant traction boundary conditions in computational homogenization via semi-Dirichlet boundary conditions, Computational Mechanics 59 (2017) 21–35.DOI
- [23]C. Marcati, M. Rakhuba, J. E. M. Ulander, Low-rank tensor approximation of singularly perturbed boundary value problems in one dimension, Calcolo 59 (2022) 2.DOI
- [24]E. Kornev, S. Dolgov, M. Perelshtein, A. Melnikov, TetraFEM: Numerical solution of partial differential equations using tensor train finite element method, Mathematics 12 (2024) 3277.DOI
- [25]V. Kazaev, B. N. Khoromskij, Low-rank explicit QTT representation of the Laplace operator and its inverse, SIAM Journal on Matrix Analysis and Applications 33 (2012) 742–758.
- [26]A. Klapnecker, M. Rötteler, Discrete cosine transforms on quantum computers, in: ISPA 2001. Proceedings of the 2nd International Symposium on Image and Signal Processing and Analysis. In conjunction with 23rd International Conference on Information Technology Interfaces (IEEE Cat. No. 01EX480), 2001, pp. 464–468. doi:10.1109/ISPA.2001.938674.
- [27]W. Hackbusch, S. Kühn, A new scheme for the tensor representation, J. Fourier Anal. Appl. 15 (2009) 706–722.DOI
- [28]W. Hackbusch, Hierarchical Matrices: Algorithms and Analysis, Springer, 2015.DOI
- [29]M. Fannes, B. Nachtergaele, R. F. Werner, Finitely correlated states on quantum spin chains, Commun. Math. Phys. 144 (1992) 443–490.DOI
- [30]S. Holtz, T. Rohwedder, R. Schneider, The alternating linear scheme for tensor optimization in the tensor train format, SIAM Journal on Scientific Computing 34 (2012) A683–A713.DOI
- [31]A. A. Michailidis, C. Fenton, M. Kiffner, Element-wise multiplication of tensor trains, SIAM J. Sci. Comput. 47 (2025) B1158–B1174.DOI
- [32]S. V. Dolgov, D. V. Savostyanov, Alternating minimal energy methods for linear systems in higher dimensions, SIAM J. Sci. Comput. 36 (2014) A2248–A2271.DOI
- [33]M. K. Ritter, Fast elementwise operations on tensor trains with alternating cross interpolation, 2026. doi:10.48550/arXiv.2604.00037. arXiv:2604.00037.DOI
- [34]Z. Meng, Y. K. Khoo, J. Li, E. M. Stoudenmire, Recursive sketched interpolation: Efficient Hadamard products of tensor trains, arXiv preprint arXiv:2602.17974 (2026).DOI
- [35]M. V. Wickhauser, Adapted Wavelet Analysis: From Theory to Software, A.K. Peters, Wellesley, MA, 1994.
- [36]F. de Prenter, C. V. Verhoosel, E. H. van Brummelen, M. G. Larson, S. Badia, Stability and conditioning of immersed finite element methods: Analysis and remedies, Archives of Computational Methods in Engineering 30 (2023) 3617–3656.arxiv.org/abs/2208.08538
- [37]M. A. Nielsen, I. L. Chuang, Quantum Computation and Quantum Information, 10th anniversary ed., Cambridge University Press, 2010.
- [38]C. Zheng, X. Yu, K. Wang, Cross-platform comparison of arbitrary quantum processes, npj Quantum Information 10 (2024) 4.DOI
- [39]D. Coppersmith, An Approximate Fourier Transform Useful in Quantum Factoring, Technical Report RC19642, IBM Research Division, Yorktown Heights, NY, 1994.
- [40]M. Püschel, M. Rötteler, T. Beth, Fast quantum Fourier transforms for a class of non-Abelian groups, in: Applied Algebra, Algebraic Algorithms and Error-Correcting Codes (AAECC-13), volume 1719 of Lecture Notes in Computer Science, Springer, 1999, pp. 148–159.
- [41]E. M. Stoudenmire, S. R. White, Minimally entangled typical thermal state algorithms, New Journal of Physics 12 (2010) 055026.DOI
- [42]J. Makhoul, A fast cosine transform in one and two dimensions, IEEE Transactions on Acoustics, Speech, and Signal Processing 28 (1980) 27–34.DOI
- [43]L. Hölscher, P. Rao, L. Müller, J. Klepsch, A. Luckow, T. Stollenwerk, F. K. Wilhelm, Quantum-inspired fluid simulation of two-dimensional turbulence with GPU acceleration, Physical Review Research 7 (2025) 013112.DOI
- [44]S. Pisoni, R. D. Peddinti, S. E. Guzman, E. Tiunov, L. Aolita, Compression, simulation, and synthesis of turbulent flows with tensor trains, Physical Review Research 8 (2026) 023245.arxiv.org/abs/2506.05477
- [45]R. D. Peddinti, S. Pisoni, A. Marini, P. Lott, H. Argentieri, E. Tiunov, L. Aolita, Quantum-inspired framework for computational fluid dynamics, Communications Physics 7 (2024) 135.DOI
- [46]N.-L. van Hülst, P. Siegl, P. Over, S. Bengoechea, T. Hashizume, M. G. Cecile, T. Rung, D. Jaksch, Quantum-inspired tensor-network fractional-step method for incompressible flow in curvilinear coordinates, Computer Physics Communications 325 (2025) 101169.
- [47]N.-L. van Hülst, M. G. Cecile, H.-Y. Van, T. Hashizume, E. de Villiers, D. Jaksch, Quantum-inspired simulation of 2D turbulent Rayleigh–Bénard convection, 2026. arXiv:2604.16179.arxiv.org/abs/2604.16179
- [48]G. Ahlers, S. Grossmann, D. Lohse, Heat transfer and large scale dynamics in turbulent Rayleigh–Bénard convection, Reviews of Modern Physics 81 (2009) 503–537.DOI
- [49]A. J. Chorin, J. E. Marsden, A Mathematical Introduction to Fluid Mechanics, Springer-Verlag, New York, 1979.
- [50]I. Oseledets, E. Tyrtyshnikov, TT-cross approximation for multidimensional arrays, Linear Algebra Appl. 432 (2010) 70–88.DOI
- [51]H. Moulinec, P. Suquet, A numerical method for computing the overall response of nonlinear composites with complex microstructure, Comput. Methods Appl. Mech. Eng. 157 (1998) 69–94.DOI
- [52]M. Schneider, A review of nonlinear FFT-based computational homogenization methods, Acta Mechanica 232 (2021) 2051–2100.DOI
- [53]D. Cioranescu, P. Donato, An Introduction to Homogenization, Oxford University Press, 1999.DOI
- [54]S. Brisard, L. Dormieux, FFT-based methods for the mechanics of composites: a general variational framework, Comput. Mater. Sci. 49 (2010) 663–671.DOI
- [55]F. Willot, Fourier-based schemes for computing the mechanical response of composites with accurate local fields, C. R. Mécanique 343 (2015) 232–245.DOI
- [56]R. Hill, A self-consistent mechanics of composite materials, Journal of the Mechanics and Physics of Solids 13 (1965) 213–222.DOI
- [57]A. Wiegmann, Fast Poisson, Fast Helmholtz and Fast Linear Elastostatic Solvers on Rectangular Parallelepipeds, Technical Report LBNL-43565, Lawrence Berkeley National Laboratory, Berkeley, CA, 1999.
- [58]L. Gélébart, A modified FFT-based solver for the mechanical simulation of heterogeneous materials with Dirichlet boundary conditions, Comptes Rendus Mécanique 348 (2020) 693–704.DOI
- [59]D. H. Pahr, P. K. Zysset, Influence of boundary conditions on computed apparent elastic properties of cancellous bone, Biomechanics and Modeling in Mechanobiology 7 (2008) 463–476.pubmed.ncbi.nlm.nih.gov/17972122
- [60]L. Risthaus, M. Schneider, Imposing Dirichlet boundary conditions directly for FFT-based computational micromechanics, Computational Mechanics 74 (2024) 1089–1113.DOI
- [61]P. N. Swartztrauber, Symmetric FFTs, Mathematics of Computation 47 (1986) 323–346.
- [62]M. Schneider, D. Merkert, M. Kabel, FFT-based homogenization for microstructures discretized by linear hexahedral elements, Int. J. Numer. Methods Eng. 109 (2017) 1461–1489.DOI
- [63]E. Febrianto, Y. Wang, B. Liu, M. Ortiz, F. Cirak, A quantum spectral method for non-periodic boundary value problems, Computer Methods in Applied Mechanics and Engineering 457 (2026) 118934.DOI



