Visual tracking (VT) is the process of locating a moving object of interest in a video. It is a fundamental problem in computer vision, with various applications in human-computer interaction, security and surveillance, robot perception, traffic control, etc. In this paper, we address this problem in the quantum setting, and present a quantum algorithm for VT based on the framework proposed by Henriques et al. [IEEE Trans. Pattern Anal. Mach. Intell. 7, 583 (2015)]. Our algorithm comprises two phases: training and detection. In the training phase, in order to discriminate the object and background, the algorithm trains a ridge regression classifier in the quantum state form where the optimal fitting parameters of ridge regression are encoded in the amplitudes. In the detection phase, the classifier is then employed to generate a quantum state whose amplitudes encode the responses of all the candidate image patches. The algorithm is shown to be polylogarithmic in scaling, when the image data matrices have low condition numbers, and therefore may achieve exponential speedup over the best classical counterpart. However, only quadratic speedup can be achieved when the algorithm is applied to implement the ultimate task of Henriques's framework, i.e., detecting the object position. We also discuss two other important applications related to VT: (1) object disappearance detection and (2) motion behavior matching, where much more significant speedup over the classical methods can be achieved. This work demonstrates the power of quantum computing in solving computer vision problems.
Visual tracking (VT) is the process of locating a moving object of interest in a video. It is a fundamental problem in computer vision, with various applications in human-computer interaction, security and surveillance, robot perception, traffic control, etc. In this paper, we address this problem in the quantum setting, and present a quantum algorithm for VT based on the framework proposed by Henriques et al. [IEEE Trans. Pattern Anal. Mach. Intell. 7, 583 (2015)]. Our algorithm comprises two phases: training and detection. In the training phase, in order to discriminate the object and background, the algorithm trains a ridge regression classifier in the quantum state form where the optimal fitting parameters of ridge regression are encoded in the amplitudes. In the detection phase, the classifier is then employed to generate a quantum state whose amplitudes encode the responses of all the candidate image patches. The algorithm is shown to be polylogarithmic in scaling, when the image data matrices have low condition numbers, and therefore may achieve exponential speedup over the best classical counterpart. However, only quadratic speedup can be achieved when the algorithm is applied to implement the ultimate task of Henriques's framework, i.e., detecting the object position. We also discuss two other important applications related to VT: (1) object disappearance detection and (2) motion behavior matching, where much more significant speedup over the classical methods can be achieved. This work demonstrates the power of quantum computing in solving computer vision problems.
This paper presents an evaluation of various quantum algorithms for their potential application in real-time vision applications. By analyzing the underlying principles and mechanisms of key quantum algorithms, including those based on the Quantum Fourier Transform (QFT), amplitude amplification, quantum walks, and quantum optimization, the study aims to assess their suitability for enhancing vision tasks. The computational advantages offered by these quantum algorithms, such as speed and efficiency, are highlighted, particularly in comparison to classical approaches. Algorithms based on amplitude amplification, like Grover’s Algorithm and Quantum Counting, demonstrate significant promise for improving the accuracy and speed of object detection, especially in scenarios requiring real-time processing. Similarly, quantum walk algorithms show potential in navigating structured data efficiently, making them relevant for rapid detection tasks. The paper further explores the integration of quantum algorithms with classical techniques, emphasizing the development of hybrid models, such as Quantum Convolutional Neural Networks (QCNNs). Experimental comparisons between traditional Convolutional Neural Networks (CNNs) and QCNNs reveal that quantum-enhanced models may offer advantages in initial training phases, suggesting enhanced capabilities in feature extraction and pattern recognition. The results indicate that while quantum algorithms hold considerable promise for advancing the field of object detection, particularly in real-time applications, further research is needed to fully realize their potential. This study contributes to the growing field of quantum computing by providing a detailed analysis of how various quantum algorithms can be applied to complex data processing tasks in computer vision, offering new directions for the development of more efficient detection systems.
Quantum based vehicle detection is the innovative integration of Quantum Machine Learning (QML) techniques with classical computer vision methods to enhance vehicle detection and speed tracking systems using OpenCV. Traditional approaches in vehicle detection and speed tracking are often hindered by computational inefficiencies and accuracy limitations in complex traffic scenarios. Our proposed hybrid quantum-classical framework aims to overcome these complications by exploiting the computational advantages of quantum computing. In this study, we employ Quantum Principal Component Analysis (QPCA) for feature extraction and data dimensionality reduction, optimizing the input data for improved processing efficiency. The core detection mechanism integrates Quantum Neural Networks (QNNs) with classical Convolutional Neural Networks (CNNs), enhancing the model’s accuracy in identifying vehicles within video frames. For speed tracking, we apply quantum optimization techniques to refine the tracking of vehicle positions across consecutive frames, ensuring precise speed calculation. Using OpenCV for real-time video processing and Qiskit for quantum computations, the findings from the experiments indicate significant improvements in both detection a precision, accuracy and computational efficiency. The hybrid quantum-classical model showcases the potential of quantum computing in advancing computer vision applications, particularly in intelligent transportation systems. This research highlights the transformative impact of QML techniques on practical applications and paves the way for further advancements in quantum-enhanced vehicle detection and speed tracking.
Quantum computing is an emerging technology that leverages quantum bits (qubits) capable of existing in superposition and entanglement to enable fundamentally new approaches to computation. Unlike classical systems that process bits through logical gates, quantum computers do not simply accelerate tasks but require specialized algorithms to exploit their unique properties for solving complex problems efficiently. While applications in agricultural science remain largely unexplored, this work demonstrates a potential use case by addressing a computer vision challenge: multi-object tracking. Specifically, we introduce a novel re-identification module formulated as a network flow optimization problem and implemented using quantum techniques to improve tracking consistency across frames.The goal of multi-object tracking is to track detected objects of interest across frames. In our case, we used YOLOv8 together with BoT-SORT to detect and track cows. State-of-the-art frameworks like BoT-SORT use the shape and expected trajectory to derive track sequences. Here, we propose a new implementation of a framework for the pair-wise comparison of tracked objects at consecutive timepoints based on the overlap between bounding boxes. Tracklets are subsequently obtained by solving an optimization problem using the Intersection over Union as the primary cost metric, this avoids relying on appearance-based features that are either not present or obscured by camera view, changing light conditions, or dust and dirt. The developed approach is available as an extension for all object trackers and is implemented for both classical and quantum hardware, as a Mixed-Integer Linear Programming (MILP) and a Quadratic Unconstrained Binary Optimization (QUBO) algorithm, respectively. On a test dataset, including 16 cows in a single barn over several video snippets of approximately three minutes, our approach outperformed BoT-SORT with default ReID on key performance metrics for detection performance and identity consistency, improving HOTA from 89.66 to 90.81, MOTA from 95.44 to 96.27, IDF1 from 95.95 to 97.40, and reducing the number of ID switches from 9 to 5. Although the quantum solution at this stage is slower than its classical counterpart, we expect long-term promises as quantum computing as a technology is still in its infancy and quantum hardware is expected to become more reliable and computationally performant in the future. This work provides a first proof-of-concept on the use of quantum computing for computer vision applications that can complement classical methods in future precision livestock monitoring systems.
Quantum Machine Learning methods are becoming a key component for various types of tasks making predictions or decisions based on datasets. Recent efforts and researches on quantum computing point out the significance of quantum speedup advantage, especially for learning processes that require enormous amount of computational resources. Advances in both quantum hardware design and hybrid quantum-classical software frameworks accommodate a paradigm shift from classical to quantum. In consideration with this quantum leap notion, we investigate the capability of variational quantum algorithms (VQA) on a real world problem of user localization dealing with the binary classification task. This paper introduces a VQA with four variants that differ in the number of layers related to the variational quantum circuit (VQC) part of the VQA. The samples from a publicly available user localization dataset are first preprocessed through padding, scaling and normalization. Next, they are mapped into three qubit quantum states using amplitude encoding as a data embedding scheme. Unitary transformation of the mapped quantum data in the VQC is followed by a measurement in computational basis to produce predictions for the labels. The error between true and predicted labels is computed in a classical manner and a cost function minimization process is executed with the aid of gradient descent algorithm. The updated training parameters from the optimization stage are fed into the VQC and this process is repeated until the learnable parameters converge. The simulation results demonstrate that the designed VQA for binary classification achieves an accuracy value of 99% in the training phase. Moreover, the ratio of predicted labels to true labels approaches to 93% during the validation of actual user locations based on the signal strength received from the routers that are positioned at different places in a facility. Keywords—quantum machine learning, user localization, variational quantum algorithm, variational quantum circuit, amplitude encoding
Logistic regression (LR) is an important machine learning model for classification, with wide applications in text classification, image analysis and medicine diagnosis, etc. However, training LR generally entails an iterative gradient descent method, and is quite time consuming when processing big data sets. To solve this problem, we present a quantum algorithm for LR to implement the key task of the gradient descent method, obtaining the classical gradients in each iteration. It is shown that our algorithm achieves exponential speedup over its classical counterpart in each iteration when the dimension of each data point M grows polylogarithmically with the number of data points N, i.e.,M=O(polylog N). It is worth noting that the optimal model parameters are finally derived by performing simple calculations on the obtained gradients. So once the optimal model parameters are determined, one can use them to classify new data at little cost.
Multi-object tracking is important for modern precision livestock farming as it enables simultaneous tracking of multiple animals in complex environments (Nidhi et al., 2025). The resulting tracklets of animals can be used to continuously assess the health and welfare of the animals to use for animal management and phenotyping in animal breeding programs. In general, multi-object tracking is a computer vision task that aims to detect and track all objects of interest in a scene, be it people, tomatoes, or animals, with a consistent, unique identifier. In precision livestock farming, multi-object tracking is often approached with tracking-by-detection (Nidhi et al., 2025). Tracking-by-detection uses two algorithms, one to detect the objects of interest, such as You Only Look Once (YOLO, Jocher et al. (2023)) and one to track the detected objects of interest, such as BoT-SORT (Aharon et al., 2022). However, assigning a consistent identifier to each track is difficult due to occlusions that can occur in large groups of animals. As a result, detections can be lost and tracks may be re-initialized, or identities switched between animals. Re-identification (reID) aims to recover the lost or switched identities to maintain a consistent identity for each track. Today, most computer vision tasks run on GPU hardware. Many of these tasks, particularly identity association in multi-object tracking across multiple frames, can be formulated as combinatorial optimization problems (Cornuejols et al., 1977), which may be NP-hard in general. In this context, it is worth exploring whether quantum algorithms can deliver significant speedups over current methods (Meli et al. 2025). Quantum computing is an emerging technology that differs from traditional computing by using quantum bits (qubits) instead of bits on traditional computing hardware. Qubits reflect pieces of quantum information that may exhibit two intrinsic quantum properties: superposition, allowing them to exist in multiple states simultaneously, and entanglement, correlating qubits beyond whatis possible on conventional computers. This unique storage structure allows quantum systems to process information in ways that have no classical counterpart, enabling specialized quantum algorithms. Quantum computers are not intrinsically faster at performing the same operations, but can potentially solve the same computational problems in fewer operations – for example, Shor’s algorithm (Shor, 1994) to factor large integers exponentially faster than any classical methods, rendering current encryption schemes vulnerable once sufficiently large quantum hardware becomes available. Potential applications in life science have recently been proposed by Pook et al. (2025); however, only as a review without developing a concrete quantum algorithm. In this work, we propose a novel extension of the BoT-SORT framework to improve its integrated reID by an additional post-processing step that is based on pairwise comparison of tracked objects at consecutive time points based on the overlap between bounding boxes. Alongside an implementation on traditional hardware, we will also outline the required steps totranslate our developedoptimization problem for execution on quantum hardware and assess the overall suitability of quantum computing for livestock breeding applications.