Quantum compilers break a target rotation into a short product of rotations about the few directions the hardware can drive, then refine the timing of the control pulses. An underactuated spacecraft has the same problem. It can apply torque about only two of its three body axes, yet it must reach any orientation, and its torque is capped. This proposal takes the quantum compiler's two-step recipe and adapts it to bodies with inertia and saturated actuators. The first step is an exact factorization of the target rotation into rotations about the actuated axes. The second is switching-time optimization of bang-bang pulses, meaning pulses that are always at full positive or full negative torque. The adaptation has to change one thing. A qubit rotation costs time in proportion to its angle. A rest-to-rest rotation of a massive body under a torque cap costs time in proportion to the square root of the angle. That difference changes which factorization is best.
The payoff is a planner whose output can be executed exactly within the actuator limits, computed in closed form plus a small nonlinear refinement. It needs neither a learned feasibility model nor a large transcribed optimal-control problem. It addresses a gap in the literature. Lie-group motion planners for underactuated systems ignore dynamics and limits. Saturation-aware controllers for these systems react to clipping after it happens rather than planning around it.
Core Claim
Consider a rigid body whose actuated torque axes are principal axes. Starting from rest, a torque applied about such an axis keeps the body rotating about that axis, because the gyroscopic coupling term vanishes. Each factor of an Euler-type decomposition of the target rotation can therefore be executed exactly as a bang-bang rotation. The time for that rotation, from the standard accelerate-then-brake argument, is
$$T(\theta) = 2\sqrt{\frac{|\theta|\, J}{\tau_{\max}}},$$
where $\theta$ is the rotation angle, $J$ the principal inertia about that axis, and $\tau_{\max}$ the torque bound. The total time of a decomposition $R = \exp(\theta_1 \hat e_{i_1})\exp(\theta_2 \hat e_{i_2})\exp(\theta_3 \hat e_{i_3})$ is $\sum_k T(\theta_k)$. Here $R$ is the target orientation, $\hat e_i$ the generator of rotation about actuated axis $i$, and $\theta_k$ the angle of the $k$-th factor.
This cost is concave in each angle. In the quantum setting the cost is linear in pulse area, so the best choice among the finitely many decomposition branches and axis orderings differs between the two settings. A minimum-total-angle choice, which is the natural quantum or kinematic default, can be far from time-optimal here.
The core claim has two parts. Choosing the decomposition branch under the square-root cost gives a provably feasible sequential maneuver. Using that maneuver to seed switching-time optimization of the full nonlinear dynamics gives near time-optimal saturated maneuvers. The refinement lets the factors overlap in time and exploits the gyroscopic coupling that sequential execution forbids. It reaches better optima and converges more reliably than unseeded or collocation-based trajectory optimization, at much lower compute.
Relation to Prior Work
The decomposition step builds on Lie-group planners for underactuated systems. A catalog of inverse-kinematics planners for underactuated systems on matrix groups writes target configurations on SO(3) and SE(2) as products of three exponentials of the available generators. It is explicitly driftless: velocities switch instantly and actuator limits do not appear. We keep its combinatorial structure, but replace its switch-count objective with a dynamic, saturation-derived time cost. We also show that branch selection must change accordingly.
The two-qubit factorization in Optimal two-qubit quantum circuits using exchange interactions supplies the analogy. It gives a canonical split into local and entangling parts with minimal counts of native gates. The numerical-plus-rounding synthesis for non-standard native gates by Zhang et al. shows that exact decompositions over a restricted generator set can be found reliably. Both optimize gate count, which under amplitude-bounded control corresponds to the linear cost we argue is wrong for inertial systems.
The refinement step reuses the method of Switching Time Optimization for Binary Quantum Optimal Control. That work optimizes the switching instants of binary controls with SLSQP after a relaxation-and-rounding stage. It reports objective improvements "often by several orders of magnitude" with an optimization step under a second. It works on unitary dynamics without mechanical drift. We swap its relaxation-and-rounding initializer for a decomposition-derived seed and apply it to the Euler rigid-body equations.
Two papers motivate the work by exposing the gap. Control of underactuated spacecraft with bounded inputs stabilizes a two-thruster axisymmetric spacecraft with saturated feedback and flatness-based references. It relies on coordinates specific to axisymmetric bodies and makes no time-optimality claim. Nonlinear Robust Tracking Control of a Quadrotor UAV on SE(3) gives coordinate-free tracking but assumes unbounded inputs, and names saturation in aggressive maneuvers as unresolved.
Other papers constrain the design. Reactive auxiliary buffering, as in A hierarchical Lyapunov-based cascade adaptive control scheme for lower-limb exoskeleton, is built for fully actuated joints. Slowing only the actuated channels breaks the coordination that underactuated motion depends on, which is why we plan rather than buffer. Independent clipping distorts the direction of the commanded torque, as described in Shin et al., which rules out "plan unconstrained, then clip."
Research Program
The first component is the branch selector. For a target rotation and an actuated axis pair (x, y), the selector enumerates closed-form decompositions in the orders x–y–x and y–x–y. It also covers their sign and $2\pi$ branches, and four- and five-factor variants that shorten individual large angles. It then minimizes the square-root time cost exactly over this finite set. We will characterize analytically when the square-root-optimal and minimum-angle branches disagree. Our working hypothesis, to be checked rather than assumed, is that disagreement concentrates on targets with a large rotation about the unactuated axis. In those cases splitting into more, smaller factors can be faster despite the extra factors.
The second component is the refinement step. Each actuated torque channel becomes a bang-bang signal at $\pm\tau_{\max}$, with switch times initialized from the sequential schedule. Seeding fixes the number of switches, two per factor. SLSQP adjusts these times, and the total horizon, to reach the target orientation with zero final angular velocity under the full Euler equations. Overlapping pulses on the two axes are permitted. The constraints are smooth in the switch times, which is what made switching-time optimization efficient in the quantum case. If the solver fails, the sequential seed remains a certified feasible fallback.
The third component handles execution. A geometric attitude tracker in the style of Nonlinear Robust Tracking Control of a Quadrotor UAV on SE(3) tracks the plan, which is computed at a reduced bound $(1-\epsilon)\tau_{\max}$. The remaining $\epsilon\tau_{\max}$ is reserved for feedback, and any excess is scaled down uniformly to preserve torque direction rather than clipped per axis. We will relate $\epsilon$ to the disturbance and inertia-error levels the plan can absorb without saturating. This gives an explicit trade-off curve between nominal maneuver time and robustness.
The same pipeline carries over directly to a planar underactuated vehicle on SE(2). Such a vehicle has surge force and yaw torque but no sway authority, the setting of the underactuated helicopter and underwater vehicles in An Improved ESO-Based Line-of-Sight Guidance Law, here without hydrodynamic drag. Its drive–turn–drive primitives are also dynamically exact from rest.
Baselines
The naive reference is kinematic decomposition followed by clipping. It takes the minimum-switch planner from A catalog of inverse-kinematics planners for underactuated systems on matrix groups, time-parameterizes it smoothly, and tracks it with the geometric controller while clipping each axis independently. It is the most likely thing a practitioner would try. We will measure its maneuver time, final orientation error, and saturation duty cycle, which is the fraction of time any actuator is at its limit.
The time-scaling baseline uses the same kinematic decomposition but slows the whole schedule by the smallest uniform factor that keeps the required torques within bounds. It is feasible by construction and isolates the value of bang-bang timing.
The strongest competitor is direct-collocation time-optimal control of the full Euler equations with box torque constraints, solved by a standard interior-point solver. We will give it the same horizon, the same bounds, and the same total wall-clock budget per maneuver as our full pipeline. It will be run both from a naive interpolated initial guess and from our sequential seed. The collocation grid will be refined until the reported time changes by less than 1%. Our method beats it if it reaches equal or lower maneuver time with equal or higher success rate at an order of magnitude less compute. Losing on time but matching within a few percent at much lower compute would still be a useful result, and we will report it as such.
For the spacecraft problem, no reported result found on Lacuna for time-optimal two-axis attitude maneuvers. The saturated controller in Control of underactuated spacecraft with bounded inputs will be reimplemented as the feedback-only reference. It reports no maneuver-time figure we can quote.
Two ablations isolate the key ingredients. The first replaces the square-root branch selector with the minimum-total-angle selector a quantum compiler would use, testing whether inertia-aware branch choice matters. The second runs the refinement from random switch-time initializations with matched switch counts, testing whether the decomposition seed matters or the refinement alone does the work.
Why not just…?
Why not just run time-optimal trajectory optimization directly? This is the real threat. With enough compute and a good initial guess, collocation should find maneuvers at least as fast as ours, since our refinement searches a restricted class of signals. The case for our method is reliability and cost. Time-optimal bang-bang solutions are notoriously hard for collocation because discretized controls chatter near switches and converge poorly from naive guesses. The quantum analogue in Switching Time Optimization for Binary Quantum Optimal Control found fixed-grid methods both slower and worse. The fair comparison above, which seeds collocation with our own seed, settles this. If seeded collocation dominates our refinement, the contribution reduces to the branch selector as an initializer, and we will say so.
Why not just slow down a feasible kinematic plan? Uniform time scaling is safe and trivial. However, its required torque peaks at a few instants, so the actuators sit far below their limits for most of the maneuver. A bang-bang schedule uses full authority throughout. The time-scaling baseline measures exactly how much time this wastes. If the gap is under about 10% across the benchmark distribution, the decomposition-timing idea is not worth its complexity.
Why not just learn a feasibility penalty, as drag-aware planning does? Why Change Your Controller When You Can Change Your Planner trained a network on 200,000 simulated rollouts to predict tracking effort and steer a quadrotor planner away from saturation. It reduced cumulative position tracking error by up to 83%. That approach requires a data-generation pipeline and gives no feasibility certificate. In the rigid-body setting, our sequential seed is exactly feasible in closed form. Where drag or unmodeled dynamics dominate, a learned penalty may still be preferable, and we expect our method to be weaker there.
Proposed Experiments
The primary benchmark is a simulated two-axis spacecraft built from the model in Control of underactuated spacecraft with bounded inputs. We will test both its axisymmetric inertia and non-axisymmetric inertias, on 1,000 random rest-to-rest reorientation targets drawn uniformly on SO(3). We will report maneuver time normalized by the sequential square-root bound, final error in orientation and angular velocity, solver success rate, wall-clock time, and saturation duty cycle under tracking.
The first decisive check is the branch-selection ablation. If the square-root selector and the minimum-angle selector pick the same branch on nearly all targets, the inertia-specific part of the claim fails. The second is refinement versus seeded collocation at matched compute. The third is robustness. Inertia errors of up to 20% and bounded disturbance torques are injected and $\epsilon$ is swept, recording when tracking first saturates. This tests whether reserving torque for feedback beats the clipping and time-scaling baselines on final error.
The secondary benchmark repeats the same protocol on the planar surge–yaw vehicle on SE(2).
As a cross-domain check, we run the pipeline on a qubit with amplitude-bounded controls about two axes. There the cost is linear, so our prediction reverses: the minimum-angle branch should be optimal, and our selector should agree with it. This confirms that the method recovers the quantum compiler's choice when inertia is absent.
For quadrotor context, the SE(3) tracker reports 1.2 cm terminal error with unbounded inputs in Nonlinear Robust Tracking Control of a Quadrotor UAV on SE(3). The drag-aware planner's 83% error reduction in RotorPy is the strongest saturation-avoidance result in the file. We do not claim to beat it directly, since quadrotor attitude is fully actuated. A limited RotorPy test on large-angle attitude recovery with per-motor saturation would show whether direction-preserving torque reservation transfers to that setting.
References
- A catalog of inverse-kinematics planners for underactuated systems on matrix groups
- Optimal two-qubit quantum circuits using exchange interactions
- Quantum circuit synthesis with SQiSW
- Switching Time Optimization for Binary Quantum Optimal Control
- Control of underactuated spacecraft with bounded inputs
- Nonlinear robust tracking control of a quadrotor UAV on SE(3)
- A hierarchical Lyapunov-based cascade adaptive control scheme for lower-limb exoskeleton
- Local Stabilization of Input-Saturated Nonlinear Systems with Time-Delay via Fuzzy Control
- An Improved ESO-Based Line-of-Sight Guidance Law for Path Following of Underactuated Autonomous Underwater Helicopter With Nonlinear Tracking Differentiator and Anti-saturation Controller
- Why Change Your Controller When You Can Change Your Planner: Drag-Aware Trajectory Generation for Quadrotor Systems