Direct Givens Rotation (DGR)
- Direct Givens Rotation is a method that computes 2×2 rotation parameters explicitly to zero selected vector components, serving key roles in QR updates and sparse factorizations.
- In optimization and quantum computing, DGR represents orthogonal matrices as a product of plane rotations, facilitating parameter-efficient training and direct circuit compilation.
- Variants like square-root-free and compensated algorithms demonstrate improved numerical stability and accuracy, balancing computational efficiency with precision in large-scale applications.
Direct Givens Rotation (DGR) denotes a family of constructions in which an orthogonal or unitary transformation is computed, parameterized, or applied directly through Givens rotations, i.e., transformations that act nontrivially on a two-dimensional coordinate plane and leave all other coordinates unchanged. In numerical linear algebra, DGR commonly refers to direct computation of the rotation coefficients that annihilate one component of a vector; in optimization and learning, it refers to representing an orthogonal map as an explicit product of plane rotations and optimizing the corresponding angles; in quantum and scientific computing, closely related constructions appear as fixed Givens-exchange circuits, adjacent-level qudit compilers, and factorized elimination schemes. The term is not fully standardized across the literature: some papers use “Direct Givens Rotation” explicitly, whereas others present closely corresponding methods under different names (Kawasaki et al., 15 Aug 2025, Borges, 26 Aug 2025, Ma et al., 2024).
1. Terminology and scope
The literature uses “Direct Givens Rotation” in more than one technical sense. In the narrowest sense, it means computing the actual rotation coefficients and for
without indirect modified representations. In a broader sense, it means parameterizing an orthogonal transformation itself as a product of Givens factors and optimizing those factors directly, rather than passing through a dense skew-symmetric parameter, an SVD, a Cayley transform, or per-factor numerical compilation (Borges, 26 Aug 2025, Ma et al., 2024, Jiang et al., 2022).
| Domain | Direct Givens object | Characteristic use |
|---|---|---|
| Numerical linear algebra | for a single rotation | Zeroing one component or one matrix entry |
| Orthogonal optimization | Learn or optimize an orthogonal matrix directly | |
| Quantum circuits | Two-mode or adjacent-level Givens blocks | Variational ansatz or direct compilation |
| Sparse/factorized systems | Sequences or equivalents of plane rotations | QR updates, sparse factorization, join-aware elimination |
This multiplicity of meanings is explicit in recent work. The low-rank APG paper uses “direct Givens rotation” for orbital optimization via a product of Givens matrices (Kawasaki et al., 15 Aug 2025). The square-root-free real-rotation paper uses “direct” to distinguish computation of the actual rotation parameters from older square-root-free methods that do not construct the actual rotation (Borges, 26 Aug 2025). Other papers describe nearly the same idea without the acronym, for example “Givens Coordinate Descent,” “Givens-rotation-based QR,” “Givens-exchange ansatz,” or direct SNAP–displacement realization of adjacent Givens factors (Jiang et al., 2022, Alavi et al., 25 Jun 2026, Job, 2023).
2. Classical numerical formulation
In the classical real case, the direct Givens problem is to construct
so that
The standard textbook formulas are
and appear explicitly in Givens-rotation-based QR implementations that compute the coefficients from the two active entries and immediately apply the row rotation to the trailing columns (Rong, 2018).
A substantial recent numerical strand concerns computing and more directly, more accurately, or without square roots. One square-root-free algorithm constructs a real Givens rotation by approximating
with or , then renormalizes the preliminary by a second-order correction based on
and returns
Its reported simulations on random inputs showed higher average accuracy than a standard square-root-based branchwise algorithm; for Float64, the square-root-free method matched the rounded high-precision baseline in zero ulp of cases versus for the reference implementation (Borges, 26 Aug 2025).
A second line uses compensated arithmetic. One 2024 algorithm starts from the naive rotation computed with hypot, then builds a correction from the residuals
and applies
followed by , . The residuals are evaluated with fma-based error-free products or Dekker splitting, and the paper reports “perfect observed accuracy” for all three tested hypot variants in its large random experiment (Borges, 2024). A related compensated construction computes an accurate reciprocal hypotenuse
from FMA-based residuals and then forms , ; in a -sample experiment, the compensated method produced zero-ulp cosine and sine outputs in of reported cases, versus about for the naive method (Borges, 2021).
Direct generation of unitary Givens matrices has also been analyzed from the perspective of per-entry error accumulation. A 2022 study compared LAPACK 3.9, LAPACK 3.10, and a new direct construction strategy, arguing that fewer operations contributing to each output entry can yield better average accuracy even when total operation count is larger. Its experiments showed improved average singular-value and backward-error behavior, particularly under repeated application of rotations (Pereira et al., 2022).
3. Direct parameterization of orthogonal transformations
In machine learning and variational many-body methods, DGR often means that the orthogonal map itself is parameterized as a product of Givens factors and trained through those factors. The clearest recent example is orthogonal fine-tuning of pretrained models. There, a frozen weight matrix is adapted multiplicatively as
with the forward map changing from to . Original OFT parameterized through a dense skew-symmetric matrix and the Cayley transform
which is effectively in parameters per transformed -dimensional layer. GOFT replaces this with a direct Givens product
or, in the parallel form used for efficient depth reduction,
Since , the total parameter count becomes . The relaxed variant qGOFT replaces each rotation block by a learned matrix
and regularizes soft orthogonality via
Experimentally, on GLUE with DeBERTaV3-base, GOFT used $0.08$M trainable parameters versus $0.66$M for while achieving the same average score $88.78$; qGOFT with $0.33$M reached $89.35$ (Ma et al., 2024).
The same direct-angle philosophy appears in low-rank antisymmetric product of geminals. There the orbital/unitary part of the wavefunction, previously parameterized as with an antisymmetric and optimized by numerical differentiation, is reformulated as
The rotation angles become the variational parameters, and the gradient is computed analytically by an error-back-propagation-like formula over the ordered Givens chain. The update is global: In the reported HO rank-2 APG example, runtime fell from more than one week to less than $10$ minutes after switching to the DGR formulation (Kawasaki et al., 15 Aug 2025).
These formulations share a common feature: orthogonality is enforced by construction at the local level, and the trainable variables are the plane-rotation parameters themselves rather than a dense unconstrained surrogate.
4. Optimization over and by Givens coordinates
A distinct research line treats Givens factors as coordinates on the orthogonal group and builds optimization algorithms around single-plane or block-plane updates. In one formulation, optimizing over
is approached by Riemannian coordinate descent: choose a pair , solve the one-dimensional subproblem
and update
The method preserves orthogonality exactly at every step and interprets a single Givens factor as the manifold analogue of one Euclidean coordinate update. Under differentiability and Lipschitz assumptions on directional derivatives, the paper proves convergence to critical points and gives an expected stationarity rate; it also reports practical effectiveness for sparse PCA and orthogonal tensor decomposition (Shalit et al., 2013).
For trainable embedding indexes, Givens Coordinate Descent (GCD) uses the special orthogonal group more explicitly. A learned rotation appears in
with loss
Rather than recomputing by SVD or maintaining it through a Cayley transform, GCD forms the skew score matrix
selects disjoint coordinate pairs, and updates
The random variant GCD-R has a sublinear convergence guarantee on geodesically convex objectives, while the greedy and steepest variants dominate it empirically; the paper also argues that the block-disjoint structure is substantially more parallelizable than SVD-based rotation learning (Jiang et al., 2022).
Approximation-oriented work pushes the idea further. One paper approximates an orthogonal matrix by a product of “extended orthogonal Givens transformations”
where each local block is either a standard Givens rotation
or a sparse reflector
The local update is chosen in closed form from a SVD, and each factor costs 6 arithmetic operations to apply; the method is used to build fast approximate PCA transforms (Rusu et al., 2019). Another paper studies “effective Givens factorization” through manifold coordinate descent on
which drives toward a signed permutation while accumulating the Givens factors. It combines constructive approximation results with a negative theorem showing that generic unitary matrices are not effectively approximable by only Givens factors (Frerix et al., 2019).
5. Quantum and wavefunction applications
Quantum computing and computational chemistry use DGR-like constructions in two main ways: as variational ansatz layers and as direct hardware-oriented compilation primitives.
For molecular variational eigensolvers, a fixed-topology Givens-exchange ansatz uses a two-qubit macro
while leaving and invariant. The full ansatz is
and the reported experiments use , hence
Across six fixed seeds, the reported mean errors were $0.000000124$ Hartree for LiH-6, $0.000128558$ Hartree for HO-8, and $0.000002152$ Hartree for the BeH-6 candidate, all below chemical accuracy . The paper is explicit, however, that the full circuit is not globally particle-number conserving because the layers can change Hamming weight (Alavi et al., 25 Jun 2026).
In qudit compilation, a target adjacent-level Givens rotation on ,
is approximated by the fixed SNAP–displacement block
with direct parameter map
This removes the need for per-rotation numerical optimization at compile time. The paper reports empirical single-step infidelity scaling approximately as , and for segmented full-circuit compilation approximately as , with total arithmetic complexity for compiling an arbitrary -dimensional unitary into adjacent Givens factors plus SNAP gates (Job, 2023).
These works use different physical objects than classical real Givens rotations, but the structural theme is the same: explicit two-mode or adjacent-level rotations are treated as the primary degrees of freedom rather than as hidden subroutines inside a denser parametrization.
6. Structured large-scale computation and systems
Direct Givens constructions also appear in system-oriented algorithms where the key advantage is locality of update. In spatial QR decomposition, the classical formula
is used directly inside a Givens-rotation-based QR algorithm, with one function computing and the pivot-column update, and another applying the same rotation to trailing entries of the two affected rows. The paper’s contribution is to map this irregular dependence structure into a spatial T2S program with separate and processing elements, not to alter the direct computation itself (Rong, 2018).
For all-subset regression in Gaussian-network learning, the central primitive is a QR-decomposition traversal by adjacent column swaps followed by Givens retriangularization. Starting from an existing upper-triangular , one swaps adjacent columns and then applies a single Givens rotation to restore triangular form. The paper names this combined update a GRC operation and proves that its greedy traversal covers all family regressions with the minimum number of such updates (Alipourfard et al., 2019).
In Gaussian Markov random fields, incomplete orthogonal factorization by Givens rotations is used to construct a sparse approximate Cholesky factor. With
successive Givens eliminations and threshold dropping produce an upper-triangular such that
approximates the target precision matrix. The method is slower than standard Cholesky in optimized libraries, but it is described as stable, robust, and often sparser, especially when conditioning leads naturally to rectangular stacked systems (Hu et al., 2013).
A more radical factorization appears in QR over database joins. Figaro proves that its head-and-tail computations are equivalent to a long sequence of Givens rotations on the materialized join output, but it pushes those effects through the join factorization and avoids materializing the join. For a Cartesian-product block , the sequence
with
produces a head row and tail rows exactly described by the operators and . The full method computes an almost upper-triangular in time for acyclic joins, where is input size and is the number of data columns, and then post-processes to the final (Olteanu et al., 2022).
7. Limits, caveats, and recurring misconceptions
The first caveat is terminological. DGR does not denote a single universally fixed algorithm. It may mean direct coefficient construction for one rotation, direct parameterization of an orthogonal matrix as a product of Givens factors, or a physically motivated two-mode rotation ansatz. Treating these as identical obscures important differences in objectives, guarantees, and computational costs.
A second caveat concerns “expressiveness” claims. In Givens-based orthogonal fine-tuning, the theorem proved is that for any and any of the same norm, there exist Givens rotations mapping to . The paper then interprets this operationally as equivalent expressiveness for the rotations relevant to fine-tuning. This is narrower than a global parameterization theorem for all of , whose dimension is (Ma et al., 2024).
A third caveat is computational. Direct angle parameterizations can reduce parameter count while increasing training cost. In the QNLI timing appendix for GOFT/qGOFT, per-batch time is $1.80$s for OFT, $6.00$s for GOFT, and $6.27$s for qGOFT, so the advantage is primarily parameter efficiency and mergeable inference rather than raw training speed (Ma et al., 2024). Numerical direct-construction methods also retain hardware assumptions: the square-root-free and compensated algorithms are especially motivated by machines with fast FMA and slower square root, and some still require rescaling logic for extreme inputs (Borges, 26 Aug 2025, Borges, 2021).
A fourth caveat is structural. Effective approximation by a small number of Givens factors is strongly target-dependent. The negative theorem for effective Givens factorization shows that if
then, as , the Haar measure of unitary matrices approximable within fixed error by Givens factors tends to zero. This strongly suggests that low-factor DGR is inherently most useful for structured transforms, learned operators with special geometry, or applications where approximation rather than exact representation is the objective (Frerix et al., 2019).
Finally, in quantum settings, “Givens” can be physically suggestive without implying a strict fermionic or hardware-native interpretation. The molecular Givens-exchange ansatz preserves excitation number only within the local subspace of the exchange block, while the full circuit does not preserve particle number because of the interleaved layers (Alavi et al., 25 Jun 2026). Similarly, the SNAP–displacement compiler gives an analytically mapped adjacent-level approximation, not an exact finite-depth identity between a Givens rotation and a fixed short gate block (Job, 2023).
Taken together, these strands show that Direct Givens Rotation is best understood as a unifying methodological pattern rather than a single algorithmic artifact: orthogonal structure is enforced or approximated through explicit two-dimensional rotations, and the computational question becomes how those local rotations are chosen, represented, and composed in a given domain.