Speaker
Description
\documentclass{article}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{johd}
\usepackage{amsmath}
\title{Quantum Version of Decision Tree Construction Algorithm Subroutine}
\author{Ilnaz Mannapov \
\small Kazan Federal University, Kazan, Russia \
\small \tt{ilnaztatar5@gmail.com} \
}
\date{}
\begin{document}
\maketitle
% \noindent{2026}
\begin{abstract}
\noindent
Machine Learning is one of the most famous and promising areas of applied science. The classification problem is a widely-used approach.
Decision Trees are one of the tools for solving classification problems.
Many algorithms for constructing decision trees have been developed.
As quantum computation is a very fast-growing field, it is used to solve such problems [\citep{PhysRevA.58.915}, \citep{lu2014quantum}].
This paper investigates and constructs the main part of a decision tree construction algorithm: the subroutine for calculating the best split of the data.
In our previous works [\citep{Mannapov2019}, \citep{kms2021_generic}, \citep{Mannapov2023}], we developed a quantum version of the decision tree construction algorithm based on classical algorithms such as C4.5, C5.0, and CART.
Let us to give some preliminaries. Let ${\cal X}=\{X^1, X^2, ..., X^N\}$ is a training data set and ${\cal Y}=\{y_1, y_2, ..., y_N\}$ is a set of corresponding classes. $\sigma_{y=c_{i}} {\cal X}$ is a subset from training set which elements are related to class with number $i$.
Here $X^i=\{x^i_1, x^i_2, ..., x^i_d\}$ is a vector of attributes, where $i\in\{1,\dots,N\}$, $d$ is a number of attributes, $A = \{a_1, a_2, ..., a_d\}$ is the set of all attributes,
$N$ is a number of vectors in the training data set, M is a number of classes, $y_i \in C=\{1,\dots,M\}$ is an index of class of $X^i$ vector.
The problem is to construct a function $F:DOM_1\times\ldots\times DOM_d\to C$ that is called classifier. The function classifies a new vector $X=(x_1,\dots,x_d)$ that is not from ${\cal X}$.
Decision tree construction algorithms use a "divide and conquer" method to build a suitable tree.
The main part of the algorithm is to find the best split of the data, where some attribute is used for splitting.
The best split is determined based on a criterion such as Gini impurity, information gain, or mean squared error.
It is the split that maximizes the gain, which is calculated from the impurity of the data before and after the split.
The construction process stops when all data points belong to one class or when a maximum tree depth is reached.
In this paper, we investigate the main part of this algorithm—the subroutine for calculating the best split of the data. We use the Gini impurity as the split criterion.
The best split based on the Gini index is calculated using the following formula:
$$
\text{BestSplit} = \arg\max_{s \in S} \text{Gain}(s)
$$
where $S$ is the set of all possible splits and $\text{Gain}(s)$ is the gain of split $s$.
The gain is calculated using the following formula:
$$
\text{Gain}(s) = \text{Impurity}({\cal X}) - \sum
_{i=1}^{k} \frac{|{\cal X}_i|}{|{\cal X}|} \text{Impurity}({\cal X}_i)
$$
where ${\cal X}$ is the set of all data points, $k$ is the branch count of the split $s$, ${\cal X}_i$ is the set of data points that are in the $i$-th partition of the split $s$, and $\text{Impurity}({\cal X})$ is the impurity of the set ${\cal X}$.
The impurity is calculated using the following formula:
$$
\text{Impurity}({\cal X}) = 1 - \sum_{c=1}^{M} \left( \frac{|{\cal X}_c|}{|{\cal X}|} \right)^2
$$
where $M$ is the number of classes and ${\cal X}_c$ is the set of data points that are in class $c$.
In this paper, we investigate the quantum version of the algorithm for calculating the best split of the data based on Gini impurity.
We use the quantum version of the algorithm to calculate the gain of a split and the impurity of a set.
We also investigate the complexity of the quantum version of the algorithm, using Circuit Depth as a complexity measure.
We consider different quantum approaches for calculating the best split of the data based on Gini impurity:
\begin{enumerate}
\item QFT approach [\citep{Ramezani_2023}].
\item Approximated QFT approach [\citep{Nam_2020}].
\item VBERippleCarryAdder approach [\citep{Vedral_1996}].
\item VBERippleCarryAdder + RCCX approach.
\end{enumerate}
All of these approaches are implemented in Qiskit and tested on a quantum computer simulator. All of them compute the correct answer.
The VBERippleCarryAdder approach is more effective in terms of circuit depth, but VBERippleCarryAdder–based approaches use more ancilla qubits than QFT-based approaches.
Moreover, two different variants of the algorithm were implemented: a quantum subroutine that works with precalculated values and a fully quantum subroutine.
At the end of the paper, we compare the complexity of the quantum version of the algorithm with that of the classical version for calculating the best split of the data based on Gini impurity.
We also compare the circuit complexity of each developed algorithm.
We obtained the following complexity (Circuit Depth) for our investigated methods. Let $n = |S|$, $m$ is total qubits size for oracle.
\begin{tabular}{|c|c|c|c|}
\hline
QFT & A-QFT & VBERippleCarryAdder & VBERippleCarryAdder + RCCX \\
\hline
$O(n^{1.5} \cdot m^2)$ & $O(n^{1.5} \cdot m \cdot \log(m))$ & $O(n^{1.5} \cdot m)$ & $O(n^{1.5} \cdot m)$ \
\hline
\end{tabular}
\end{abstract}
\noindent
\bibliographystyle{johd}
\bibliography{bib}
\end{document}