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 0 more directly, more accurately, or without square roots. One square-root-free algorithm constructs a real Givens rotation by approximating
1
with 2 or 3, then renormalizes the preliminary 4 by a second-order correction based on
5
and returns
6
Its reported simulations on 7 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 8 of cases versus 9 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
0
and applies
1
followed by 2, 3. 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
4
from FMA-based residuals and then forms 5, 6; in a 7-sample experiment, the compensated method produced zero-ulp cosine and sine outputs in 8 of reported cases, versus about 9 for the naive method (Borges, 2021).
Direct generation of 0 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 1 is adapted multiplicatively as
2
with the forward map changing from 3 to 4. Original OFT parameterized 5 through a dense skew-symmetric matrix 6 and the Cayley transform
7
which is effectively 8 in parameters per transformed 9-dimensional layer. GOFT replaces this with a direct Givens product
0
or, in the parallel form used for efficient depth reduction,
1
Since 2, the total parameter count becomes 3. The relaxed variant qGOFT replaces each 4 rotation block by a learned matrix
5
and regularizes soft orthogonality via
6
Experimentally, on GLUE with DeBERTaV3-base, GOFT used 7M trainable parameters versus 8M for 9 while achieving the same average score 0; qGOFT with 1M reached 2 (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 3 with an antisymmetric 4 and optimized by numerical differentiation, is reformulated as
5
The rotation angles 6 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: 7 In the reported H8O rank-2 APG example, runtime fell from more than one week to less than 9 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 0 level, and the trainable variables are the plane-rotation parameters themselves rather than a dense unconstrained surrogate.
4. Optimization over 1 and 2 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 3 over
4
is approached by Riemannian coordinate descent: choose a pair 5, solve the one-dimensional subproblem
6
and update
7
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 8 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 9 more explicitly. A learned rotation 0 appears in
1
with loss
2
Rather than recomputing 3 by SVD or maintaining it through a Cayley transform, GCD forms the skew score matrix
4
selects 5 disjoint coordinate pairs, and updates
6
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”
7
where each local 8 block is either a standard Givens rotation
9
or a sparse reflector
0
The local update is chosen in closed form from a 1 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
2
which drives 3 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 4 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
5
while leaving 6 and 7 invariant. The full ansatz is
8
and the reported experiments use 9, hence
0
Across six fixed seeds, the reported mean errors were 1 Hartree for LiH-6, 2 Hartree for H3O-8, and 4 Hartree for the BeH5-6 candidate, all below chemical accuracy 6. The paper is explicit, however, that the full circuit is not globally particle-number conserving because the 7 layers can change Hamming weight (Alavi et al., 25 Jun 2026).
In qudit compilation, a target adjacent-level Givens rotation on 8,
9
is approximated by the fixed SNAP–displacement block
00
with direct parameter map
01
This removes the need for per-rotation numerical optimization at compile time. The paper reports empirical single-step infidelity scaling approximately as 02, and for segmented full-circuit compilation approximately as 03, with total arithmetic complexity 04 for compiling an arbitrary 05-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
06
is used directly inside a Givens-rotation-based QR algorithm, with one function computing 07 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 08 and 09 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 10, one swaps adjacent columns and then applies a single Givens rotation 11 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 12 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
13
successive Givens eliminations and threshold dropping produce an upper-triangular 14 such that
15
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 16, the sequence
17
with
18
produces a head row and tail rows exactly described by the operators 19 and 20. The full method computes an almost upper-triangular 21 in 22 time for acyclic joins, where 23 is input size and 24 is the number of data columns, and then post-processes to the final 25 (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 26 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 27 and any 28 of the same norm, there exist 29 Givens rotations mapping 30 to 31. 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 32, whose dimension is 33 (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 34s for OFT, 35s for GOFT, and 36s 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
37
then, as 38, the Haar measure of unitary matrices approximable within fixed error by 39 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 40 subspace of the exchange block, while the full circuit does not preserve particle number because of the interleaved 41 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.