1. Introduction
The emergence of quantum computing and its ability to outperform classical computing in some tasks has made it an active field for researchers wishing to improve classical algorithms in terms of time complexity. One of the most notable quantum algorithms is Grover’s algorithm [
1], designed for unstructured search tasks. It offers a quadratic speedup O(√N) over its classical counterparts and has been extended to find an element within an unknown-sized set of labeled elements [
2]. In robotics, especially for manipulator robots, finding the optimal control law is crucial when high accuracy is required. Importantly, the optimal control law can be viewed as an optimization problem, specifically, a combinatorial optimization [
3]. For quantum combinatorial optimization, there are two main approaches [
4]: the quantum approximate optimization algorithm (QAOA) [
5] and the use of Grover’s algorithm for global optimization. Durr and Hoyer (1999) [
6] proposed a quantum algorithm to find the minimum in an unsorted list of N elements based on Grover’s search algorithm. Baritompa et al. (2005) [
7] suggested another method called BBW for global optimization in Grover adaptive search (GAS), proving that Durr and Hoyer’s method was optimal for repeated objective function values but less efficient than their method for distinct objective function values. Based on this, Liu et al. [
8] (2010) presented two methods that improved on the BBW method, BBW2 and BBW2D. Subsequently Liu et al. (2012) [
9] introduced a hybrid quantum global optimization method that combined the generalized Grover operator and BBW2D, highlighting its outperformance in various optimization scenarios. Wang Yan (2014) [
10] proposed an improved BBW method by incorporating continuous time quantum walks, showing improved performance and indicating that BBW-QW is more efficient than simulated annealing and genetic algorithms. Gilliam et al. (2021) [
11] discussed the suitability of the Grover adaptive search (GAS) algorithm for constrained polynomial time optimization (CPBO) problems, demonstrating the potential for practical applications of quantum computing in optimization tasks. Baykov et al. (2022) [
12] introduced an improved method called Grover binary search (GBS) to improve the efficiency of GAS for discrete optimization problems by incorporating binary search and quantum counting; they showed better results. However, this approach involves more quantum gates. Giuffrida et al. (2022) [
13] proposed new parameter management strategies in the GAS algorithm, which aimed to solve unconstrained quadratic binary optimization (QUBO) problems more efficiently. The results indicate that the proposed mechanism significantly reduces Grover rotations. For more practical applications, Oliveira et al. (2007) [
14] presented a quantum bit string comparator that compares two strings of n qubits each, showing that their design is more resource-efficient and highlighting its potential as an oracle for the GAS algorithm. Federer et al. (2023) [
15] explored the application of the GAS algorithm to optimizing the bidirectional charging schedule of electric vehicles (EVs). The results highlight the need for further optimization of quantum circuits. Bogatyrev et al. (2023) [
16] demonstrated that Grover’s algorithm can significantly improve route optimization in route planning, traffic management, and congestion forecasting. However, despite the theoretical potentials, they pointed out the lack of practical implementation due to the limitations of quantum hardware. Krol et al. (2024) [
17] designed and implemented a quantum algorithm for the industrial shift planning problem using GAS. The results were validated by numerical simulation showing significant speedup. Shukla et al. (2018) [
18] presented a framework for trajectory optimization formulated as a discrete space search problem. Comparing the classical and quantum search algorithms (Grover’s algorithm) in the brachistochrone problem, isoperimetric problem, and moon landing problem, the results demonstrate significant outperformance of quantum algorithms. Chella et al. (2023) [
19] developed a path planning algorithm based on Grover’s search algorithm for a swarm of robots. Their results highlight the superiority of their method, with fast convergence to the target. Falk Matthew (2013) [
20] explored the application of Grover’s algorithm to a quantum robot walking along a two-dimensional grid, showing that his algorithm works efficiently on a 2D grid.
Other research has addressed the topic of solving robot manipulator problems using quantum computing. Litvintseva et al. (2020) [
21] performed robustness tests on a quantum PID (QPID) controller against traditional PID controllers in complex, nonlinear, and unpredictable environments. They found that QPID was more robust in controlling a carriage pole system and 3-DOF robot manipulators. Zioui et al. (2021) [
22] introduced a model using a single qubit to describe the position of robotic arms, proving its equivalence to the quaternion model. Fazilat et al. (2022) [
23] validated this model by simulation and introduced a new quantum formulation for the homogeneous Denavit–Hartenberg matrix. Ulyanov et al. (2023) [
24] designed intelligent control systems based on quantum and soft computing technologies for industrial robots in hazardous environments. The quantum fuzzy inference (QFI) circuit outperformed classical methods throughout simulations and benchmark tests performed on balancing robots and 3-DOF manipulators. Khoshnoud et al. (2020) [
25] described the use of quantum entanglement and cryptography for automation and control of dynamic systems while providing a theoretical framework that combines system dynamics with quantum states for feedback control, providing only an experimental setup. S. Dereli and R. Köker (2020) [
26] proposed a quantum behavior-based particle swarm optimization (PSO) algorithm to solve the inverse kinematics problem of a seven-degree-of-freedom serial manipulator, proving the efficiency and accuracy of QPSO through the provided results in terms of solution time and position error compared to other algorithms. Abdulridha et al. (2017) [
27] solved an inverse kinematics problem using a quantum neural network (QNN) and designed a QNN-PID controller, showing that the system responses were better when using the QNN-PID controller than a classical PID controller. Cheng et al. (2018) [
28] performed the trajectory planning and simulation of a six-degree of freedom (6-DOF) robotic manipulator by adopting the quantum ant colony algorithm. Their results showed that the adopted strategy was superior to other algorithms. Cao et al. (2021) [
29] solved the inverse kinematics problem for a 7-DOF robot using improved quantum particle swarm optimization, showing faster and more accurate convergence than PSO and QPSO algorithms. Chen et al. (2021) [
30] implemented the QPSO quantum particle swarm optimization algorithm for 5-DOF robots to solve the inverse kinematics problem for a generated optimal path, achieving high accuracy, which is considered suitable for industrial applications. Cao et al. (2021) [
31] combined dual quantum particle swarm optimization (DQPSO) with an extended Kalman filter (EKF) to improve the position accuracy of the robot manipulator, achieving a 99% reduction in the average error of the robot position compared with previous methods. Luo et al. (2023) [
32] used the improved quantum particle swarm optimization (IQPSO) algorithm for optimal trajectory planning in joint space, proving that IQPSO achieves optimal solutions more efficiently than standard QPSO. Guo et al. (2010) [
33] applied quantum particle swarm optimization (QPSO) algorithms to generate point-to-point trajectories for planar redundant manipulators, showing accurate and fast computation using QPSO compared to genetic algorithms (GA). Ayyıldız and Çetinkaya (2016) [
34] compared the quantum particle swarm optimization (QPSO) algorithm with the gravitational search algorithm (GSA), the particle swarm optimization algorithm, and the genetic algorithm (GA) in trajectory planning for 4-DOF manipulators. The authors found that QPSO was the most efficient method. Similarly, Zhang et al. (2022) [
35] proposed an improved QPSO to find optimal trajectories and minimize the basic perturbations in the redundant space robot. The authors demonstrated by simulation that IQPSO was superior to QPSO, PSO, and SAPSO in finding the optimal solution and convergence time. More recently, Fazilat et al. (2025) [
36] tackled the development of a quantum-inspired sliding-mode control (QSMC) strategy to enhance the classic SMC’s robustness, precision, and computational efficiency with an application to a six-jointed articulated robotic arm. The results confirmed that the quantum method outperformed the classic counterpart by reducing the chattering, improving tracking accuracy, and decreasing the energy consumption. The methods found in the literature are mostly based on quantum-inspired methods or quantum methods improved for existing classical approaches. Grover’s search algorithm seems never to have been used as a potential optimization method to solve optimization problems in robotics.
In this work, we propose a new theoretical framework that reformulates the optimal control problem as a quantum search task. The control input space is encoded into quantum superposition, allowing all candidate inputs to be processed simultaneously. At each iteration, a reference value is used to represent a candidate minimum of the cost function. A quantum comparator circuit identifies the inputs whose costs are lower than this reference, and quantum counting is used to estimate how many such candidates exist. The reference is then iteratively updated through a sigmoid-based rule until only one candidate remains, thereby guaranteeing convergence to the global minimum within a discretized resolution. Although a full simulation of the proposed method is currently infeasible due to hardware limitations, in the results section, we simplify the task by using pseudo-oracle to demonstrate the theoretical flow of the algorithm and validate the feasibility of the proposed quantum control architecture through classical simulation.
This work reflects the broader context of current research in quantum technologies and contributes to the ongoing transition toward practical quantum computing [
37,
38].
The remainder of this paper is organized as follows.
Section 2 presents the background and foundational tools, including quantum computing principles, the robotic manipulator model, and supporting quantum components.
Section 3 introduces the proposed optimization methodology, which reformulates the control synthesis task as a quantum search problem guided by quantum counting.
Section 4 reports the simulation results obtained using a pseudo-oracle to illustrate the theoretical framework. Finally,
Section 5 concludes the paper by summarizing the contributions and outlining future research directions.
3. Proposed Methodology
The idea of using Grover for optimization purposes could be highly robust, as finding the minimum is almost guaranteed theoretically. Initially, we initialize
qubits in a superposition state forming
strings of qubits. We then apply a unitary operation
that ensures the mapping
as depicted in
Figure 4. In an optimization context,
is the objective function of which the minima need to be determined.
This approach permits the exploration of the entire search space at once, leveraging the superposition. Next, a comparator circuit is applied as an oracle to mark all elements below the chosen arbitrary reference value by cutting the search space. Quantum counting then provides the number of marked elements by iteratively updating the reference value according to the marked elements. The algorithm narrows the set of the potential candidates: if the number of marked elements is less than the reference value, the repeated circuit execution is stopped; otherwise, we continue to update the reference value. Eventually, we consider the last updated reference value as the optimal minima.
The update of reference value is a crucial part of the algorithm time complexity. We propose in this paper to use a modified sigmoid function that maps
to
, such as
where
.
The parameter is adjusted according to how fast it goes from 0 to 1.
is the first number of marked elements.
is the number of current marked elements.
The reference value is updated as follows:
where
is a chosen incrementing or decrementing constant.
If , then the algorithm is out of search space scope.
Figure 5,
Figure 6 and
Figure 7 illustrate the optimization procedure according to the proposed methodology for different thresholds. Minimizing the reference value means seeking the minimum value within the search space.
In practical applications, estimation of the number of marked elements using quantum counting is sensitive to the accuracy of phase estimation. The phase θ obtained via the Quantum Phase Estimation (QPE) subroutine depends on the number of ancilla qubits used and is susceptible to noise and discretization error. An imprecise estimate of θ can result in incorrect calculation of the number of marked items M, affecting the reference update and convergence behavior of the optimization algorithm. This sensitivity can be mitigated by increasing the number of ancilla qubits, which improves the resolution of the phase estimation. Alternatively, iterative or adaptive QPE schemes may be employed to enhance precision without significantly increasing circuit depth. However, for robust implementation on near-term quantum hardware, quantum error correction mechanisms would be required to handle decoherence and gate noise, which remain a limitation for current devices. In our simulation, these effects are ignored in our noise-free classical emulation, but must be addressed in future hardware-based implementations.
Figure 8 illustrates a flowchart describing the proposed quantum-based optimization methodology. The algorithm initializes quantum states in a superposition, maps control inputs to their respective costs, and employs a quantum comparator circuit to mark inputs with costs lower than a dynamically updated reference value. Quantum counting estimates marked elements, and the algorithm iteratively updates this reference until the marked elements fall below a threshold, thus converging on an optimal solution. This clearly illustrates the step-by-step logic and feedback loops integral to the proposed Grover-based optimal control strategy.
4. Results
All the simulations were performed on MATLAB R2023a using an Intel(R) computer, Core (TM) i7-8700 CPU and 8 GB of RAM, running on Windows 10.
The objective of this experiment was to explore the use of Grover’s algorithm to optimize the control inputs for a second-order system that models the actuators of the robotic arm. By applying Grover’s algorithm, we aim to leverage quantum computing’s potential to identify optimal control inputs efficiently.
The considered robotic arm model in this study is a six-axis robotic arm with parameters and joint constraints as in
Table 1 and
Table 2, respectively. The robot’s frames and parameters are illustrated in
Figure 9.
The objective is to make each joint follow a desired trajectory (sine wave, ramp, and circle). The control objective is to determine the optimal control input , which corresponds to the angular acceleration required to follow the desired trajectory.
The desired trajectory for each joint’s motion is modeled as
over a time interval from 0 to 10 s with a sampling interval of 0.1 s. The first derivative of the desired trajectory,
, represents the desired angular velocity. The second derivative of the desired trajectory is the angular acceleration, which is equal to the control input
.
The optimal control law was first calculated using the backstepping methodology after performing feedback linearization. We obtained a second-order differential equation as follows:
The control law is computed as in the following:
Encoding control inputs into quantum states using Grover’s algorithm requires mapping the calculated optimal control values in binary to find the optimal element encoded into quantum states. The control inputs were scaled in a range of [−10, 10] and then further scaled to fit within a resolution of 10 bits (ranging from 0 to 1024) using Equation (36). This allowed us to encode the optimal control inputs into quantum states that could be manipulated by Grover’s algorithm.
where
is the number of the qubits.
Grover’s algorithm was then used to amplify the quantum states that correspond to the optimal control inputs. To this end, we started by creating a qubit string that represents the control input and initialized it in a superposition using Hadamard gates, followed by Grover iterations designed to amplify the desired states. Although we have omitted the oracle design to reduce the complexity of the problem, the calculated control serves as a pseudo-oracle marking the control values that align with the desired trajectory. Ultimately, we aim to highlight the potential of Grover’s algorithm in optimization contexts; in real applications where a string represents the optimal control in a superposition state and the oracle is a quantum circuit that marks the optimal control, we would apply the Grover diffusion operator circuit to measure the optimal control in each resolution.
After we make a measurement on the quantum system, the results need to be decoded back from binary into the range of control inputs. The optimal control is then applied to the system to simulate its response. The equation below shows how to decode the optimal control value within the range of the control input and resolution.
The system’s response, , was computed by integrating the optimal control inputs over time to determine the resulting angular velocities and positions.
Figure 10 and
Figure 11 illustrate the comparison between the desired trajectory (
) and the system’s response using the optimal control inputs derived through Grover’s algorithm (
).
In this case, we used 12 qubits for trajectory tracking considering three different trajectories: sine wave, circle, and straight line.
The results meet the expectation and show that the optimal control perfectly tracks the desired trajectory, demonstrating the effectiveness of Grover’s algorithm in amplifying the correct control inputs. The small deviation suggests parameter tuning of the controller. However, such adjustment would be unnecessary in real-case scenarios because it only reflects oracle oversimplification.
Moreover, the results suggest that the number of qubits only reflects the resolution, indicating that the required qubit number depends on problem formulation and desired resolution. This relationship allows us to reduce the complexity of the quantum system, since, in our case, we achieved similar performance using fewer qubit states.
Figure 12 shows the relationship between the RMSE and the number of qubits used for the three trajectories. As the resolution increases, the error generally decreases. However, we notice that, beyond 8 qubits, the error plateaus, suggesting that for the given problem, 8 qubits could be sufficient. Increasing the resolution further could increase the complexity of the quantum system without any significant improvement in accuracy.
The use of quantum state amplification provides a novel approach to optimizing control inputs, reducing reliance on exhaustive classical computations.
This experiment successfully demonstrated the application of Grover’s algorithm to optimize control inputs for a second-order system representing a robotic arm. By encoding the control problem into quantum states and using Grover’s iterations to amplify the desired states, the algorithm efficiently identified the optimal control inputs. The approach showcases the potential of quantum computing in control optimization tasks, providing a pathway for further research in real-time, high-dimensional control systems using quantum algorithms. While the proposed method is not evaluated through direct numerical comparison with existing quantum-inspired control techniques (e.g., QPSO, GA), it offers distinct theoretical advantages. Most of the existing methods operate as heuristic solvers and cannot guarantee convergence to the global minimum. In contrast, our method—based on quantum counting and Grover’s operator—ensures convergence to the minimum within the discretized control space. Furthermore, unlike methods such as QPSO that require iterative fitness evaluations and parameter tuning, our method operates as a structured quantum search guided by an oracle and counting mechanism, offering quadratic efficiency over exhaustive search.
However, it should be noted that, due to the available resource limitations, full oracle circuit implementation was not feasible. Instead, we opted to replace the oracle part with a classical calculation. More specifically, we used a backstepping controller as a pseudo-oracle. Practically, these results can be understood by imagining the backstepping controller as an oracle that knows and marks what the optimal control is at each time step. This simplifies implementation while leveraging classical control theory as a black box quantum oracle to achieve oracle-like behavior. Additionally, this strategy highlights Grover’s algorithm as a potential optimization technique where there are enough resources to fully implement it.
5. Conclusions
The application of Grover’s algorithm as an optimization technique and control strategy for a six-jointed robotic arm demonstrates its potential to offer a new paradigm in control theory, where the task of computing the control law is reformulated as a search problem. By encoding all candidate control inputs in a superposition state and iteratively refining a reference using quantum counting, the proposed method guarantees convergence to the global minimum within a discretized space. This framework shows high theoretical efficiency in applications requiring both speed and accuracy, benefiting from the parallel evaluation enabled by quantum superposition.
The simulation results, using a classical pseudo-oracle, confirm the feasibility of the approach: trajectory tracking was achieved accurately across various reference trajectories, including sine wave, circle, and straight line. Moreover, we observed that increasing the resolution beyond 8 qubits yields diminishing returns in accuracy, as illustrated by the RMSE trends in
Figure 12. This finding reflects an important trade-off between precision and quantum resource requirements, which holds practical relevance for future hardware-limited implementations.
One of the main advantages of the proposed method is that it eliminates the need to explore the entire control space exhaustively, as in metaheuristic methods. Instead, it relies on structured quantum logic to converge on optimal inputs, reducing computational effort significantly. While this work does not implement a full quantum oracle due to hardware limitations, the substitution of a classical feedback controller demonstrates the method’s conceptual validity and supports its potential for future implementation.
The study also highlights the inherent resolution problem in quantum encoding, where precision depends on the number of qubits used. Addressing this challenge either by improving encoding strategies or enhancing quantum hardware is critical for extending the practical applicability of this framework.
While this framework presents a promising approach to quantum control synthesis, it is important to acknowledge its current limitations. First, the quantum oracle was not implemented and instead replaced with a classical pseudo-oracle, which limits the demonstration to a conceptual simulation rather than a true quantum implementation. Second, quantum counting is sensitive to noise and phase estimation accuracy, which can affect convergence when deployed on real quantum hardware. Finally, the feasibility of this method in practical settings is constrained by current limitations in quantum hardware, particularly the lack of fault-tolerant qubit systems and high-fidelity quantum gates. These factors must be addressed in future work to realize the full potential of Grover-based control optimization.