Quantum Machine Learning-based Test Oracle for Autonomous Mobile Robots Xinyi Wang, Qinghua Xu, Paolo Arcaini, Shaukat Ali, Thomas Peyrucain Abstract Robots are increasingly becoming part of our daily lives, interacting with both the environment and humans to perform their tasks. The software of such robots often undergoes upgrades, for example, to add new functionalities, fix bugs, or delete obsolete functionalities. As a result, regression testing of robot software becomes necessary. However, determining the expected correct behavior of robots (i.e., a test oracle) is challenging due to the potentially unknown environments in which the robots must operate. To address this challenge, machine learning (ML)-based test oracles present a viable solution. This paper reports on the development of a test oracle to support regression testing of autonomous mobile robots built by PAL Robotics (Spain), using quantum machine learning (QML), which enables faster training and the construction of more precise test oracles. Specifically, we propose a hybrid framework, QuReBot , that combines both quantum reservoir computing (QRC) and a simple neural network, inspired by residual connection, to predict the expected behavior of a robot. Results show that QRC alone fails to converge in our case, yielding high prediction error. In contrast, QuReBot converges and achieves 15% reduction of prediction error compared to the classical neural network baseline. Finally, we further examine QuReBot under different configurations and offer practical guidance on optimal settings to support future robot software testing. K eywords Autonomous Mobile Robots \cdot regression testing \cdot ML-based test oracle \cdot quantum machine learning. 1 Introduction PAL Robotics [ 1 ] is a European company developing robots to improve daily life and solve practical problems. Their robots support domestic and industrial tasks using self- and environmental awareness for safe autonomous navigation with built-in path planners. This paper focuses on Autonomous Mobile Robots (AMRs), which are widely deployed in service environments such as offices, where they operate in cooperation with humans. During navigation with data collected from onboard sensors, AMRs frequently interact with the environment, including humans and other objects; this can result in failures if AMRs are not thoroughly tested. As with other software systems, robot software continuously evolves through updates and enhancements to improve performance. These changes require regression testing to ensure that existing, updated, and newly introduced functions all operate correctly. However, the oracle problem remains a challenge in regression testing, as obtaining ground truth is often difficult [ 2 , 3 , 4 ] . In some cases, it can even be very costly or even impossible, especially when additional equipment and complex setup are required [ 5 ] . In addition, simulating robots to build ground truth costs substantial time and resources. To this end, machine learning (ML)-based test oracles have been employed in the literature [ 6 , 3 , 4 ] as a viable solution to learn expected behavior from historical data and predict correct expected behavior during testing. This work develops an ML-based test oracle to support AMR regression testing. It specifically targets the navigation software that enables AMRs to follow an optimal path to their destination while avoiding collisions with humans or other obstacles. Traditional ML models require training on substantial amount of data, so necessitating significant computational resources. In contrast, reservoir computing is a computational framework that uses the natural dynamics of randomly connected neural networks to process information, with its main advantage being minimal training requirements [ 7 ] . The neural networks used in reservoir computing are typically recurrent neural networks (RNNs), which are well-suited for capturing temporal dependencies in sequential data [ 8 ] . Recent progress in quantum computing (QC) has triggered interest in quantum reservoir computing (QRC) [ 9 ] , which replaces the RNN-based reservoir with a QC system. By combining QC’s computational power with the minimal training capability of reservoir computing, QRC offers the potential for highly efficient data processing. In QC, classical data is mapped into high-dimensional Hilbert spaces, enabling the model to better capture temporal patterns and make accurate predictions, which, in our context, means a more accurate test oracle learned with minimal training. Thus, in this work, we propose a QRC-based model as a test oracle for the navigation software of AMRs developed by PAL robotics . Specifically, we train this model to perform next state prediction of the AMRs based on a sequence of historical robot states. The model is trained on data from a stable software version and later used to test the behavior of updated versions, ensuring existing functionality remains unaffected. Although QRC has shown promise in various domains, such as trajectory prediction, quantum chemistry problems, and gene regulatory networks [ 10 , 11 , 12 , 13 , 14 , 15 ] , most existing QRC approaches are still limited to handling univariate time series data. In contrast, multivariate time series data (e.g., AMR state data), despite extensively-studied in traditional ML, remains underexplored in QRC. This gap motivates us to combine QRC with traditional ML approaches to effectively and efficiently tackle complex multivariate time series data. To that end, we propose a hybrid framework, QuReBot , which is inspired by the residual connection technique in deep learning [ 16 ] . It has been widely applied in several deep learning algorithms, such as ResNet [ 17 ] , and Transformer architectures [ 18 ] to reduce the influence of vanishing gradient by passing the input directly to the output layer, skipping the intermediate layers. In our context, QuReBot uses QRC for time series data prediction and a residual connection to link the input to the final output layer through a relatively simple non-linear transformation. For each input data, QuReBot dynamically calculates a weight parameter to control the contribution of the QRC branch and the residual connection branch (the “shortcut”) based on its context. We evaluate the performance of QuReBot with the AMR developed by PAL robotics . 1 1 1 All experiment results and code for replication can be found at [ 19 ] . Results show that QRC alone fails to converge and results in high prediction error. QuReBot converges successfully and achieves a 15% lower MSE compared to the classical baseline. Finally, we compare QuReBot across various configurations and provide practical recommendations for optimal settings for future robot development. 2 Background 2.1 Quantum Computing The quantum computing paradigm leverages quantum mechanical principles to solve certain problems that are difficult for classical computers. It performs computations using quantum bits (i.e., qubits ), instead of bits, to process information. Unlike a bit, which can only be either 0 or 1, a qubit can exist in a superposition of state \ket{0} and \ket{1} at the same time, until it is measured and collapses into one of the basis states with different probabilities. The quantum state (i.e., also called as pure state ) of a single qubit can be represented as \ket{\psi}=\alpha_{0}\ket{0}+\alpha_{1}\ket{1}=\begin{bmatrix}\alpha_{0}\\ \alpha_{1}\end{bmatrix},\quad|\alpha_{0}|^{2}+|\alpha_{1}|^{2}=1 (1) where the probability of the qubit being \ket{0} is |\alpha_{0}|^{2} while that of being \ket{1} is |\alpha_{1}|^{2} . The quantum state of a multi-qubit system with N qubits can be represented by \ket{\psi}=\sum_{i=0}^{2^{N}-1}\alpha_{i}\ket{i}=\begin{bmatrix}\alpha_{0}\\ \alpha_{1}\\ \vdots\\ \alpha_{2^{N}-1}\end{bmatrix},\quad\sum_{i=0}^{2^{N}-1}|\alpha_{i}|^{2}=1 (2) where \ket{i} denotes the i -th computational basis state in binary. Another important concept in quantum computing is entanglement , where two or more qubits share a single joint quantum state and depend on each other. For example, in the entangled two-qubit quantum state: \ket{\psi}=\frac{1}{\sqrt{2}}\big(\ket{00}+\ket{11}\big) (3) the system collapses into either \ket{00} and \ket{11} with equal probability when they are measured. Gate-based quantum computing is a widely used model to perform computations by applying a sequence of gates (i.e., unitary operators ) to a quantum circuit , which is composed of several qubits. Table 1 shows some commonly used gates. Table 1: Descriptions of commonly used quantum gates Gate Description Hardamard (H) Placing a qubit into an equal superposition, i.e., there is a 50% probability of being measured in state either \ket{0} or \ket{1} . Pauli-Z ( Z ) Rotating a qubit around the z -axis with \pi radians. Pauli-X ( X ) Rotating a qubit around the x -axis with \pi radians. Pauli-Y ( Y ) Rotating a qubit around the y -axis with \pi radians. RX(\theta) Rotating a qubit around the x -axis with \theta radians. RY(\theta) Rotating a qubit around the y -axis with \theta radians. RZ(\theta) Rotating a qubit around the z -axis with \theta radians. Controlled-X (CNOT/CX) A two-qubit gate with a control and a target qubit. If the control qubit is \ket{1} , the target qubit rotates around the x -axis with \pi radians. Controlled-Z (CZ) A two-qubit gate with a control and a target qubit. If the control qubit is \ket{1} , the target qubit rotates around the z -axis with \pi radians. Two qubit rotation gates RXX/RYY/RZZ A two-qubit gate rotating the two qubits around z axes simultaneously with \theta radians. In a quantum circuit, each qubit is first initialized into a classical basis state (e.g., \ket{0} ), then quantum gates are applied to manipulate their quantum states (e.g., creating superposition and entanglement) to perform the desired computation. For example, Fig. 1 shows a two-qubit circuit, where the two qubits are first initialized in the \ket{00} state. Figure 1: Example of quantum circuit An H gate is applied on the q_{0} , placing it into superposition. Next, a \mathit{CX} gate entangles the two qubits. Finally, the two qubits are measured, causing the system to collapse into a classical basis state. 2.2 Quantum Reservoir Computing (QRC) Classical Reservoir Computing. Reservoir Computing (RC) is a computational framework for temporal information processing. RC leverages a fixed, non-linear system called reservoir to map the input sequence into higher-dimensional spaces, similar to neural network hidden layers. Then, a readout layer is employed to produce the desired output sequence [ 8 ] . Unlike neural networks where all weights are trained, RC keeps the reservoir fixed and only trains the readout layer. Consequently, RC is computationally more efficient and requires less data for training compared to neural networks. Specifically, given an input sequence \{u_{t}\}^{M-1}_{t=0} , RC aims to predict the corresponding output sequence \{y_{t}\}^{M-1}_{t=0} . Fig. 2 shows the general framework of RC. Figure 2: Framework of Reservoir Computing (RC) To encode the temporal information of sequences, the reservoir in RC maintains an internal state x_{t} , referred to as the reservoir state hereafter. The update rule of x_{t} at timestep t is given by x_{t}=f(x_{t-1},u_{t}) (4) where f is a non-linear, fixed function that represents the temporal evolution of the reservoir state. Similar to the recurrent unit of RNN, f incorporates both information from the previous state x_{t-1} and the current input u_{t} to predict the current state x_{t} . Subsequently, RC maps x_{t} to the output space through a readout layer, which is essentially a linear transformation defined as \bar{y_{t}}={W_{\mathit{out}}}h(x_{t}) (5) where {W_{\mathit{out}}} is a weight matrix trained to reduce the difference between the predicted output \bar{y_{t}} and the target output y_{t} . h is a function that observes signals from the state x_{t} . Quantum Reservoir Computing . Quantum Reservoir Computing (QRC) extends the classical reservoir in RC with a quantum system as depicted in Fig. 3 . Figure 3: Framework of Quantum Reservoir Computing (QRC) Following the general framework of RC, we inject values of input sequence \{u_{t}\}^{M-1}_{t=0} at successive timesteps into the quantum circuit to calculate corresponding internal reservoir states (i.e., quantum states in this context), which are then used to predict the output values through a readout layer. As discussed in Sect. 2.1 , the (pure) quantum state of a quantum system with N qubits is represented as a 2^{N} -dimensional vector \ket{\psi} . Since a QRC system can be considered as a statistical mixture of pure states, we represent it as a ( 2^{N}\times 2^{N} )-dimensional density matrix \rho . The time evolution of the quantum system under an input u_{t} is described by \rho_{t}=\mathcal{T}_{u_{t}}(\rho_{t-1})=e^{-i\Delta tH}\rho(t-1)e^{i\Delta tH} (6) where \rho_{t} represents the internal reservoir state at time t . \mathcal{T}_{u_{t}} represents the evolution process in Fig. 4 where the input value u_{t} is first encoded and applied to the quantum system, which evolves for time \Delta t under the unitary operator e^{-iH\Delta t} defined by the system Hamiltonian H . 2 2 2 Hamiltonian defines the energy of a quantum system, and is mathematically expressed as a hermitian matrix. Figure 4: \mathcal{T}_{u_{t}} Circuit Notably, H is configurable, and it decides the system dynamics. During evolution, the injected information will spread through the whole system. The function h in Eq. 5 is implemented by measurements on all qubits. We measure the system and calculate the expectation values on each qubit, obtaining h(\rho_{t})=[\langle Z_{0}\rangle,\ldots,\langle Z_{N-1}\rangle] (7) After getting sufficient pairs of \big(h(\rho_{t}),y_{t}\big) , we can train a simple linear regression model to determine the parameters of W_{\mathit{out}} by minimizing the mean squared error between predicted outputs \bar{y_{t}} and target outputs y_{t} : \min\sum_{t=0}^{M}(\bar{y_{t}}-y_{t})^{2} (8) However, during implementation, the computational cost of this process is considerable. First, due to the probabilistic nature of the quantum system, multiple repetitions are necessary to approximate expectation values accurately. Second, the above framework requires measurements on all qubits between every two timesteps to get h(\rho_{t}) , which is destructive as it causes the whole system to collapse and disrupt the system dynamics. Consequently, the entire process must be repeated from the beginning for each timestep. For example, as illustrated in Fig. 5 , to obtain h(\rho_{t}) at timestep t , the system evolves from u_{0} to u_{t} before measurement. Figure 5: Restarting Protocol Then, to get h(\rho_{t+1}) , the system is reset and evolved again from u_{0} to u_{t+1} . This restarting protocol is highly inefficient and requires substantial resources. To address this issue, a rewinding protocol is proposed based on the echo state property in RC, which illustrates that, after sufficient evolution, reservoir state becomes independent of its initial state, depending only on recent inputs [ 20 ] . Accordingly, in implementation, we introduce the washout time T_{\mathit{wo}} as the timesteps necessary for RC to “forget” the initial state. Thus, as shown in Fig. 6 , instead of restarting from t_{0} every time, the system only needs to reconstruct the last T_{\mathit{wo}} steps, which significantly reduces the required resources. Figure 6: Rewinding Protocol 3 Industrial Context PAL Robotics is a Spanish company with world-leading expertise in developing robots for deployment in the service industry (e.g., warehouses and retail). They support businesses and are also actively involved in research and development projects with research organizations in this domain. Examples of robots built by PAL include legged robots for research purposes, robots designed to assist in retail environments (e.g., for stocking goods), and Autonomous Mobile Robots (AMRs), which are widely used in various logistics applications [ 1 ] . Although the work presented in this paper can be applied to various types of robots produced by PAL, we here focus on AMRs, specifically the TIAGo OMNI robot [ 21 ] . This robot is widely used in both research and industrial settings for its accurate navigation and advanced sensing capabilities. It is commonly deployed in service environments such as office spaces and hospitals, where it operates alongside humans. Consequently, it must navigate in a way that ensures human safety, while effectively completing its assigned tasks. The robot employs two navigation algorithms: the first one is designed to determine an optimal route to its destination, while the second one focuses on detecting obstacles and dynamically adapting the robot’s path. This adaptive behavior is supported by real-time data from multiple onboard sensors that continuously monitor the surrounding environment. Like any other software system, a robot’s software evolves, requiring regression testing to ensure that the updated software continues to meet both its functional and non-functional requirements. Such testing requires a test oracle to determine whether the robot’s behavior remains correct, i.e., navigation remains optimal and safe in our context. However, building a test oracle is challenging, as the ground truth is often complicated to obtain. To address this challenge, machine learning-based test oracles are often employed [ 6 , 3 , 4 ] , typically trained on historical data. In line with this approach, we investigate the use of QML to develop a test oracle that supports the regression testing of the TIAGo OMNI robot. Specifically, we design a hybrid framework that integrates neural networks and QRC. The quantum dynamics within QRC enhances the neural networks’ ability to learn more precise patterns in data compared to classical machine learning. As a result, the hybrid model can model the navigation behavior of the robot more precisely and accurately, thereby serving as a precise test oracle to support regression testing. 4 Approach We introduce the overview of QuReBot . First, we describe how we integrate QC with a classical neural network to predict the next states of a robot based on its previous states. Second, we elaborate on how we design the core of QuReBot , i.e., the quantum reservoir circuit. 4.1 Overview Fig. 7 shows an overview of the training process in QuReBot . Figure 7: Overview of QuReBot For training, we gather navigation data during operation from a stable release of the TIAGo OMNI robot. As shown in Block a of Fig. 7 , we consider a sequence of t+1 observed historical state \mathcal{S}=\{\mathbf{s}_{0}, \mathbf{s}_{1}, \dots,\mathbf{s}_{t}\} , where each state contains features related to its position, orientation, linear velocity, and angular velocity. Specifically, each state consists of d features as in \mathbf{s}_{j}=\{s_{j}^{(0)}, s_{j}^{(1)}, \ldots, s_{j}^{(d-1)}\} . Considering the rewinding protocol illustrated in Sect. 2.2 , we select features of the last T states (i.e., washout time) as the input of our model (i.e., \mathcal{S}_{t}=\{\mathbf{s}_{t-T+1}, \mathbf{s}_{t-T+2}, \ldots, \mathbf{s}_{t}\} ). We also define the number of future time steps to predict as horizon K . The output of the model is the position of the robot in the next K time steps \mathcal{P}_{t}=\{\mathbf{p}_{t+1}, \mathbf{p}_{t+2}, \ldots, \mathbf{p}_{t+K}\} and \mathbf{p}_{j}=(p_{j}^{\mathit{pos}_{x}},p_{j}^{\mathit{pos}_{y}}) . QuReBot is a QRC-based approach to predict the robot’s position in the next K states. Inspired by the success of skip connections in deep neural networks, we adopt a similar strategy in QuReBot to enhance prediction effectiveness. In deep learning, skip connections typically link the input directly to the output layer, bypassing intermediate layers. The adoption of skip connections can potentially preserve critical information in the input, mitigating severe context loss in deep neural networks or complex quantum reservoirs. As shown in Fig. 7 , our approach contains two branches: the QRC branch (i.e., Block b ) and the skip connection branch (i.e., Block c ). In the QRC branch, to process the input data into quantum circuits, we first normalize each state as \mathbf{\hat{s}}_{j}=\{\hat{s}_{j}^{(0)}, \hat{s}_{j}^{(1)}, \ldots, \hat{s}_{j}^{(d-1)}\} to fit the requirements of the quantum encoders. The normalized data then undergoes time evolution within the reservoir circuits. After measurement, we get expectation values for each qubit, i.e., a real-valued vector defined as: \mathbf{r}_{t}=\mathcal{F}_{\mathit{QRC}}(\mathbf{\hat{\mathcal{S}}}_{t})=\{r_{t}^{(0)},r_{j}^{(1)},\ldots,r_{j}^{(D-1)}\} (9) where \mathcal{F} is the QRC process. More details in Sect. 4.2 . The skip connection branch provides a “shortcut” to bypass the complex quantum reservoir, consisting of relatively simple transformations. As depicted in Block b of Fig. 7 , the normalized state \hat{s}_{j} is consecutively fed into a linear layer and an activation layer (ReLU), yielding a vector \mathbf{r}_{t}^{\prime} with the same dimension as \mathbf{r}_{t} . The transformation equations are as follows \displaystyle\mathbf{r}_{t}^{\prime}=W_{\mathit{proj}}\cdot\operatorname{vec}(\mathcal{\hat{\mathcal{S}}}_{t})+b_{\mathit{proj}}\,,\quad\operatorname{vec}(\mathcal{\hat{S}}_{t})\in\mathbb{R}^{Td} (10) \displaystyle\mathbf{r}_{t}^{\prime}=relu(\mathbf{r}_{t}^{\prime}) (11) where W_{\mathit{proj}} and b_{\mathit{proj}} are weight matrices. As shown in Block d of Fig. 7 , QuReBot calculates a weighted sum of both outputs from the QRC branch ( \mathbf{r}_{t}^{\prime} ) and ( \mathbf{r}_{t} ). Standard residual connections add \mathbf{r}_{t}^{\prime} and \mathbf{r}_{t} directly, implicitly treating both inputs equally, whereas QuReBot dynamically adjust the influence of each branche based on the characteristics of the input. Specifically, QuReBot computes a scalar value \alpha from the input \hat{\mathcal{S}}_{t} as \alpha=W_{\mathit{sw}}\cdot\operatorname{vec}(\hat{\mathcal{S}}_{t})+b_{\mathit{sw}} (12) Then, a sigmoid function \sigma is applied to map the weight into a value between 0 and 1. \alpha=\sigma(\alpha) (13) With \alpha computed, QuReBot computes the weighted sum \mathbf{r}_{t}^{*} of \mathbf{r}_{t}^{\prime} and \mathbf{r}_{t} as in \mathbf{r}_{t}^{*}=(1-\alpha)\mathbf{r_{t}}+\alpha\mathbf{r}_{t}^{\prime} (14) Finally, a readout layer takes \mathbf{r}_{t}^{*} as input and predicts the target output. Specifically, the readout layer is a linear transformation defined as \mathcal{\bar{P}}_{t}=W_{\mathit{out}}\cdot\mathbf{r}_{t}^{*}+b_{\mathit{out}} (15) \mathcal{\bar{P}}_{t} represents the predicted sequence of next K time states. The objective of this hybrid model is to minimize the mean squared error between the predicted output \mathcal{\bar{P}}_{t} and the target output \mathcal{P}_{t} . Suppose M input-output pairs are given, the objective is formally formulated as \min\operatorname{MSE}=\frac{1}{M}\sum_{t=0}^{M-1}(\mathcal{\bar{P}}_{t}-\mathcal{P}_{t})^{2} (16) 4.2 Quantum Reservoir Computing Implementation In this section, we introduce the QRC process \mathcal{F}_{\mathit{QRC}} (i.e., Block e in Fig. 7 ). The first issue we need to address is to feed the sequence of the input states \hat{\mathcal{S}}_{t} into the quantum system. In QRC, each state is injected into the quantum circuit at consecutive time steps. At each time step, each normalized feature value \hat{s}_{t}^{(j)}\in[0,1] is fed to the system by setting the quantum state of one qubit to \ket{\psi_{\hat{s}_{t}^{(j)}}}=\sqrt{1-\hat{s}_{t}^{(j)}}\ket{0}+\sqrt{\hat{s}_{t}^{(j)}}\ket{1} . To set this quantum state, we need to apply an \mathit{RY} gate (see Table 1 ) on the j -qubit with rotation \theta=2\arcsin\sqrt{\hat{s}_{t}^{(j)}} . As shown in the Encoder box in Block e of Fig. 7 , we select a subset of qubits to encode the feature values. Each qubit is encoded with one value. Then, all qubits in the quantum system undergo time evolution through an input-independent unitary operator as the reservoir circuit, which is commonly a variational quantum circuit. The parameters in the reservoir circuit are randomly assigned and fixed throughout the process. Various structures for reservoir circuits have been proposed. Due to the existing hardware restrictions on current quantum computers, a class of hardware-efficient [ 22 ] quantum reservoir circuits has been proposed. These circuits are constructed from repeated layers. Each layer includes an optional rotation layer , consisting of single-qubit rotation gates, and an entangling layer , built from multi-qubit gates. The number of repetitions of these layers determines the circuit depth . In this paper, we consider the following four quantum circuits as quantum reservoir circuits. (1) CNOT Reservoir: It does not include a rotation layer and contains no randomly assigned parameters. It is built only from \mathit{CX} gates, that are arranged in a circular structure to entangle all the qubits. Fig. 8(a) shows an example circuit with three qubits in a single repetition. (2) Rotation Reservoir: It contains a rotation layer and an entangling layer in a single repetition. The rotation layer applies a single-qubit rotation gate on each qubit, randomly selected from the gate set \{\mathit{RX}, \mathit{RY}, \mathit{RZ}\} . Each rotation angle \theta_{i} is randomly sampled from the range [0,2\pi) and fixed. The entangling layer is constructed by \mathit{CZ} gates arranged in a circular entangling structure to connect all qubits. Fig. 8(b) shows an example circuit with three qubits in a single repetition. (3) Efficient SU(2) Reservoir: It is based on a widely used ansatz in Qiskit for variational quantum algorithms [ 23 ] . Each repetition consists of a rotation layer followed by an entangling layer. In the rotation layer, we apply two single-qubit rotation gates on each qubit, which are \mathit{RY} and \mathit{RZ} gates. The rotation angles \theta_{i} are randomly selected from [0,2\pi) and remain fixed throughout the process. The entangling layer is constructed by \mathit{CX} gates arranged in a “reverse linear” entangling structure, where every two adjacent qubits are entangled starting from the higher-indexed qubit. Fig. 8(c) shows an example circuit with three qubits in a single repetition. (4) Ising Hamiltonian Reservoir: It corresponds to Ising Hamiltonian dynamics: H=\sum_{j=1}a_{j}X_{j}+\sum_{j indicates row is significantly better than column; < indicates worse; – means not significant). K=1 K=2 K=3 K=4 K=5 K=1 – – – > > K=2 – – – – > K=3 – – – – > K=4 < – – – – K=5 < < < – – We can observe that QuReBot with K=1 , K=2 , and \mathit{FS}_{3} consistently outperforms that with K=5 , while there is no significant difference among K=1 , K=2 , and K=3 . Also, QuReBot with K=1 is significantly better than K=4 , but K=4 does not differ significantly from the remaining configurations, placing it in an intermediate position. These findings are supported by Fig. 10(b) , as the average values of K=1 , K=2 , and K=3 are lower than the others, and a small increasing trend can be observed with the increase in horizon length. Those results indicate that QuReBot achieves reliable performance for short-term predictions (up to 3 steps), but prediction effectiveness may degrade for longer horizons, particularly beyond 3 steps. Answer to RQ2 : Using fewer, well-chosen features and shorter prediction horizons improves the effectiveness and reliability of QuReBot for robotic testing. 7 Lessons Learned 7.1 Importance of feature selection in practice RQ1 (Sect. 6.2 ) reveals that even with a reduced number of input features, quantum dynamics can help maintain high prediction effectiveness. Moreover, RQ2 (Sect. 6.3 ) reveals that using more features in QuReBot does not necessarily lead to better performance. These results indicate the importance of optimal feature selection for maximizing model performance. Moreover, using fewer features reduces the required number of qubits for the QRC circuit, resulting in lower-depth quantum circuits, lowering QC computational costs during training and testing. 7.2 Robustness of QuReBot We performed 4-fold cross-validation by dividing the dataset into four equal phases based on the time sequence of a complete robot operation. These segments correspond to a starting phase, two task execution phases, and a finishing phase, each exhibiting different characteristics in robot states. Despite the variation across phases, the results show that QuReBot maintains consistent performance, with MSE values remaining below 1.8 across all configurations, which is within an acceptable range. It also exhibits the robustness of QuReBot for different scenarios. More detailed analysis of QuReBot across different phases is planned as our future work, to identify which phases in our approach can lead to relatively better or worse performance. 7.3 Practical implication Our results showed that QuReBot , a quantum-classical machine learning model, is promising for improving regression testing of AMRs using the strengths of both quantum and classical components. For PAL Robotics, our findings have several implications. First, it provides early but practical insights into the use of QML to support the AMR development. Second, our work serves as an initial step toward developing the necessary skills for applying QML in real-world robotic contexts. Third, it opens the door for PAL Robotics to explore a wider range of tasks that can benefit from QML in its practice. 8 Threats to validity Internal Validity. QuReBot adopts a non-linear transformation as the residual connection branch. Using alternative ML models (e.g., RNN and Convolutional Neural Network) can potentially influence QuReBot ’s performance. However, using more advanced ML approaches for the residual connection branch might incur more resource overhead, contradicting its role as an alternative “shortcut” for QRC. Nonetheless, we plan to perform more comprehensive investigations on the influence of different ML methods. Conclusion Validity. The inherent randomness of the neural networks and QRC can potentially influence our experimental results. To alleviate its influence and provide reliable results, we repeated each experiment 10 times and conducted statistical testing to assess the significance of differences. External Validity. QuReBot is evaluated on one subject system—TIAGo OMNI robot. The performance of QuReBot might vary for different robots. However, QuReBot is a data-driven, hardware-agnostic approach that can be applied to most systems producing similar data structures. Moreover, we collected data from a complex and representative scenario (i.e., in a real office), where robots typically operate. We will further study the generalizability of QuReBot and investigate its effectiveness in various scenarios in the future. 9 Related Work Robotic systems’ characteristics, such as autonomy, frequent interaction with the environment, including humans, make their testing critical [ 5 ] . Several testing techniques are adopted for robots [ 29 ] , such as model-based testing [ 30 , 31 ] , simulation-based testing [ 32 , 33 , 34 ] , formal verification [ 35 , 36 ] , and runtime monitoring [ 37 , 38 ] . Regression testing ensures that updates or changes in the robotic software do not negatively affect the existing functionality of the robot, and also ensures new functionality is correct [ 5 , 39 , 40 ] . This paper proposes a hybrid quantum machine learning algorithm to support regression testing of an AMR from PAL Robotics. It is the first exploration of applying quantum algorithms to test an industrial robot in a real context. Studies have used ML algorithms related to test oracles, including extracting test verdicts [ 41 , 42 ] , identifying metamorphic relations [ 43 , 44 , 45 ] , and predicting expected outputs [ 46 , 47 , 41 , 48 , 3 ] . Predicting expected output is related to our work, as we generate the expected behavior of the robots as the test oracle. A related study uses quantum extreme learning machine (QELM) to generate a test oracle for elevators [ 49 ] . Our work differs as we target robots, where we collect robot states during its operation and predict the future states. This involves processing temporal information, for which QELM is not designed, since it is memoryless. QRC has gained interest [ 10 , 11 , 12 , 13 , 28 ] due to its inherent ability to process temporal information based on the nature of quantum dynamics. QRC has been applied to some classical tasks, including the NARMA benchmark task [ 50 ] , an object classification task [ 51 ] , a quantum chemistry problem [ 14 ] , gene regulatory networks [ 52 ] , and mobile user trajectory prediction [ 15 ] . Our work differs from these works in these ways: (1) we address next state prediction for a robot, including multi-step prediction. Also, previous studies usually focus on single-variable signals, whereas our input is multi-dimensional state information (e.g., position, velocity) as well as we predict more than one signal, which makes our task more difficult. (2) we propose a hybrid framework that combines both QRC and a “skip connection” inspired by residual connection in deep learning, significantly enhancing the QRC performance. 10 Conclusion and future work This paper generated an ML-based test oracle for the TIAGo OMNI robot developed by PAL Robotics . Particularly, we propose a hybrid framework, QuReBot , that combines the QRC algorithm and a neural network. Specifically, we use this framework for the next state prediction of the robot. We evaluate QuReBot with the navigation dataset of the robot in an office map. We compare QuReBot with a QRC baseline and a neural network baseline. Results show that QuReBot outperforms both models. In addition, we compare the performance of QuReBot under various configurations (i.e., input feature sets and prediction horizons). Then, we provide practical guidance on optimal configurations with higher prediction effectiveness and discuss practical implications. In the future, we will implement QuReBot on real quantum computers to evaluate the effect of quantum noise as well as evaluate its robustness in other industrial and realistic contexts.