English

Quantum Circuit for Random Forest Prediction

Quantum Physics 2024-04-05 v1 Emerging Technologies Machine Learning

Abstract

In this work, we present a quantum circuit for a binary classification prediction algorithm using a random forest model. The quantum prediction algorithm is presented in our previous works. We construct a circuit and implement it using qiskit tools (python module for quantum programming). One of our goals is reducing the number of basic quantum gates (elementary gates). The set of basic quantum gates which we use in this work consists of single-qubit gates and a controlled NOT gate. The number of CNOT gates in our circuit is estimated by O(2n+2h+1)O(2^{n+2h+1}) , when trivial circuit decomposition techniques give O(4X+n+h+2)O(4^{|X|+n+h+2}) CNOT gates, where nn is the number of trees in a random forest model, hh is a tree height and X|X| is the length of attributes of an input object XX. The prediction process returns an index of the corresponding class for the input XX.

Keywords

Cite

@article{arxiv.2312.16877,
  title  = {Quantum Circuit for Random Forest Prediction},
  author = {Liliia Safina and Kamil Khadieva and Ilnar Zinnatullina and Aliya Khadieva},
  journal= {arXiv preprint arXiv:2312.16877},
  year   = {2024}
}
R2 v1 2026-06-28T14:03:29.728Z